signon 8.54

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

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
48 struct StoreOperation {
49 enum StoreType {
50 Credentials = 0,
51 Blob
52 };
53
54 StoreOperation(const StoreType type);
55 StoreOperation(const StoreOperation &src);
56 ~StoreOperation();
57
58 public:
59 StoreType m_storeType;
60 SignonIdentityInfo m_info;
61 //Blob store related
62 QString m_authMethod;
63 QVariantMap m_blobData;
64 };
65
71 struct RequestData
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
SignonDaemonNS::StoreOperation::m_authMethod
QString m_authMethod
Definition: signonsessioncoretools.h:62
SignonDaemonNS::StoreOperation::m_storeType
StoreType m_storeType
Definition: signonsessioncoretools.h:59
SignonDaemonNS::StoreOperation::Credentials
Definition: signonsessioncoretools.h:50
SignonDaemonNS::RequestData::m_msg
QDBusMessage m_msg
Definition: signonsessioncoretools.h:84
SignonDaemonNS::RequestData::RequestData
RequestData(const QDBusConnection &conn, const QDBusMessage &msg, const QVariantMap &params, const QString &mechanism, const QString &cancelKey)
Definition: signonsessioncoretools.cpp:69
SignonDaemonNS::RequestData::m_cancelKey
QString m_cancelKey
Definition: signonsessioncoretools.h:87
SignonDaemonNS::StoreOperation
Describes a credentials store operatation.
Definition: signonsessioncoretools.h:48
SignonDaemonNS::RequestData::m_mechanism
QString m_mechanism
Definition: signonsessioncoretools.h:86
signonidentityinfo.h
SignonDaemonNS::StoreOperation::~StoreOperation
~StoreOperation()
Definition: signonsessioncoretools.cpp:63
SignonDaemonNS::RequestData::m_conn
QDBusConnection m_conn
Definition: signonsessioncoretools.h:83
SignonDaemonNS::StoreOperation::m_info
SignonIdentityInfo m_info
Definition: signonsessioncoretools.h:60
SignonDaemonNS::StoreOperation::m_blobData
QVariantMap m_blobData
Definition: signonsessioncoretools.h:63
SignonDaemonNS::StoreOperation::StoreType
StoreType
Definition: signonsessioncoretools.h:49
SignonDaemonNS::RequestData::~RequestData
~RequestData()
Definition: signonsessioncoretools.cpp:91
SignonDaemonNS::StoreOperation::Blob
Definition: signonsessioncoretools.h:51
SignonDaemonNS::RequestData::m_params
QVariantMap m_params
Definition: signonsessioncoretools.h:85
SignonDaemonNS::mergeVariantMaps
QVariantMap mergeVariantMaps(const QVariantMap &map1, const QVariantMap &map2)
Helper method which unites two variant maps.
Definition: signonsessioncoretools.cpp:31
SignonDaemonNS::SignonIdentityInfo
Daemon side representation of identity information.
Definition: signonidentityinfo.h:43
SignonDaemonNS::StoreOperation::StoreOperation
StoreOperation(const StoreType type)
Definition: signonsessioncoretools.cpp:50
SignonDaemonNS::RequestData
Request data.
Definition: signonsessioncoretools.h:71