| 1 | /* |
| 2 | * This file is part of libOnlineAccounts |
| 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_ACCOUNT_H |
| 22 | #define ONLINE_ACCOUNTS_ACCOUNT_Hcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/account.h:22:9`! |
| 23 | |
| 24 | #include <QObject> |
| 25 | #include <QVariant> |
| 26 | |
| 27 | #include "global.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/global.h`/ |
| 28 | #include "pending_call.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/pending_call.h`/ |
| 29 | #include "service.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/service.h`/ |
| 30 | |
| 31 | namespace OnlineAccountscxx . . $ OnlineAccounts/ { |
| 32 | |
| 33 | class AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData#; |
| 34 | class Managercxx . . $ OnlineAccounts/Manager#; |
| 35 | |
| 36 | class AccountPrivatecxx . . $ OnlineAccounts/AccountPrivate#; |
| 37 | class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:27:11`! Accountcxx . . $ OnlineAccounts/Account#: public QObjectcxx . . $ QObject# |
| 38 | { |
| 39 | Q_OBJECTcxx . . $ OnlineAccounts/Account#tr(75d9f1c324b4579d). |
| 40 | |
| 41 | public: |
| 42 | ~cxx . . $ OnlineAccounts/Account#`~Account`(ced63f7c635d850d).Accountcxx . . $ OnlineAccounts/Account#(); |
| 43 | |
| 44 | /* Returns false if account deleted or disabled */ |
| 45 | bool isValidcxx . . $ OnlineAccounts/Account#isValid(50ce9a9e25b4a850).() const; |
| 46 | |
| 47 | Servicecxx . . $ OnlineAccounts/Service# servicecxx . . $ OnlineAccounts/Account#service(7ad0f4f8a29cc02d).() const; |
| 48 | |
| 49 | AccountIdcxx . . $ OnlineAccounts/AccountId# idcxx . . $ OnlineAccounts/Account#id(ddd8539a2fcdd4ce).() const; |
| 50 | QStringcxx . . $ QString# displayNamecxx . . $ OnlineAccounts/Account#displayName(6ef7b6c27b00b43d).() const; |
| 51 | QStringcxx . . $ QString# serviceIdcxx . . $ OnlineAccounts/Account#serviceId(6ef7b6c27b00b43d).() const; |
| 52 | AuthenticationMethodcxx . . $ OnlineAccounts/AuthenticationMethod# authenticationMethodcxx . . $ OnlineAccounts/Account#authenticationMethod(5844b1512d846331).() const; |
| 53 | |
| 54 | QStringListcxx . . $ QStringList# keyscxx . . $ OnlineAccounts/Account#keys(e1dbd5c4feadc8f5).() const; |
| 55 | QVariantcxx . . $ QVariant# settingcxx . . $ OnlineAccounts/Account#setting(f6a024953685a9e0).(const QStringcxx . . $ QString# &key) const; |
| 56 | |
| 57 | PendingCallcxx . . $ OnlineAccounts/PendingCall# authenticatecxx . . $ OnlineAccounts/Account#authenticate(e8c79b7e1e87f1df).(const AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData# &authData); |
| 58 | |
| 59 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 60 | void changedcxx . . $ OnlineAccounts/Account#changed(49f6e7a06ebc5aa8).(); |
| 61 | void disabledcxx . . $ OnlineAccounts/Account#disabled(49f6e7a06ebc5aa8).(); |
| 62 | |
| 63 | protected: |
| 64 | explicit Accountcxx . . $ OnlineAccounts/Account#Account(3615b8868ca75e0c).(AccountPrivatecxx . . $ OnlineAccounts/AccountPrivate# *priv, QObjectcxx . . $ QObject# *parent); |
| 65 | |
| 66 | private: |
| 67 | friend class Managercxx . . $ OnlineAccounts/Manager#; |
| 68 | friend class ManagerPrivatecxx . . $ OnlineAccounts/ManagerPrivate#; |
| 69 | Q_DECLARE_PRIVATEcxx . . $ `<external>/15045578679651060896/qglobal.h:1158:9`!(Account) |
| 70 | AccountPrivatecxx . . $ OnlineAccounts/AccountPrivate# *d_ptrcxx . . $ OnlineAccounts/Account#d_ptr.; |
| 71 | }; |
| 72 | |
| 73 | } // namespace |
| 74 | |
| 75 | #endif // ONLINE_ACCOUNTS_ACCOUNT_H |