Debian Codegraph @

online-accounts/lib/qt/LomiriOnlineAccounts/dbus_interface.cpp

raw symbols SCIP
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 #include "dbus_interface.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/dbus_interface.h`/
22
23 #include <QDBusMetaType>
24 #include <QDebug>
25 #include <QVariantMap>
26 #include <climits>
27
28 using namespace OnlineAccounts;
29
30 DBusInterfacecxx . . $ OnlineAccounts/DBusInterface#::DBusInterfacecxx . . $ OnlineAccounts/DBusInterface#DBusInterface(224dae0651165b93).(const QStringcxx . . $ QString# &service,
31 const QStringcxx . . $ QString# &path,
32 const char *interface,
33 const QDBusConnectioncxx . . $ QDBusConnection# &connection,
34 QObjectcxx . . $ QObject# *parent):
35 QDBusAbstractInterfacecxx . . $ QDBusAbstractInterface#(service, path, interface, connection, parent)
36 {
37 setTimeoutcxx . . $ QDBusAbstractInterface#setTimeout(d4f767463ce0a6b3).(INT_MAXcxx . . $ `<external>/67164224788392828/limits.h:120:9`!);
38
39 qDBusRegisterMetaTypecxx . . $ qDBusRegisterMetaType(2f7c408e008fec29).<AccountInfocxx . . $ OnlineAccounts/AccountInfo#>();
40 qDBusRegisterMetaTypecxx . . $ qDBusRegisterMetaType(2f7c408e008fec29).<QListcxx . . $ QList#<AccountInfocxx . . $ OnlineAccounts/AccountInfo#>>();
41 qDBusRegisterMetaTypecxx . . $ qDBusRegisterMetaType(2f7c408e008fec29).<QListcxx . . $ QList#<QVariantMapcxx . . $ QVariantMap#>>();
42
43 bool ok = connectcxx . . $ OnlineAccounts/DBusInterface#connect(965e8f631af2ae0).("AccountChanged", "s(ua{sv})",
44 this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onAccountChanged(const QString&,const OnlineAccounts::AccountInfo&)));
45 if (Q_UNLIKELYcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:247:11`!(!ok)) {
46 qCriticalcxx . . $ `<external>/10450329605257866924/qlogging.h:167:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Connection to AccountChanged signal failed";
47 }
48 }
49
50 DBusInterfacecxx . . $ OnlineAccounts/DBusInterface#::~cxx . . $ OnlineAccounts/DBusInterface#`~DBusInterface`(ced63f7c635d850d).DBusInterfacecxx . . $ OnlineAccounts/DBusInterface#()
51 {
52 }
53
54 QDBusPendingCallcxx . . $ QDBusPendingCall# DBusInterfacecxx . . $ OnlineAccounts/DBusInterface#::getAccountscxx . . $ OnlineAccounts/DBusInterface#getAccounts(b51b7b3132a30a2e).(const QVariantMapcxx . . $ QVariantMap# &filters)
55 {
56 return asyncCallcxx . . $ QDBusAbstractInterface#asyncCall(1ecb6b7bdc99c898).(QStringLiteralcxx . . $ `<external>/2817157206922689722/qstringliteral.h:65:9`!("GetAccounts"), filters);
57 }
58
59 QDBusPendingCallcxx . . $ QDBusPendingCall# DBusInterfacecxx . . $ OnlineAccounts/DBusInterface#::authenticatecxx . . $ OnlineAccounts/DBusInterface#authenticate(b00d1d18985ea8c5).(AccountIdcxx . . $ OnlineAccounts/AccountId# accountId,
60 const QStringcxx . . $ QString# &service,
61 bool interactive,
62 bool invalidate,
63 const QVariantMapcxx . . $ QVariantMap# &parameters)
64 {
65 return asyncCallcxx . . $ QDBusAbstractInterface#asyncCall(1ecb6b7bdc99c898).(QStringLiteralcxx . . $ `<external>/2817157206922689722/qstringliteral.h:65:9`!("Authenticate"), accountId, service,
66 interactive, invalidate, parameters);
67 }
68
69 QDBusPendingCallcxx . . $ QDBusPendingCall# DBusInterfacecxx . . $ OnlineAccounts/DBusInterface#::requestAccesscxx . . $ OnlineAccounts/DBusInterface#requestAccess(4159e901b734aa9f).(const QStringcxx . . $ QString# &service,
70 const QVariantMapcxx . . $ QVariantMap# &parameters)
71 {
72 return asyncCallcxx . . $ QDBusAbstractInterface#asyncCall(1ecb6b7bdc99c898).(QStringLiteralcxx . . $ `<external>/2817157206922689722/qstringliteral.h:65:9`!("RequestAccess"), service, parameters);
73 }
74
75 void DBusInterfacecxx . . $ OnlineAccounts/DBusInterface#::onAccountChangedcxx . . $ OnlineAccounts/DBusInterface#onAccountChanged(74743381be4c72db).(const QStringcxx . . $ QString# &service,
76 const AccountInfocxx . . $ OnlineAccounts/AccountInfo# &info)
77 {
78 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! accountChangedcxx . . $ OnlineAccounts/DBusInterface#accountChanged(74743381be4c72db).(service, info);
79 }
80
81 bool DBusInterfacecxx . . $ OnlineAccounts/DBusInterface#::connectcxx . . $ OnlineAccounts/DBusInterface#connect(965e8f631af2ae0).(const char *signal, const char *signature,
82 QObjectcxx . . $ QObject# *receiver, const char *slot)
83 {
84 return connectioncxx . . $ QDBusAbstractInterface#connection(c96d733cf6a2a750).().connectcxx . . $ QDBusConnection#connect(90e97380a2056bf4).(servicecxx . . $ QDBusAbstractInterface#service(6ef7b6c27b00b43d).(), pathcxx . . $ QDBusAbstractInterface#path(6ef7b6c27b00b43d).(), interfacecxx . . $ QDBusAbstractInterface#interface(6ef7b6c27b00b43d).(),
85 QLatin1Stringcxx . . $ QString#QString(4641beeb24e75d60).(signal),
86 QLatin1Stringcxx . . $ QString#QString(4641beeb24e75d60).(signature),
87 receiver, slot);
88 }