| 1 | /* |
| 2 | * Copyright (C) 2013-2015 Canonical Ltd. |
| 3 | * |
| 4 | * Contact: Alberto Mardegan <[email protected]> |
| 5 | * |
| 6 | * This file is part of OnlineAccountsClient. |
| 7 | * |
| 8 | * OnlineAccountsClient is free software: you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU Lesser General Public License as |
| 10 | * published by the Free Software Foundation, either version 3 of the |
| 11 | * License, or (at your option) any later version. |
| 12 | * |
| 13 | * OnlineAccountsClient is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU Lesser General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public License |
| 19 | * along with OnlineAccountsClient. If not, see |
| 20 | * <http://www.gnu.org/licenses/>. |
| 21 | */ |
| 22 | |
| 23 | #include <online-accounts-common/globals.h>cxx . . $ `<file>/online-accounts-common/globals.h`/ |
| 24 | #include "OnlineAccountsUi.h"cxx . . $ `<file>/build/online-accounts-client/lib/LomiriOnlineAccountsClient/OnlineAccountsUi.h`/ |
| 25 | #include "setup.h"cxx . . $ `<file>/online-accounts-client/lib/LomiriOnlineAccountsClient/setup.h`/ |
| 26 | |
| 27 | #include <QDBusConnection> |
| 28 | #include <QDBusPendingCallWatcher> |
| 29 | #include <QDBusPendingReply> |
| 30 | #include <QGuiApplication> |
| 31 | #include <QWindow> |
| 32 | #include <climits> |
| 33 | |
| 34 | using namespace OnlineAccountsClient; |
| 35 | using namespace comcxx . . $ com/::lomiri; |
| 36 | |
| 37 | namespace OnlineAccountsClientcxx . . $ OnlineAccountsClient/ { |
| 38 | |
| 39 | class SetupPrivatecxx . . $ OnlineAccountsClient/SetupPrivate#: public QObjectcxx . . $ QObject# |
| 40 | { |
| 41 | Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`! |
| 42 | Q_DECLARE_PUBLICcxx . . $ `<external>/15045578679651060896/qglobal.h:1172:9`!(Setup) |
| 43 | |
| 44 | public: |
| 45 | inline SetupPrivatecxx . . $ OnlineAccountsClient/SetupPrivate#SetupPrivate(8bb9879ccbf252e4).(Setupcxx . . $ OnlineAccountsClient/Setup# *setup); |
| 46 | ~cxx . . $ OnlineAccountsClient/SetupPrivate#`~SetupPrivate`(ced63f7c635d850d).SetupPrivatecxx . . $ OnlineAccountsClient/SetupPrivate#() {}; |
| 47 | |
| 48 | void execcxx . . $ OnlineAccountsClient/SetupPrivate#exec(49f6e7a06ebc5aa8).(); |
| 49 | QWindowcxx . . $ QWindow# *clientWindowcxx . . $ OnlineAccountsClient/SetupPrivate#clientWindow(d520c9a5ccf200dd).() const; |
| 50 | |
| 51 | private Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!: |
| 52 | void onRequestAccessReplycxx . . $ OnlineAccountsClient/SetupPrivate#onRequestAccessReply(d27dd7c217027f21).(QDBusPendingCallWatchercxx . . $ QDBusPendingCallWatcher# *watcher); |
| 53 | |
| 54 | private: |
| 55 | OnlineAccountsUicxx . . $ com/lomiri/OnlineAccountsUi# m_onlineAccountsUicxx . . $ OnlineAccountsClient/SetupPrivate#m_onlineAccountsUi.; |
| 56 | QStringcxx . . $ QString# m_applicationIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_applicationId.; |
| 57 | QStringcxx . . $ QString# m_serviceIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_serviceId.; |
| 58 | QStringcxx . . $ QString# m_serviceTypeIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_serviceTypeId.; |
| 59 | QStringcxx . . $ QString# m_providerIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_providerId.; |
| 60 | pid_t m_clientPidcxx . . $ OnlineAccountsClient/SetupPrivate#m_clientPid.; |
| 61 | mutable Setupcxx . . $ OnlineAccountsClient/Setup# *q_ptrcxx . . $ OnlineAccountsClient/SetupPrivate#q_ptr.; |
| 62 | }; |
| 63 | |
| 64 | }; // namespace |
| 65 | |
| 66 | static QDBusConnectioncxx . . $ QDBusConnection# sessionBuscxx . . $ sessionBus(45d475f1888103b2).() { |
| 67 | /* When this module is used within the online-accounts-service process, we |
| 68 | * need to use a separate D-Bus connection otherwise link-local calls won't |
| 69 | * work (QtDBus does not support delayed replies on local calls). */ |
| 70 | return QCoreApplicationcxx . . $ QCoreApplication#::applicationNamecxx . . $ QCoreApplication#applicationName(4365c3963150523e).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "lomiri-online-accounts-service" ? |
| 71 | QDBusConnectioncxx . . $ QDBusConnection#::connectToBuscxx . . $ QDBusConnection#connectToBus(47ea62bb972d8711).(QDBusConnectioncxx . . $ QDBusConnection#::SessionBuscxx . . $ QDBusConnection#SessionBus., "oa-private"cxx . . $ QString#QString(85c52e162fed56f9).) : |
| 72 | QDBusConnectioncxx . . $ QDBusConnection#::sessionBuscxx . . $ QDBusConnection#sessionBus(45d475f1888103b2).(); |
| 73 | } |
| 74 | |
| 75 | SetupPrivatecxx . . $ OnlineAccountsClient/SetupPrivate#::SetupPrivatecxx . . $ OnlineAccountsClient/SetupPrivate#SetupPrivate(8bb9879ccbf252e4).(Setupcxx . . $ OnlineAccountsClient/Setup# *setup): |
| 76 | QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(setup), |
| 77 | m_onlineAccountsUicxx . . $ OnlineAccountsClient/SetupPrivate#m_onlineAccountsUi.(OAU_SERVICE_NAMEcxx . . $ `online-accounts-common/globals.h:25:9`!, |
| 78 | OAU_OBJECT_PATHcxx . . $ `online-accounts-common/globals.h:26:9`!, |
| 79 | sessionBuscxx . . $ sessionBus(45d475f1888103b2).()), |
| 80 | m_clientPidcxx . . $ OnlineAccountsClient/SetupPrivate#m_clientPid.(0), |
| 81 | q_ptrcxx . . $ OnlineAccountsClient/SetupPrivate#q_ptr.(setup) |
| 82 | { |
| 83 | m_onlineAccountsUicxx . . $ OnlineAccountsClient/SetupPrivate#m_onlineAccountsUi..setTimeoutcxx . . $ QDBusAbstractInterface#setTimeout(d4f767463ce0a6b3).(INT_MAXcxx . . $ `<external>/67164224788392828/limits.h:120:9`!); |
| 84 | } |
| 85 | |
| 86 | void SetupPrivatecxx . . $ OnlineAccountsClient/SetupPrivate#::execcxx . . $ OnlineAccountsClient/SetupPrivate#exec(49f6e7a06ebc5aa8).() |
| 87 | { |
| 88 | QVariantMapcxx . . $ QVariantMap# optionscxx . . $ QMap#QMap(ced63f7c635d850d).; |
| 89 | |
| 90 | options.insertcxx . . $ QMap#insert(929a1ed410fe8423).(OAU_KEY_PIDcxx . . $ `online-accounts-common/globals.h:34:9`!, |
| 91 | uintcxx . . $ QVariant#QVariant(cb2f890c2fdad230).(m_clientPidcxx . . $ OnlineAccountsClient/SetupPrivate#m_clientPid. != 0 ? m_clientPidcxx . . $ OnlineAccountsClient/SetupPrivate#m_clientPid. : getpid())); |
| 92 | |
| 93 | QWindowcxx . . $ QWindow# *window = clientWindowcxx . . $ OnlineAccountsClient/SetupPrivate#clientWindow(d520c9a5ccf200dd).(); |
| 94 | if (window) { |
| 95 | options.insertcxx . . $ QMap#insert(929a1ed410fe8423).(OAU_KEY_WINDOW_IDcxx . . $ `online-accounts-common/globals.h:33:9`!, windowcxx . . $ QVariant#QVariant(891dc3055356b409).->winIdcxx . . $ QWindow#winId(1c5fc1fd41a99ae7).()); |
| 96 | /* TODO: remove this hack once Mir supports window reparenting. |
| 97 | * Since Mir always return the same window Id for all windows, we use |
| 98 | * the process ID instead; for the time being this is acceptable since |
| 99 | * Mir/lomiri don't support more than one window per process. |
| 100 | * See: https://bugs.launchpad.net/bugs/1153666 */ |
| 101 | if (QGuiApplicationcxx . . $ QGuiApplication#::platformNamecxx . . $ QGuiApplication#platformName(4365c3963150523e).().startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ubuntu"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 102 | options.insertcxx . . $ QMap#insert(929a1ed410fe8423).(OAU_KEY_WINDOW_IDcxx . . $ `online-accounts-common/globals.h:33:9`!, uintcxx . . $ QVariant#QVariant(cb2f890c2fdad230).(getpid())); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | if (!m_applicationIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_applicationId..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 107 | options.insertcxx . . $ QMap#insert(929a1ed410fe8423).(OAU_KEY_APPLICATIONcxx . . $ `online-accounts-common/globals.h:29:9`!, m_applicationIdcxx . . $ QVariant#QVariant(3520e46b33348bf6).); |
| 108 | } |
| 109 | |
| 110 | if (!m_serviceIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_serviceId..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 111 | options.insertcxx . . $ QMap#insert(929a1ed410fe8423).(OAU_KEY_SERVICE_IDcxx . . $ `online-accounts-common/globals.h:31:9`!, m_serviceIdcxx . . $ QVariant#QVariant(3520e46b33348bf6).); |
| 112 | } |
| 113 | |
| 114 | if (!m_serviceTypeIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_serviceTypeId..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 115 | options.insertcxx . . $ QMap#insert(929a1ed410fe8423).(OAU_KEY_SERVICE_TYPEcxx . . $ `online-accounts-common/globals.h:32:9`!, m_serviceTypeIdcxx . . $ QVariant#QVariant(3520e46b33348bf6).); |
| 116 | } |
| 117 | |
| 118 | if (!m_providerIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_providerId..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) { |
| 119 | options.insertcxx . . $ QMap#insert(929a1ed410fe8423).(OAU_KEY_PROVIDERcxx . . $ `online-accounts-common/globals.h:30:9`!, m_providerIdcxx . . $ QVariant#QVariant(3520e46b33348bf6).); |
| 120 | } |
| 121 | |
| 122 | QDBusPendingReplycxx . . $ QDBusPendingReply#<QVariantMapcxx . . $ QVariantMap#> reply = |
| 123 | m_onlineAccountsUicxx . . $ OnlineAccountsClient/SetupPrivate#m_onlineAccountsUi..requestAccesscxx . . $ ComLomiriOnlineAccountsUiInterface#requestAccess(60718172e0bff416).(options); |
| 124 | QDBusPendingCallWatchercxx . . $ QDBusPendingCallWatcher# *watcher = new QDBusPendingCallWatchercxx . . $ QDBusPendingCallWatcher#QDBusPendingCallWatcher(a613d4c11aa30e35).(reply, |
| 125 | this); |
| 126 | QObjectcxx . . $ QObject#::connectcxx . . $ QObject#connect(158df1d9a01a3410).(watcher, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(finished(QDBusPendingCallWatcher*)), |
| 127 | this, |
| 128 | SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onRequestAccessReply(QDBusPendingCallWatcher*))); |
| 129 | } |
| 130 | |
| 131 | QWindowcxx . . $ QWindow# *SetupPrivatecxx . . $ OnlineAccountsClient/SetupPrivate#::clientWindowcxx . . $ OnlineAccountsClient/SetupPrivate#clientWindow(d520c9a5ccf200dd).() const |
| 132 | { |
| 133 | QWindowcxx . . $ QWindow# *window = QGuiApplicationcxx . . $ QGuiApplication#::focusWindowcxx . . $ QGuiApplication#focusWindow(f27424a65d658b6a).(); |
| 134 | if (window) return window; |
| 135 | |
| 136 | /* Otherwise, just return the first toplevel window; later on, if the need |
| 137 | * arises, we might add a property to let the client explicitly specify |
| 138 | * which window to use. */ |
| 139 | return QGuiApplicationcxx . . $ QGuiApplication#::topLevelWindowscxx . . $ QGuiApplication#topLevelWindows(6f5dd76750cb1881).().valuecxx . . $ QList#value(1262e1a11a34054e).(0, 0); |
| 140 | } |
| 141 | |
| 142 | void SetupPrivatecxx . . $ OnlineAccountsClient/SetupPrivate#::onRequestAccessReplycxx . . $ OnlineAccountsClient/SetupPrivate#onRequestAccessReply(d27dd7c217027f21).(QDBusPendingCallWatchercxx . . $ QDBusPendingCallWatcher# *watcher) |
| 143 | { |
| 144 | Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(Setup); |
| 145 | |
| 146 | watcher->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 147 | |
| 148 | QVariantMapcxx . . $ QVariantMap# responsecxx . . $ QMap#QMap(ced63f7c635d850d).; |
| 149 | |
| 150 | QDBusPendingReplycxx . . $ QDBusPendingReply#<QVariantMapcxx . . $ QVariantMap#> reply = *cxx . . $ QDBusPendingReply#QDBusPendingReply(8091e1e063dfdcb5).watcher; |
| 151 | if (reply.isErrorcxx . . $ QDBusPendingCall#isError(50ce9a9e25b4a850).()) { |
| 152 | qWarningcxx . . $ `<external>/10450329605257866924/qlogging.h:166:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "RequestAccess failed:" <<cxx . . $ `operator<<`(976ebc07326be0a2). reply.errorcxx . . $ QDBusPendingCall#error(1d9100e4f448fa26).(); |
| 153 | response.insertcxx . . $ QMap#insert(929a1ed410fe8423).("errorName"cxx . . $ QString#QString(85c52e162fed56f9)., replycxx . . $ QVariant#QVariant(3520e46b33348bf6)..errorcxx . . $ QDBusPendingCall#error(1d9100e4f448fa26).().namecxx . . $ QDBusError#name(6ef7b6c27b00b43d).()); |
| 154 | } else { |
| 155 | // At the moment, we don't have any use for the reply. |
| 156 | response =cxx . . $ QMap#`operator=`(86243d55ea3d6313). reply.valuecxx . . $ QDBusPendingReply#value(10b2d146760e3f94).(); |
| 157 | } |
| 158 | |
| 159 | Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! q->finishedcxx . . $ OnlineAccountsClient/Setup#finished(74e937dbdebc0ff5).(responsecxx . . $ QMap#QMap(21739d87639e1d56).); |
| 160 | } |
| 161 | |
| 162 | /*! |
| 163 | * \qmltype Setup |
| 164 | * \inqmlmodule Lomiri.OnlineAccounts.Client 0.1 |
| 165 | * \ingroup Lomiri |
| 166 | * |
| 167 | * \brief Invoke the Online Accounts panel |
| 168 | * |
| 169 | * This object can be used by applications to request the creation of an |
| 170 | * account. By calling the \l exec() method, the Online Accounts panel will |
| 171 | * appear and guide the user through the creation of an account. Once done, the |
| 172 | * \l finished() signal will be emitted. The type of account to be created can |
| 173 | * be configured by this object's properties. |
| 174 | * |
| 175 | * Example: |
| 176 | * |
| 177 | * \qml |
| 178 | * import QtQuick 2.9 |
| 179 | * import Lomiri.Components 1.3 |
| 180 | * import Lomiri.OnlineAccounts.Client 0.1 |
| 181 | * |
| 182 | * Rectangle { |
| 183 | * width: 400 |
| 184 | * height: 300 |
| 185 | * |
| 186 | * Button { |
| 187 | * anchors.centerIn: parent |
| 188 | * text: "Create Facebook account" |
| 189 | * onClicked: setup.exec() |
| 190 | * } |
| 191 | * |
| 192 | * Setup { |
| 193 | * id: setup |
| 194 | * applicationId: "MyApp" |
| 195 | * providerId: "facebook" |
| 196 | * } |
| 197 | * } |
| 198 | * \endqml |
| 199 | */ |
| 200 | Setupcxx . . $ OnlineAccountsClient/Setup#::Setupcxx . . $ OnlineAccountsClient/Setup#Setup(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent): |
| 201 | QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent), |
| 202 | d_ptrcxx . . $ OnlineAccountsClient/Setup#d_ptr.(new SetupPrivatecxx . . $ OnlineAccountsClient/SetupPrivate#SetupPrivate(8bb9879ccbf252e4).(this)) |
| 203 | { |
| 204 | } |
| 205 | |
| 206 | Setupcxx . . $ OnlineAccountsClient/Setup#::~cxx . . $ OnlineAccountsClient/Setup#`~Setup`(ced63f7c635d850d).Setupcxx . . $ OnlineAccountsClient/Setup#() |
| 207 | { |
| 208 | delete d_ptrcxx . . $ OnlineAccountsClient/Setup#d_ptr.; |
| 209 | } |
| 210 | |
| 211 | /*! |
| 212 | * \qmlproperty string Setup::applicationId |
| 213 | * Specifies which application is asking for access. The value of this string |
| 214 | * must be equal to the filename of the XML application file (installed in \c |
| 215 | * /usr/share/accounts/applications/ or \c |
| 216 | * ~/.local/share/accounts/applications/) minus the \c .application suffix. |
| 217 | */ |
| 218 | void Setupcxx . . $ OnlineAccountsClient/Setup#::setApplicationIdcxx . . $ OnlineAccountsClient/Setup#setApplicationId(3520e46b33348bf6).(const QStringcxx . . $ QString# &applicationId) |
| 219 | { |
| 220 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(Setup); |
| 221 | if (applicationId ==cxx . . $ `operator==`(5bc2975d2d751687). d->m_applicationIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_applicationId.) return; |
| 222 | d->m_applicationIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_applicationId. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). applicationId; |
| 223 | Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! applicationIdChangedcxx . . $ OnlineAccountsClient/Setup#applicationIdChanged(49f6e7a06ebc5aa8).(); |
| 224 | } |
| 225 | |
| 226 | QStringcxx . . $ QString# Setupcxx . . $ OnlineAccountsClient/Setup#::applicationIdcxx . . $ OnlineAccountsClient/Setup#applicationId(6ef7b6c27b00b43d).() const |
| 227 | { |
| 228 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Setup); |
| 229 | return dcxx . . $ QString#QString(132dd6869045752b).->m_applicationIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_applicationId.; |
| 230 | } |
| 231 | |
| 232 | /*! |
| 233 | * \qmlproperty string Setup::serviceId |
| 234 | * If set to a valid service ID, the user will be asked to create an Online |
| 235 | * Account which provides this service. |
| 236 | */ |
| 237 | void Setupcxx . . $ OnlineAccountsClient/Setup#::setServiceIdcxx . . $ OnlineAccountsClient/Setup#setServiceId(3520e46b33348bf6).(const QStringcxx . . $ QString# &serviceId) |
| 238 | { |
| 239 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(Setup); |
| 240 | if (serviceId ==cxx . . $ `operator==`(5bc2975d2d751687). d->m_serviceIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_serviceId.) return; |
| 241 | d->m_serviceIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_serviceId. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). serviceId; |
| 242 | Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! serviceIdChangedcxx . . $ OnlineAccountsClient/Setup#serviceIdChanged(49f6e7a06ebc5aa8).(); |
| 243 | } |
| 244 | |
| 245 | QStringcxx . . $ QString# Setupcxx . . $ OnlineAccountsClient/Setup#::serviceIdcxx . . $ OnlineAccountsClient/Setup#serviceId(6ef7b6c27b00b43d).() const |
| 246 | { |
| 247 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Setup); |
| 248 | return dcxx . . $ QString#QString(132dd6869045752b).->m_serviceIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_serviceId.; |
| 249 | } |
| 250 | |
| 251 | /*! |
| 252 | * \qmlproperty string Setup::serviceTypeId |
| 253 | * If set to a valid service type, the user will be asked to create an Online |
| 254 | * Account which supports this service type. |
| 255 | */ |
| 256 | void Setupcxx . . $ OnlineAccountsClient/Setup#::setServiceTypeIdcxx . . $ OnlineAccountsClient/Setup#setServiceTypeId(3520e46b33348bf6).(const QStringcxx . . $ QString# &serviceTypeId) |
| 257 | { |
| 258 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(Setup); |
| 259 | if (serviceTypeId ==cxx . . $ `operator==`(5bc2975d2d751687). d->m_serviceTypeIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_serviceTypeId.) return; |
| 260 | d->m_serviceTypeIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_serviceTypeId. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). serviceTypeId; |
| 261 | Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! serviceTypeIdChangedcxx . . $ OnlineAccountsClient/Setup#serviceTypeIdChanged(49f6e7a06ebc5aa8).(); |
| 262 | } |
| 263 | |
| 264 | QStringcxx . . $ QString# Setupcxx . . $ OnlineAccountsClient/Setup#::serviceTypeIdcxx . . $ OnlineAccountsClient/Setup#serviceTypeId(6ef7b6c27b00b43d).() const |
| 265 | { |
| 266 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Setup); |
| 267 | return dcxx . . $ QString#QString(132dd6869045752b).->m_serviceTypeIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_serviceTypeId.; |
| 268 | } |
| 269 | |
| 270 | /*! |
| 271 | * \qmlproperty string Setup::providerId |
| 272 | * If set to a valid provider, the user will be asked to create an Online |
| 273 | * Account provided by this entity. |
| 274 | */ |
| 275 | void Setupcxx . . $ OnlineAccountsClient/Setup#::setProviderIdcxx . . $ OnlineAccountsClient/Setup#setProviderId(3520e46b33348bf6).(const QStringcxx . . $ QString# &providerId) |
| 276 | { |
| 277 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(Setup); |
| 278 | if (providerId ==cxx . . $ `operator==`(5bc2975d2d751687). d->m_providerIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_providerId.) return; |
| 279 | d->m_providerIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_providerId. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). providerId; |
| 280 | Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! providerIdChangedcxx . . $ OnlineAccountsClient/Setup#providerIdChanged(49f6e7a06ebc5aa8).(); |
| 281 | } |
| 282 | |
| 283 | QStringcxx . . $ QString# Setupcxx . . $ OnlineAccountsClient/Setup#::providerIdcxx . . $ OnlineAccountsClient/Setup#providerId(6ef7b6c27b00b43d).() const |
| 284 | { |
| 285 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Setup); |
| 286 | return dcxx . . $ QString#QString(132dd6869045752b).->m_providerIdcxx . . $ OnlineAccountsClient/SetupPrivate#m_providerId.; |
| 287 | } |
| 288 | |
| 289 | /* At the moment this method is meant to be used by unconfined services, when |
| 290 | * forwarding a request from their client. |
| 291 | */ |
| 292 | void Setupcxx . . $ OnlineAccountsClient/Setup#::setClientPidcxx . . $ OnlineAccountsClient/Setup#setClientPid(d4f767463ce0a6b3).(pid_t clientPid) |
| 293 | { |
| 294 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(Setup); |
| 295 | d->m_clientPidcxx . . $ OnlineAccountsClient/SetupPrivate#m_clientPid. = clientPid; |
| 296 | } |
| 297 | |
| 298 | /*! |
| 299 | * \qmlmethod void Setup::exec() |
| 300 | * Launches the Online Accounts panel. |
| 301 | */ |
| 302 | void Setupcxx . . $ OnlineAccountsClient/Setup#::execcxx . . $ OnlineAccountsClient/Setup#exec(49f6e7a06ebc5aa8).() |
| 303 | { |
| 304 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(Setup); |
| 305 | d->execcxx . . $ OnlineAccountsClient/SetupPrivate#exec(49f6e7a06ebc5aa8).(); |
| 306 | } |
| 307 | |
| 308 | /*! |
| 309 | * \qmlsignal Setup::finished() |
| 310 | * Emitted when the Online Accounts panel has been closed. |
| 311 | */ |
| 312 | |
| 313 | #include "setup.moc"cxx . . $ `<file>/build/online-accounts-client/lib/LomiriOnlineAccountsClient/lomiri-online-accounts-client_autogen/include/setup.moc`/ |