| 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_P_H |
| 22 | #define ONLINE_ACCOUNTS_MANAGER_P_Hcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/manager_p.h:22:9`! |
| 23 | |
| 24 | #include "manager.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/manager.h`/ |
| 25 | |
| 26 | #include <QMap> |
| 27 | #include <QObject> |
| 28 | #include <QPair> |
| 29 | #include <QPointer> |
| 30 | #include "account_info.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/account_info.h`/ |
| 31 | #include "dbus_interface.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/dbus_interface.h`/ |
| 32 | |
| 33 | class QDBusPendingCallWatchercxx . . $ QDBusPendingCallWatcher#; |
| 34 | |
| 35 | namespace OnlineAccountscxx . . $ OnlineAccounts/ { |
| 36 | |
| 37 | struct AccountDatacxx . . $ OnlineAccounts/AccountData# { |
| 38 | AccountInfocxx . . $ OnlineAccounts/AccountInfo# infocxx . . $ OnlineAccounts/AccountData#info.; |
| 39 | QPointercxx . . $ QPointer#<Accountcxx . . $ OnlineAccounts/Account#> accountcxx . . $ OnlineAccounts/AccountData#account.; |
| 40 | |
| 41 | AccountDatacxx . . $ OnlineAccounts/AccountData#AccountData(dc8474b24a08e8e4).(const AccountInfocxx . . $ OnlineAccounts/AccountInfo# &info): infocxx . . $ OnlineAccounts/AccountData#info.(info) {} |
| 42 | }; |
| 43 | |
| 44 | class ManagerPrivatecxx . . $ OnlineAccounts/ManagerPrivate#: public QObjectcxx . . $ QObject# |
| 45 | { |
| 46 | Q_OBJECTcxx . . $ OnlineAccounts/ManagerPrivate#tr(75d9f1c324b4579d). |
| 47 | Q_DECLARE_PUBLICcxx . . $ `<external>/15045578679651060896/qglobal.h:1172:9`!(Manager) |
| 48 | |
| 49 | public: |
| 50 | inline ManagerPrivatecxx . . $ OnlineAccounts/ManagerPrivate#ManagerPrivate(bec78831cacbc51d).(Managercxx . . $ OnlineAccounts/Manager# *q, const QStringcxx . . $ QString# &applicationId, |
| 51 | const QDBusConnectioncxx . . $ QDBusConnection#& bus); |
| 52 | ~cxx . . $ OnlineAccounts/ManagerPrivate#`~ManagerPrivate`(ced63f7c635d850d).ManagerPrivatecxx . . $ OnlineAccounts/ManagerPrivate#(); |
| 53 | |
| 54 | PendingCallcxx . . $ OnlineAccounts/PendingCall# authenticatecxx . . $ OnlineAccounts/ManagerPrivate#authenticate(407aa23a9e5797be).(const AccountInfocxx . . $ OnlineAccounts/AccountInfo# &info, |
| 55 | const AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData# &authData); |
| 56 | PendingCallcxx . . $ OnlineAccounts/PendingCall# requestAccesscxx . . $ OnlineAccounts/ManagerPrivate#requestAccess(35a6c323ea127a41).(const QStringcxx . . $ QString# &service, |
| 57 | const QVariantMapcxx . . $ QVariantMap# ¶meters); |
| 58 | |
| 59 | Accountcxx . . $ OnlineAccounts/Account# *ensureAccountcxx . . $ OnlineAccounts/ManagerPrivate#ensureAccount(b284754f008b4f89).(const AccountInfocxx . . $ OnlineAccounts/AccountInfo# &info); |
| 60 | |
| 61 | static Servicecxx . . $ OnlineAccounts/Service# serviceFromMapcxx . . $ OnlineAccounts/ManagerPrivate#serviceFromMap(e0a06e88e93b87f8).(const QVariantMapcxx . . $ QVariantMap# &map); |
| 62 | Servicecxx . . $ OnlineAccounts/Service# servicecxx . . $ OnlineAccounts/ManagerPrivate#service(1fbeb80c15612fcf).(const QStringcxx . . $ QString# &serviceId) { |
| 63 | return m_servicescxx . . $ OnlineAccounts/ManagerPrivate#m_services..valuecxx . . $ QMap#value(866b0a4e5fb46e14).(serviceId); |
| 64 | } |
| 65 | |
| 66 | private: |
| 67 | void retrieveAccountscxx . . $ OnlineAccounts/ManagerPrivate#retrieveAccounts(49f6e7a06ebc5aa8).(); |
| 68 | |
| 69 | private Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!: |
| 70 | void onGetAccountsFinishedcxx . . $ OnlineAccounts/ManagerPrivate#onGetAccountsFinished(49f6e7a06ebc5aa8).(); |
| 71 | void onAccountChangedcxx . . $ OnlineAccounts/ManagerPrivate#onAccountChanged(74743381be4c72db).(const QStringcxx . . $ QString# &service, |
| 72 | const OnlineAccountscxx . . $ OnlineAccounts/::AccountInfocxx . . $ OnlineAccounts/AccountInfo# &info); |
| 73 | |
| 74 | private: |
| 75 | QStringcxx . . $ QString# m_applicationIdcxx . . $ OnlineAccounts/ManagerPrivate#m_applicationId.; |
| 76 | DBusInterfacecxx . . $ OnlineAccounts/DBusInterface# m_daemoncxx . . $ OnlineAccounts/ManagerPrivate#m_daemon.; |
| 77 | QDBusPendingCallWatchercxx . . $ QDBusPendingCallWatcher# *m_getAccountsCallcxx . . $ OnlineAccounts/ManagerPrivate#m_getAccountsCall.; |
| 78 | QMapcxx . . $ QMap#<QPaircxx . . $ QPair#<AccountIdcxx . . $ OnlineAccounts/AccountId#,QStringcxx . . $ QString#>,AccountDatacxx . . $ OnlineAccounts/AccountData#> m_accountscxx . . $ OnlineAccounts/ManagerPrivate#m_accounts.; |
| 79 | QMapcxx . . $ QMap#<QStringcxx . . $ QString#,Servicecxx . . $ OnlineAccounts/Service#> m_servicescxx . . $ OnlineAccounts/ManagerPrivate#m_services.; |
| 80 | mutable Managercxx . . $ OnlineAccounts/Manager# *q_ptrcxx . . $ OnlineAccounts/ManagerPrivate#q_ptr.; |
| 81 | }; |
| 82 | |
| 83 | } // namespace |
| 84 | |
| 85 | #endif // ONLINE_ACCOUNTS_MANAGER_P_H |