| 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_MANAGER_H |
| 22 | #define ONLINE_ACCOUNTS_MANAGER_Hcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/manager.h:22:9`! |
| 23 | |
| 24 | #include <QList> |
| 25 | #include <QObject> |
| 26 | |
| 27 | #include "error.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/error.h`/ |
| 28 | #include "global.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/global.h`/ |
| 29 | #include "pending_call.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/pending_call.h`/ |
| 30 | #include "service.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/service.h`/ |
| 31 | |
| 32 | class QDBusConnectioncxx . . $ QDBusConnection#; |
| 33 | |
| 34 | namespace OnlineAccountscxx . . $ OnlineAccounts/ { |
| 35 | |
| 36 | class Accountcxx . . $ OnlineAccounts/Account#; |
| 37 | class AccountPrivatecxx . . $ OnlineAccounts/AccountPrivate#; |
| 38 | class AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData#; |
| 39 | class RequestAccessReplyPrivatecxx . . $ OnlineAccounts/RequestAccessReplyPrivate#; |
| 40 | |
| 41 | class ManagerPrivatecxx . . $ OnlineAccounts/ManagerPrivate#; |
| 42 | class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:29:11`! Managercxx . . $ OnlineAccounts/Manager#: public QObjectcxx . . $ QObject# |
| 43 | { |
| 44 | Q_OBJECTcxx . . $ OnlineAccounts/Manager#trUtf8(75d9f1c324b4579d). |
| 45 | |
| 46 | public: |
| 47 | explicit Managercxx . . $ OnlineAccounts/Manager#Manager(6b24f83d17022bd9).(const QStringcxx . . $ QString# &applicationId, QObjectcxx . . $ QObject# *parent = 0); |
| 48 | Managercxx . . $ OnlineAccounts/Manager#Manager(118859deda8a47eb).(const QStringcxx . . $ QString# &applicationId, const QDBusConnectioncxx . . $ QDBusConnection# &bus, |
| 49 | QObjectcxx . . $ QObject# *parent = 0); |
| 50 | ~cxx . . $ OnlineAccounts/Manager#`~Manager`(ced63f7c635d850d).Managercxx . . $ OnlineAccounts/Manager#(); |
| 51 | |
| 52 | bool isReadycxx . . $ OnlineAccounts/Manager#isReady(50ce9a9e25b4a850).() const; |
| 53 | void waitForReadycxx . . $ OnlineAccounts/Manager#waitForReady(49f6e7a06ebc5aa8).(); |
| 54 | |
| 55 | QListcxx . . $ QList#<Servicecxx . . $ OnlineAccounts/Service#> availableServicescxx . . $ OnlineAccounts/Manager#availableServices(1da7d48d917c9ece).() const; |
| 56 | |
| 57 | QListcxx . . $ QList#<Accountcxx . . $ OnlineAccounts/Account#*> availableAccountscxx . . $ OnlineAccounts/Manager#availableAccounts(18c39168d70e83cc).(const QStringcxx . . $ QString# &service = QStringcxx . . $ QString#QString(ced63f7c635d850d).()); |
| 58 | Accountcxx . . $ OnlineAccounts/Account# *accountcxx . . $ OnlineAccounts/Manager#account(71b8f792b8322f6d).(AccountIdcxx . . $ OnlineAccounts/AccountId# accountId); |
| 59 | Accountcxx . . $ OnlineAccounts/Account# *accountcxx . . $ OnlineAccounts/Manager#account(e69e7326b1d52f50).(AccountIdcxx . . $ OnlineAccounts/AccountId# accountId, const QStringcxx . . $ QString# &service); |
| 60 | |
| 61 | PendingCallcxx . . $ OnlineAccounts/PendingCall# requestAccesscxx . . $ OnlineAccounts/Manager#requestAccess(3453d0b76040b37b).(const QStringcxx . . $ QString# &service, |
| 62 | const AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData# &authData); |
| 63 | |
| 64 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 65 | void readycxx . . $ OnlineAccounts/Manager#ready(49f6e7a06ebc5aa8).(); |
| 66 | void accountAvailablecxx . . $ OnlineAccounts/Manager#accountAvailable(992388887f278361).(OnlineAccountscxx . . $ OnlineAccounts/::Accountcxx . . $ OnlineAccounts/Account# *account); |
| 67 | |
| 68 | private: |
| 69 | friend class Accountcxx . . $ OnlineAccounts/Account#; |
| 70 | friend class AccountPrivatecxx . . $ OnlineAccounts/AccountPrivate#; |
| 71 | friend class RequestAccessReplyPrivatecxx . . $ OnlineAccounts/RequestAccessReplyPrivate#; |
| 72 | Q_DECLARE_PRIVATEcxx . . $ OnlineAccounts/Manager#d_func(d6d24eaac471f954).(Manager) |
| 73 | Q_DISABLE_COPYcxx . . $ OnlineAccounts/Manager#Manager(30224dfe73c5386f).(Manager) |
| 74 | ManagerPrivatecxx . . $ OnlineAccounts/ManagerPrivate# *d_ptrcxx . . $ OnlineAccounts/Manager#d_ptr.; |
| 75 | }; |
| 76 | |
| 77 | class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:29:11`! RequestAccessReplycxx . . $ OnlineAccounts/RequestAccessReply# |
| 78 | { |
| 79 | public: |
| 80 | RequestAccessReplycxx . . $ OnlineAccounts/RequestAccessReply#RequestAccessReply(8feb05cfa3fd417d).(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call); |
| 81 | virtual ~cxx . . $ OnlineAccounts/RequestAccessReply#`~RequestAccessReply`(49f6e7a06ebc5aa8).RequestAccessReplycxx . . $ OnlineAccounts/RequestAccessReply#(); |
| 82 | |
| 83 | bool hasErrorcxx . . $ OnlineAccounts/RequestAccessReply#hasError(50ce9a9e25b4a850).() const { return errorcxx . . $ OnlineAccounts/RequestAccessReply#error(b1aaa45c8f119b6a).().isValidcxx . . $ OnlineAccounts/Error#isValid(50ce9a9e25b4a850).(); } |
| 84 | Errorcxx . . $ OnlineAccounts/Error# errorcxx . . $ OnlineAccounts/RequestAccessReply#error(b1aaa45c8f119b6a).() const; |
| 85 | |
| 86 | Accountcxx . . $ OnlineAccounts/Account# *accountcxx . . $ OnlineAccounts/RequestAccessReply#account(1a34c49ae0727a36).(); |
| 87 | |
| 88 | private: |
| 89 | Q_DECLARE_PRIVATEcxx . . $ `<external>/15045578679651060896/qglobal.h:1158:9`!(RequestAccessReply) |
| 90 | Q_DISABLE_COPYcxx . . $ OnlineAccounts/RequestAccessReply#(RequestAccessReply) |
| 91 | RequestAccessReplyPrivatecxx . . $ OnlineAccounts/RequestAccessReplyPrivate# *d_ptrcxx . . $ OnlineAccounts/RequestAccessReply#d_ptr.; |
| 92 | }; |
| 93 | |
| 94 | } // namespace |
| 95 | |
| 96 | #endif // ONLINE_ACCOUNTS_MANAGER_H |