| 1 | /* |
| 2 | * Copyright (C) 2014 Canonical Ltd. |
| 3 | * |
| 4 | * Contact: Alberto Mardegan <[email protected]> |
| 5 | * |
| 6 | * This file is part of lomiri-online-accounts-service |
| 7 | * |
| 8 | * This program is free software: you can redistribute it and/or modify it |
| 9 | * under the terms of the GNU General Public License version 3, as published |
| 10 | * 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 General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License along |
| 18 | * with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #include <online-accounts-common/debug.h>cxx . . $ `<file>/online-accounts-common/debug.h`/ |
| 22 | #include "libaccounts-service.h"cxx . . $ `<file>/online-accounts-service/src/libaccounts-service.h`/ |
| 23 | #include "utils.h"cxx . . $ `<file>/online-accounts-service/src/utils.h`/ |
| 24 | |
| 25 | #include <Accounts/Account> |
| 26 | #include <Accounts/Manager> |
| 27 | #include <Accounts/Service> |
| 28 | #include <QDBusArgument> |
| 29 | #include <QDBusConnection> |
| 30 | #include <QVariantMap> |
| 31 | |
| 32 | using namespace OnlineAccountsUi; |
| 33 | |
| 34 | static QStringcxx . . $ QString# stripVersioncxx . . $ stripVersion(fd988a2ab94d906b).(const QStringcxx . . $ QString# &appId) |
| 35 | { |
| 36 | QStringListcxx . . $ QStringList# components = appId.splitcxx . . $ QString#split(92030b8bf74e4227).('_'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 37 | if (components.countcxx . . $ QList#count(455f465bc33b4cdf).() != 3) return appIdcxx . . $ QString#QString(132dd6869045752b).; |
| 38 | |
| 39 | /* Click packages have a profile of the form |
| 40 | * $name_$application_$version |
| 41 | * (see https://wiki.ubuntu.com/SecurityTeam/Specifications/ApplicationConfinement/Manifest#Click) |
| 42 | * |
| 43 | * We assume that this is a click package, and strip out the last part. |
| 44 | */ |
| 45 | components.removeLastcxx . . $ QList#removeLast(49f6e7a06ebc5aa8).(); |
| 46 | return components.joincxx . . $ QListSpecialMethods#join(227e33e1a3bf1f91).('_'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 47 | } |
| 48 | |
| 49 | namespace OnlineAccountsUicxx . . $ OnlineAccountsUi/ { |
| 50 | |
| 51 | struct ServiceChangescxx . . $ OnlineAccountsUi/ServiceChanges# { |
| 52 | QStringcxx . . $ QString# servicecxx . . $ OnlineAccountsUi/ServiceChanges#service.; |
| 53 | QStringcxx . . $ QString# serviceTypecxx . . $ OnlineAccountsUi/ServiceChanges#serviceType.; |
| 54 | quint32cxx . . $ quint32# serviceIdcxx . . $ OnlineAccountsUi/ServiceChanges#serviceId.; |
| 55 | QVariantMapcxx . . $ QVariantMap# settingscxx . . $ OnlineAccountsUi/ServiceChanges#settings.; |
| 56 | QStringListcxx . . $ QStringList# removedKeyscxx . . $ OnlineAccountsUi/ServiceChanges#removedKeys.; |
| 57 | }; |
| 58 | |
| 59 | struct AccountChangescxx . . $ OnlineAccountsUi/AccountChanges# { |
| 60 | quint32cxx . . $ quint32# accountIdcxx . . $ OnlineAccountsUi/AccountChanges#accountId.; |
| 61 | bool createdcxx . . $ OnlineAccountsUi/AccountChanges#created.; |
| 62 | bool deletedcxx . . $ OnlineAccountsUi/AccountChanges#deleted.; |
| 63 | QStringcxx . . $ QString# providercxx . . $ OnlineAccountsUi/AccountChanges#provider.; |
| 64 | QListcxx . . $ QList#<ServiceChangescxx . . $ OnlineAccountsUi/ServiceChanges#> serviceChangescxx . . $ OnlineAccountsUi/AccountChanges#serviceChanges.; |
| 65 | }; |
| 66 | |
| 67 | struct PendingWritecxx . . $ OnlineAccountsUi/PendingWrite# { |
| 68 | PendingWritecxx . . $ OnlineAccountsUi/PendingWrite#PendingWrite(232c544489178d56).(const QDBusConnectioncxx . . $ QDBusConnection# &c, const QDBusMessagecxx . . $ QDBusMessage# &m): |
| 69 | messagecxx . . $ OnlineAccountsUi/PendingWrite#message.(m), connectioncxx . . $ OnlineAccountsUi/PendingWrite#connection.(c) {} |
| 70 | QDBusMessagecxx . . $ QDBusMessage# messagecxx . . $ OnlineAccountsUi/PendingWrite#message.; |
| 71 | QDBusConnectioncxx . . $ QDBusConnection# connectioncxx . . $ OnlineAccountsUi/PendingWrite#connection.; |
| 72 | }; |
| 73 | |
| 74 | class LibaccountsServicePrivatecxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#: public QObjectcxx . . $ QObject# |
| 75 | { |
| 76 | Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`! |
| 77 | Q_DECLARE_PUBLICcxx . . $ `<external>/15045578679651060896/qglobal.h:1172:9`!(LibaccountsService) |
| 78 | |
| 79 | public: |
| 80 | LibaccountsServicePrivatecxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#LibaccountsServicePrivate(96913d1fa439e9ee).(LibaccountsServicecxx . . $ OnlineAccountsUi/LibaccountsService# *q); |
| 81 | ~cxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#`~LibaccountsServicePrivate`(ced63f7c635d850d).LibaccountsServicePrivatecxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#() {}; |
| 82 | |
| 83 | void writeChangescxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#writeChanges(7c9f86ba6e700dae).(const AccountChangescxx . . $ OnlineAccountsUi/AccountChanges# &changes); |
| 84 | |
| 85 | private Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!: |
| 86 | void onAccountSyncedcxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#onAccountSynced(49f6e7a06ebc5aa8).(); |
| 87 | void onAccountErrorcxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#onAccountError(32890befce804a17).(Accountscxx . . $ Accounts/::Errorcxx . . $ Accounts/Error# error); |
| 88 | |
| 89 | private: |
| 90 | Accountscxx . . $ Accounts/::Managercxx . . $ Accounts/Manager# m_managercxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#m_manager.; |
| 91 | QHashcxx . . $ QHash#<Accountscxx . . $ Accounts/::Accountcxx . . $ Accounts/Account# *,PendingWritecxx . . $ OnlineAccountsUi/PendingWrite#> m_pendingWritescxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#m_pendingWrites.; |
| 92 | mutable LibaccountsServicecxx . . $ OnlineAccountsUi/LibaccountsService# *q_ptrcxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#q_ptr.; |
| 93 | }; |
| 94 | |
| 95 | } // namespace |
| 96 | |
| 97 | LibaccountsServicePrivatecxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#::LibaccountsServicePrivatecxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#LibaccountsServicePrivate(96913d1fa439e9ee).(LibaccountsServicecxx . . $ OnlineAccountsUi/LibaccountsService# *q): |
| 98 | QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(q), |
| 99 | m_managercxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#m_manager.(new Accountscxx . . $ Accounts/::Managercxx . . $ Accounts/Manager#(this)), |
| 100 | q_ptrcxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#q_ptr.(q) |
| 101 | { |
| 102 | } |
| 103 | |
| 104 | void LibaccountsServicePrivatecxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#::writeChangescxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#writeChanges(7c9f86ba6e700dae).(const AccountChangescxx . . $ OnlineAccountsUi/AccountChanges# &changes) |
| 105 | { |
| 106 | Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(LibaccountsService); |
| 107 | |
| 108 | Accountscxx . . $ Accounts/::Accountcxx . . $ Accounts/Account# *account; |
| 109 | |
| 110 | if (changes.createdcxx . . $ OnlineAccountsUi/AccountChanges#created.) { |
| 111 | account = m_managercxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#m_manager..createAccountcxx . . $ Accounts/Manager#createAccount(c883e1f1d6ec9995).(changes.providercxx . . $ OnlineAccountsUi/AccountChanges#provider.); |
| 112 | } else { |
| 113 | account = m_managercxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#m_manager..accountcxx . . $ Accounts/Manager#account(e94dad5fac3d2066).(changes.accountIdcxx . . $ OnlineAccountsUi/AccountChanges#accountId.); |
| 114 | if (Q_UNLIKELYcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:247:11`!(!account)) { |
| 115 | qWarningcxx . . $ `<external>/10450329605257866924/qlogging.h:166:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Couldn't load account" <<cxx . . $ QDebug#`operator<<`(e121dc42ed06808d). changes.accountIdcxx . . $ OnlineAccountsUi/AccountChanges#accountId.; |
| 116 | return; |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | Q_ASSERTcxx . . $ `<external>/15045578679651060896/qglobal.h:859:13`!(account); |
| 121 | |
| 122 | if (changes.deletedcxx . . $ OnlineAccountsUi/AccountChanges#deleted.) { |
| 123 | account->removecxx . . $ Accounts/Account#remove(49f6e7a06ebc5aa8).(); |
| 124 | } else { |
| 125 | Q_FOREACHcxx . . $ `<external>/15045578679651060896/qglobal.h:1137:9`!(const ServiceChanges &sc, changes.serviceChanges) { |
| 126 | if (sc.servicecxx . . $ OnlineAccountsUi/ServiceChanges#service. ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "global") { |
| 127 | account->selectServicecxx . . $ Accounts/Account#selectService(3151c7fcce91492).(); |
| 128 | } else { |
| 129 | Accountscxx . . $ Accounts/::Servicecxx . . $ Accounts/Service# service = m_managercxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#m_manager..servicecxx . . $ Accounts/Manager#service(5286df8bfd80fbad).(sc.servicecxx . . $ OnlineAccountsUi/ServiceChanges#service.); |
| 130 | if (Q_UNLIKELYcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:247:11`!(!service.isValid())) { |
| 131 | qWarningcxx . . $ `<external>/10450329605257866924/qlogging.h:166:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Invalid service" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). sc.servicecxx . . $ OnlineAccountsUi/ServiceChanges#service.; |
| 132 | continue; |
| 133 | } |
| 134 | |
| 135 | account->selectServicecxx . . $ Accounts/Account#selectService(3151c7fcce91492).(service); |
| 136 | } |
| 137 | |
| 138 | QMapIteratorcxx . . $ QMapIterator#<QStringcxx . . $ QString#, QVariantcxx . . $ QVariant#> itcxx . . $ QMapIterator#QMapIterator(1d85e448f11cafa).(sc.settingscxx . . $ OnlineAccountsUi/ServiceChanges#settings.); |
| 139 | while (it.hasNextcxx . . $ QMapIterator#hasNext(50ce9a9e25b4a850).()) { |
| 140 | it.nextcxx . . $ QMapIterator#next(5c754f5fbc3bb3d6).(); |
| 141 | account->setValuecxx . . $ Accounts/Account#setValue(1c60a90c724e6bfb).(it.keycxx . . $ QMapIterator#key(ea465e50d690edfe).(), it.valuecxx . . $ QMapIterator#value(bdbd05d619d62250).()); |
| 142 | } |
| 143 | |
| 144 | Q_FOREACHcxx . . $ `<external>/15045578679651060896/qglobal.h:1137:9`!(const QString &key, sc.removedKeys) { |
| 145 | account->removecxx . . $ Accounts/Account#remove(3520e46b33348bf6).(key); |
| 146 | } |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | m_pendingWritescxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#m_pendingWrites..insertcxx . . $ QHash#insert(d77b19c31d2eb147).(account, |
| 151 | PendingWritecxx . . $ OnlineAccountsUi/PendingWrite#PendingWrite(232c544489178d56).(q->connectioncxx . . $ QDBusContext#connection(c96d733cf6a2a750).(), q->messagecxx . . $ QDBusContext#message(c95203e4dc7b0001).())); |
| 152 | QObjectcxx . . $ QObject#::connectcxx . . $ QObject#connect(158df1d9a01a3410).(account, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(synced()), |
| 153 | this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onAccountSynced())); |
| 154 | QObjectcxx . . $ QObject#::connectcxx . . $ QObject#connect(158df1d9a01a3410).(account, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(error(Accounts::Error)), |
| 155 | this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onAccountError(Accounts::Error))); |
| 156 | account->synccxx . . $ Accounts/Account#sync(49f6e7a06ebc5aa8).(); |
| 157 | } |
| 158 | |
| 159 | void LibaccountsServicePrivatecxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#::onAccountSyncedcxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#onAccountSynced(49f6e7a06ebc5aa8).() |
| 160 | { |
| 161 | Accountscxx . . $ Accounts/::Accountcxx . . $ Accounts/Account# *account = qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<Accountscxx . . $ Accounts/::Accountcxx . . $ Accounts/Account#*>(sendercxx . . $ QObject#sender(2dbb680a34285c44).()); |
| 162 | uintcxx . . $ uint# accountId = account->idcxx . . $ Accounts/Account#id(ddd8539a2fcdd4ce).(); |
| 163 | account->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 164 | |
| 165 | QHashcxx . . $ QHash#<Accounts::Account*,PendingWrite>::iteratorcxx . . $ QHash#iterator# i = |
| 166 | m_pendingWritescxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#m_pendingWrites..findcxx . . $ QHash#find(1cadc8f6e24105ba).(account); |
| 167 | if (Q_LIKELYcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:246:11`!(i != m_pendingWrites.end())) { |
| 168 | PendingWritecxx . . $ OnlineAccountsUi/PendingWrite# &w = i.valuecxx . . $ QHash#iterator#value(51f62fb05f27f6a2).(); |
| 169 | w.connectioncxx . . $ OnlineAccountsUi/PendingWrite#connection..sendcxx . . $ QDBusConnection#send(88cf1e7c0a6f9f8e).(w.messagecxx . . $ OnlineAccountsUi/PendingWrite#message..createReplycxx . . $ QDBusMessage#createReply(6d61b237a175eff6).(accountIdcxx . . $ QVariant#QVariant(cb2f890c2fdad230).)); |
| 170 | m_pendingWritescxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#m_pendingWrites..erasecxx . . $ QHash#erase(e2b42d54101aa4fd).(i); |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | void LibaccountsServicePrivatecxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#::onAccountErrorcxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#onAccountError(32890befce804a17).(Accountscxx . . $ Accounts/::Errorcxx . . $ Accounts/Error# error) |
| 175 | { |
| 176 | Accountscxx . . $ Accounts/::Accountcxx . . $ Accounts/Account# *account = qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<Accountscxx . . $ Accounts/::Accountcxx . . $ Accounts/Account#*>(sendercxx . . $ QObject#sender(2dbb680a34285c44).()); |
| 177 | account->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 178 | |
| 179 | QHashcxx . . $ QHash#<Accounts::Account*,PendingWrite>::iteratorcxx . . $ QHash#iterator# i = |
| 180 | m_pendingWritescxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#m_pendingWrites..findcxx . . $ QHash#find(1cadc8f6e24105ba).(account); |
| 181 | if (Q_LIKELYcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:246:11`!(i != m_pendingWrites.end())) { |
| 182 | PendingWritecxx . . $ OnlineAccountsUi/PendingWrite# &w = i.valuecxx . . $ QHash#iterator#value(51f62fb05f27f6a2).(); |
| 183 | QDBusMessagecxx . . $ QDBusMessage# reply = |
| 184 | w.messagecxx . . $ OnlineAccountsUi/PendingWrite#message..createErrorReplycxx . . $ QDBusMessage#createErrorReply(9b549f0b01ef3074).(QDBusErrorcxx . . $ QDBusError#::InternalErrorcxx . . $ QDBusError#InternalError., |
| 185 | error.messagecxx . . $ Accounts/Error#message(6ef7b6c27b00b43d).()); |
| 186 | w.connectioncxx . . $ OnlineAccountsUi/PendingWrite#connection..sendcxx . . $ QDBusConnection#send(88cf1e7c0a6f9f8e).(reply); |
| 187 | m_pendingWritescxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#m_pendingWrites..erasecxx . . $ QHash#erase(e2b42d54101aa4fd).(i); |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | LibaccountsServicecxx . . $ OnlineAccountsUi/LibaccountsService#::LibaccountsServicecxx . . $ OnlineAccountsUi/LibaccountsService#LibaccountsService(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent): |
| 192 | QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent), |
| 193 | d_ptrcxx . . $ OnlineAccountsUi/LibaccountsService#d_ptr.(new LibaccountsServicePrivatecxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#LibaccountsServicePrivate(96913d1fa439e9ee).(this)) |
| 194 | { |
| 195 | } |
| 196 | |
| 197 | LibaccountsServicecxx . . $ OnlineAccountsUi/LibaccountsService#::~cxx . . $ OnlineAccountsUi/LibaccountsService#`~LibaccountsService`(ced63f7c635d850d).LibaccountsServicecxx . . $ OnlineAccountsUi/LibaccountsService#() |
| 198 | { |
| 199 | delete d_ptrcxx . . $ OnlineAccountsUi/LibaccountsService#d_ptr.; |
| 200 | } |
| 201 | |
| 202 | void LibaccountsServicecxx . . $ OnlineAccountsUi/LibaccountsService#::storecxx . . $ OnlineAccountsUi/LibaccountsService#store(65337ba3304bf734).(const QDBusMessagecxx . . $ QDBusMessage# &msg) |
| 203 | { |
| 204 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(LibaccountsService); |
| 205 | |
| 206 | DEBUGcxx . . $ `online-accounts-common/debug.h:42:13`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Got request:" <<cxx . . $ `operator<<`(2f518bd6d1017a6b). msg; |
| 207 | |
| 208 | /* The following line tells QtDBus not to generate a reply now */ |
| 209 | setDelayedReplycxx . . $ QDBusContext#setDelayedReply(a85845bc2b7828e2).(true); |
| 210 | |
| 211 | AccountChangescxx . . $ OnlineAccountsUi/AccountChanges# changes; |
| 212 | |
| 213 | // signature: "ubbsa(ssua{sv}as)" |
| 214 | QListcxx . . $ QList#<QVariantcxx . . $ QVariant#> args = msg.argumentscxx . . $ QDBusMessage#arguments(a208304be85d9b76).(); |
| 215 | int n = 0; |
| 216 | changes.accountIdcxx . . $ OnlineAccountsUi/AccountChanges#accountId. = args.valuecxx . . $ QList#value(b4be2ec6940d8d62).(n++).toUIntcxx . . $ QVariant#toUInt(870b63f89c7fb98).(); |
| 217 | changes.createdcxx . . $ OnlineAccountsUi/AccountChanges#created. = args.valuecxx . . $ QList#value(b4be2ec6940d8d62).(n++).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).(); |
| 218 | changes.deletedcxx . . $ OnlineAccountsUi/AccountChanges#deleted. = args.valuecxx . . $ QList#value(b4be2ec6940d8d62).(n++).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).(); |
| 219 | changes.providercxx . . $ OnlineAccountsUi/AccountChanges#provider. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). args.valuecxx . . $ QList#value(b4be2ec6940d8d62).(n++).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).(); |
| 220 | |
| 221 | /* before continuing demarshalling the arguments, check if the provider ID |
| 222 | * matches the apparmor label of the peer; if it doesn't, we shouldn't |
| 223 | * honour this request. */ |
| 224 | QStringcxx . . $ QString# profile = apparmorProfileOfPeercxx . . $ OnlineAccountsUi/apparmorProfileOfPeer(240daad04e90b966).(msg); |
| 225 | if (stripVersioncxx . . $ stripVersion(fd988a2ab94d906b).(profile) !=cxx . . $ `operator!=`(5bc2975d2d751687). changes.providercxx . . $ OnlineAccountsUi/AccountChanges#provider.) { |
| 226 | DEBUGcxx . . $ `online-accounts-common/debug.h:42:13`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Declining AccountManager store request to" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). profile <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). |
| 227 | "for provider" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). changes.providercxx . . $ OnlineAccountsUi/AccountChanges#provider.; |
| 228 | QDBusMessagecxx . . $ QDBusMessage# reply = msg.createErrorReplycxx . . $ QDBusMessage#createErrorReply(9b549f0b01ef3074).(QDBusErrorcxx . . $ QDBusError#::AccessDeniedcxx . . $ QDBusError#AccessDenied., |
| 229 | "Profile/provider mismatch"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 230 | connectioncxx . . $ QDBusContext#connection(c96d733cf6a2a750).().sendcxx . . $ QDBusConnection#send(88cf1e7c0a6f9f8e).(reply); |
| 231 | return; |
| 232 | } |
| 233 | |
| 234 | const QDBusArgumentcxx . . $ QDBusArgument# dbusChanges = args.valuecxx . . $ QList#value(b4be2ec6940d8d62).(n++).valuecxx . . $ QVariant#value(8f5363d873dd4781).<QDBusArgumentcxx . . $ QDBusArgument#>(); |
| 235 | dbusChanges.beginArraycxx . . $ QDBusArgument#beginArray(83f5f38750778ac8).(); |
| 236 | while (!dbusChanges.atEndcxx . . $ QDBusArgument#atEnd(50ce9a9e25b4a850).()) { |
| 237 | ServiceChangescxx . . $ OnlineAccountsUi/ServiceChanges# sc; |
| 238 | dbusChanges.beginStructurecxx . . $ QDBusArgument#beginStructure(83f5f38750778ac8).(); |
| 239 | dbusChanges >>cxx . . $ QDBusArgument#`operator>>`(a7c1040e1162c787). sc.servicecxx . . $ OnlineAccountsUi/ServiceChanges#service.; |
| 240 | dbusChanges >>cxx . . $ QDBusArgument#`operator>>`(a7c1040e1162c787). sc.serviceTypecxx . . $ OnlineAccountsUi/ServiceChanges#serviceType.; |
| 241 | dbusChanges >>cxx . . $ QDBusArgument#`operator>>`(394db848110320d2). sc.serviceIdcxx . . $ OnlineAccountsUi/ServiceChanges#serviceId.; |
| 242 | dbusChanges >>cxx . . $ `operator>>`(b1c6264cb8a0f1f0). sc.settingscxx . . $ OnlineAccountsUi/ServiceChanges#settings.; |
| 243 | dbusChanges >>cxx . . $ QDBusArgument#`operator>>`(74bb8ffacc0159d6). sc.removedKeyscxx . . $ OnlineAccountsUi/ServiceChanges#removedKeys.; |
| 244 | dbusChanges.endStructurecxx . . $ QDBusArgument#endStructure(83f5f38750778ac8).(); |
| 245 | |
| 246 | changes.serviceChangescxx . . $ OnlineAccountsUi/AccountChanges#serviceChanges..appendcxx . . $ QList#append(77d9f17553126ecb).(sc); |
| 247 | } |
| 248 | dbusChanges.endArraycxx . . $ QDBusArgument#endArray(83f5f38750778ac8).(); |
| 249 | |
| 250 | d->writeChangescxx . . $ OnlineAccountsUi/LibaccountsServicePrivate#writeChanges(7c9f86ba6e700dae).(changes); |
| 251 | } |
| 252 | |
| 253 | #include "libaccounts-service.moc"cxx . . $ `<file>/build/online-accounts-service/src/lomiri-online-accounts-service_autogen/include/libaccounts-service.moc`/ |