accounts-qt: Accounts/auth-data.h Source File

accounts-qt 1.12

- Main Page
- Related Pages
- Classes
- Files

- File List

auth-data.h
1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /*
3 * This file is part of libaccounts-qt
4 *
5 * Copyright (C) 2012 Canonical Ltd.
6 *
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 */
28 #ifndef ACCOUNTS_AUTH_DATA_H
29 #define ACCOUNTS_AUTH_DATA_H
30
31 #include "Accounts/accountscommon.h"
32
33 #include <QString>
34 #include <QVariantMap>
35
36 extern "C"
37 {
38 typedef struct _AgAuthData AgAuthData;
39 }
40
44 namespace Accounts
45 {
46
47 class AccountService;
48
49 class ACCOUNTS_EXPORT AuthData
50 {
51 public:
52 AuthData(const AuthData &other);
53 virtual ~AuthData();
54
55 uint credentialsId() const;
56
57 QString method() const;
58
59 QString mechanism() const;
60
61 QVariantMap parameters() const;
62
63 private:
64 // Don't include private data in docs: \cond
65 friend class AccountService;
66 AuthData(AgAuthData *authData);
67
68 AgAuthData *m_authData;
69 // \endcond
70 };
71
72 } // namespace
73
74 #endif // ACCOUNTS_AUTH_DATA_H
Accounts::AccountService
Account settings for a specific service.
Definition: account-service.h:39
Accounts::AuthData
Information for account authentication.
Definition: auth-data.h:49