signon 8.54

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

- File List
- File Members

signonidentityadaptor.h
Go to the documentation of this file.
1 /*
2 * This file is part of signon
3 *
4 * Copyright (C) 2009-2010 Nokia Corporation.
5 * Copyright (C) 2012 Canonical Ltd.
6 *
7 * Contact: Aurel Popirtac <ext-aurel.popirtac@nokia.com>
8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public License
12 * version 2.1 as published by the Free Software Foundation.
13 *
14 * This library is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22 * 02110-1301 USA
23 */
24
25 #ifndef SIGNONIDENTITYADAPTOR_H
26 #define SIGNONIDENTITYADAPTOR_H
27
28 #include <QDBusAbstractAdaptor>
29 #include <QDBusContext>
30
31 #include "signond-common.h"
32 #include "signonidentity.h"
33
34 namespace SignonDaemonNS {
35
36 class SignonIdentityAdaptor : public QDBusAbstractAdaptor
37 {
38 Q_OBJECT
39 Q_CLASSINFO("D-Bus Interface",
40 "com.google.code.AccountsSSO.SingleSignOn.Identity")
41
42 public:
43 SignonIdentityAdaptor(SignonIdentity *parent);
44 virtual ~SignonIdentityAdaptor();
45
46 inline const QDBusContext &parentDBusContext() const
47 { return *static_cast<QDBusContext *>(m_parent); }
48
49 public Q_SLOTS:
50 quint32 requestCredentialsUpdate(const QString &message);
51 QVariantMap getInfo();
52 void addReference(const QString &reference);
53 void removeReference(const QString &reference);
54
55 bool verifyUser(const QVariantMap &params);
56 bool verifySecret(const QString &secret);
57 void remove();
58 bool signOut();
59 quint32 store(const QVariantMap &info);
60
61 Q_SIGNALS:
62 void unregistered();
63 void infoUpdated(int);
64
65 private:
66 void securityErrorReply(const char *failedMethodName);
67 void errorReply(const QString &name, const QString &message);
68
69 private:
70 SignonIdentity *m_parent;
71 };
72
73 } //namespace SignonDaemonNS
74
75 #endif // SIGNONIDENTITYADAPTOR_H
SignonDaemonNS::SignonIdentityAdaptor::store
quint32 store(const QVariantMap &info)
Definition: signonidentityadaptor.cpp:195
SignonDaemonNS::SignonIdentityAdaptor::requestCredentialsUpdate
quint32 requestCredentialsUpdate(const QString &message)
Definition: signonidentityadaptor.cpp:65
SignonDaemonNS::SignonIdentityAdaptor::signOut
bool signOut()
Definition: signonidentityadaptor.cpp:181
signond-common.h
SignonDaemonNS::SignonIdentityAdaptor::removeReference
void removeReference(const QString &reference)
Definition: signonidentityadaptor.cpp:111
SignonDaemonNS::SignonIdentityAdaptor::unregistered
void unregistered()
SignonDaemonNS::SignonIdentityAdaptor::addReference
void addReference(const QString &reference)
Definition: signonidentityadaptor.cpp:93
SignonDaemonNS::SignonIdentity
Daemon side representation of identity.
Definition: signonidentity.h:50
signonidentity.h
SignonDaemonNS::SignonIdentityAdaptor
Definition: signonidentityadaptor.h:36
SignonDaemonNS::SignonIdentityAdaptor::verifySecret
bool verifySecret(const QString &secret)
Definition: signonidentityadaptor.cpp:144
SignonDaemonNS::SignonIdentityAdaptor::getInfo
QVariantMap getInfo()
Definition: signonidentityadaptor.cpp:79
SignonDaemonNS::SignonIdentityAdaptor::infoUpdated
void infoUpdated(int)
SignonDaemonNS::SignonIdentityAdaptor::verifyUser
bool verifyUser(const QVariantMap &params)
Definition: signonidentityadaptor.cpp:130