Debian Codegraph @

online-accounts/lib/qml/Lomiri/OnlineAccounts/account.h

raw symbols SCIP
1 /*
2 * This file is part of OnlineAccountsModule
3 *
4 * Copyright (C) 2015 Canonical Ltd.
5 *
6 * Contact: Alberto Mardegan <[email protected]>
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License version 3, as
10 * published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranties of
14 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef ONLINE_ACCOUNTS_MODULE_ACCOUNT_H
22 #define ONLINE_ACCOUNTS_MODULE_ACCOUNT_Hcxx . . $ `online-accounts/lib/qml/Lomiri/OnlineAccounts/account.h:22:9`!
23
24 #include <QJSValue>
25 #include <QObject>
26 #include <QString>
27 #include <QVariantMap>
28
29 class QJSEnginecxx . . $ QJSEngine#;
30
31 namespace OnlineAccountscxx . . $ OnlineAccounts/ {
32 class Accountcxx . . $ OnlineAccounts/Account#;
33 }
34
35 namespace OnlineAccountsModulecxx . . $ OnlineAccountsModule/ {
36
37 class AccountPrivatecxx . . $ OnlineAccountsModule/AccountPrivate#;
38 class Accountcxx . . $ OnlineAccountsModule/Account#: public QObjectcxx . . $ QObject#
39 {
40 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
41 Q_ENUMScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:111:9`!(AuthenticationMethod ErrorCode)
42 Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(bool valid READ isValid NOTIFY validChanged)
43 Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QString displayName READ displayName NOTIFY accountChanged)
44 Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(int accountId READ accountId CONSTANT)
45 Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QString serviceId READ serviceId CONSTANT)
46 Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QJSValue service READ service CONSTANT)
47 Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(AuthenticationMethod authenticationMethod \
48 READ authenticationMethod CONSTANT)
49 Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QVariantMap settings READ settings NOTIFY accountChanged)
50
51 public:
52 enum AuthenticationMethodcxx . . $ OnlineAccountsModule/Account#AuthenticationMethod# {
53 // Make sure these are kept in sync with those from OnlineAccountsQt
54 AuthenticationMethodUnknowncxx . . $ OnlineAccountsModule/Account#AuthenticationMethodUnknown. = 0,
55 AuthenticationMethodOAuth1cxx . . $ OnlineAccountsModule/Account#AuthenticationMethodOAuth1.,
56 AuthenticationMethodOAuth2cxx . . $ OnlineAccountsModule/Account#AuthenticationMethodOAuth2.,
57 AuthenticationMethodPasswordcxx . . $ OnlineAccountsModule/Account#AuthenticationMethodPassword.,
58 AuthenticationMethodSaslcxx . . $ OnlineAccountsModule/Account#AuthenticationMethodSasl.,
59 };
60
61 enum ErrorCodecxx . . $ OnlineAccountsModule/Account#ErrorCode# {
62 // Make sure these are kept in sync with those from OnlineAccountsQt
63 ErrorCodeNoErrorcxx . . $ OnlineAccountsModule/Account#ErrorCodeNoError. = 0,
64 ErrorCodeNoAccountcxx . . $ OnlineAccountsModule/Account#ErrorCodeNoAccount.,
65 ErrorCodeWrongTypecxx . . $ OnlineAccountsModule/Account#ErrorCodeWrongType.,
66 ErrorCodeUserCanceledcxx . . $ OnlineAccountsModule/Account#ErrorCodeUserCanceled.,
67 ErrorCodePermissionDeniedcxx . . $ OnlineAccountsModule/Account#ErrorCodePermissionDenied.,
68 ErrorCodeInteractionRequiredcxx . . $ OnlineAccountsModule/Account#ErrorCodeInteractionRequired.,
69 };
70
71 explicit Accountcxx . . $ OnlineAccountsModule/Account#Account(401d2a618a30041e).(OnlineAccountscxx . . $ OnlineAccounts/::Accountcxx . . $ OnlineAccounts/Account# *account, QJSEnginecxx . . $ QJSEngine# *engine,
72 QObjectcxx . . $ QObject# *parent = 0);
73 ~cxx . . $ OnlineAccountsModule/Account#`~Account`(ced63f7c635d850d).Accountcxx . . $ OnlineAccountsModule/Account#();
74
75 bool isValidcxx . . $ OnlineAccountsModule/Account#isValid(50ce9a9e25b4a850).() const;
76 QStringcxx . . $ QString# displayNamecxx . . $ OnlineAccountsModule/Account#displayName(6ef7b6c27b00b43d).() const;
77 int accountIdcxx . . $ OnlineAccountsModule/Account#accountId(455f465bc33b4cdf).() const;
78 QStringcxx . . $ QString# serviceIdcxx . . $ OnlineAccountsModule/Account#serviceId(6ef7b6c27b00b43d).() const;
79 QJSValuecxx . . $ QJSValue# servicecxx . . $ OnlineAccountsModule/Account#service(cedfddd5dbefb84d).() const;
80 AuthenticationMethodcxx . . $ OnlineAccountsModule/Account#AuthenticationMethod# authenticationMethodcxx . . $ OnlineAccountsModule/Account#authenticationMethod(5a498decbd4374ed).() const;
81 QVariantMapcxx . . $ QVariantMap# settingscxx . . $ OnlineAccountsModule/Account#settings(87f780dbe64191c4).() const;
82
83 OnlineAccountscxx . . $ OnlineAccounts/::Accountcxx . . $ OnlineAccounts/Account# *internalObjectcxx . . $ OnlineAccountsModule/Account#internalObject(2cf67f3f9da842b4).() const;
84
85 Q_INVOKABLEcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:124:9`! void authenticatecxx . . $ OnlineAccountsModule/Account#authenticate(3e95df3e31f2cce8).(const QVariantMapcxx . . $ QVariantMap# &params);
86
87 Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!:
88 void validChangedcxx . . $ OnlineAccountsModule/Account#validChanged(49f6e7a06ebc5aa8).();
89 void accountChangedcxx . . $ OnlineAccountsModule/Account#accountChanged(49f6e7a06ebc5aa8).();
90 void authenticationReplycxx . . $ OnlineAccountsModule/Account#authenticationReply(3e95df3e31f2cce8).(const QVariantMapcxx . . $ QVariantMap# &authenticationData);
91
92 private:
93 Q_DECLARE_PRIVATEcxx . . $ OnlineAccountsModule/Account#d_ptr.(Account)
94 AccountPrivatecxx . . $ OnlineAccountsModule/AccountPrivate# *d_ptrcxx . . $ OnlineAccountsModule/Account#d_ptr.;
95 };
96
97 } // namespace
98
99 Q_DECLARE_METATYPEcxx . . $ `<external>/17491093664533580526/qmetatype.h:2056:9`!(OnlineAccountsModule::Account::AuthenticationMethod)
100 Q_DECLARE_METATYPEcxx . . $ OnlineAccountsModule/(OnlineAccountsModule::Account::ErrorCode)
101
102 #endif // ONLINE_ACCOUNTS_MODULE_ACCOUNT_H