signon  8.42
signonsessioncoretools.h
Go to the documentation of this file.
1 /*
2  * This file is part of signon
3  *
4  * Copyright (C) 2009-2011 Nokia Corporation.
5  *
6  * Contact: Aurel Popirtac <ext-aurel.popirtac@nokia.com>
7  * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * version 2.1 as published by the Free Software Foundation.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  */
23 
24 #ifndef SIGNONSESSIONCORETOOLS_H
25 #define SIGNONSESSIONCORETOOLS_H
26 
27 #include <QObject>
28 #include <QVariantMap>
29 #include <QDBusMessage>
30 
31 #include "signonidentityinfo.h"
32 
33 namespace SignonDaemonNS {
34 
42 QVariantMap mergeVariantMaps(const QVariantMap &map1, const QVariantMap &map2);
43 
49  enum StoreType {
52  };
53 
54  StoreOperation(const StoreType type);
55  StoreOperation(const StoreOperation &src);
57 
58 public:
61  //Blob store related
62  QString m_authMethod;
63  QVariantMap m_blobData;
64 };
65 
72 {
73  RequestData(const QDBusConnection &conn,
74  const QDBusMessage &msg,
75  const QVariantMap &params,
76  const QString &mechanism,
77  const QString &cancelKey);
78 
79  RequestData(const RequestData &other);
80  ~RequestData();
81 
82 public:
83  QDBusConnection m_conn;
84  QDBusMessage m_msg;
85  QVariantMap m_params;
86  QString m_mechanism;
87  QString m_cancelKey;
88 };
89 
90 } //SignonDaemonNS
91 
92 #endif //SIGNONSESSIONCORETOOLS_H