| 1 | /* |
| 2 | * This file is part of libOnlineAccounts |
| 3 | * |
| 4 | * Copyright (C) 2015-2016 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 "authentication_data.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/authentication_data.h`/ |
| 22 | |
| 23 | #include <QDBusArgument> |
| 24 | #include <QDBusMessage> |
| 25 | #include <QDebug> |
| 26 | #include <LomiriOnlineAccountsDaemon/dbus_constants.h>cxx . . $ `<file>/online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h`/ |
| 27 | #include "error_p.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/error_p.h`/ |
| 28 | #include "pending_call_p.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/pending_call_p.h`/ |
| 29 | |
| 30 | using namespace OnlineAccounts; |
| 31 | |
| 32 | static QVariantcxx . . $ QVariant# expandDBusArgumentscxx . . $ expandDBusArguments(b1a0c0bd15ff7115).(const QVariantcxx . . $ QVariant# &variant) |
| 33 | { |
| 34 | if (variant.userTypecxx . . $ QVariant#userType(455f465bc33b4cdf).() == qMetaTypeIdcxx . . $ qMetaTypeId(b126dc7c1de90089).<QDBusArgumentcxx . . $ QDBusArgument#>()) { |
| 35 | QDBusArgumentcxx . . $ QDBusArgument# argument = variant.valuecxx . . $ QVariant#value(8f5363d873dd4781).<QDBusArgumentcxx . . $ QDBusArgument#>(); |
| 36 | if (argument.currentTypecxx . . $ QDBusArgument#currentType(ee760ae36459d67e).() == QDBusArgumentcxx . . $ QDBusArgument#::MapTypecxx . . $ QDBusArgument#MapType.) { |
| 37 | /* Assume that all maps are a{sv} */ |
| 38 | QVariantMapcxx . . $ QVariantMap# map = qdbus_castcxx . . $ qdbus_cast(77fb564ca0a1ed4b).<QVariantMapcxx . . $ QVariantMap#>(argument); |
| 39 | QVariantMapcxx . . $ QVariantMap# expandedMapcxx . . $ QMap#QMap(ced63f7c635d850d).; |
| 40 | QMapIteratorcxx . . $ QMapIterator#<QStringcxx . . $ QString#, QVariantcxx . . $ QVariant#> itcxx . . $ QMapIterator#QMapIterator(1d85e448f11cafa).(map); |
| 41 | while (it.hasNextcxx . . $ QMapIterator#hasNext(50ce9a9e25b4a850).()) { |
| 42 | it.nextcxx . . $ QMapIterator#next(5c754f5fbc3bb3d6).(); |
| 43 | expandedMap.insertcxx . . $ QMap#insert(929a1ed410fe8423).(it.keycxx . . $ QMapIterator#key(ea465e50d690edfe).(), expandDBusArgumentscxx . . $ expandDBusArguments(b1a0c0bd15ff7115).(it.valuecxx . . $ QMapIterator#value(bdbd05d619d62250).())); |
| 44 | } |
| 45 | return expandedMapcxx . . $ QVariant#QVariant(3e95df3e31f2cce8).; |
| 46 | } else if (argument.currentTypecxx . . $ QDBusArgument#currentType(ee760ae36459d67e).() == QDBusArgumentcxx . . $ QDBusArgument#::ArrayTypecxx . . $ QDBusArgument#ArrayType.) { |
| 47 | if (argument.currentSignaturecxx . . $ QDBusArgument#currentSignature(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "aay") { |
| 48 | QListcxx . . $ QList#<QByteArraycxx . . $ QByteArray#> arrayListcxx . . $ QList#QList(ced63f7c635d850d).; |
| 49 | argument >>cxx . . $ `operator>>`(b505d0f93530f262). arrayList; |
| 50 | return QVariantcxx . . $ QVariant#::fromValuecxx . . $ QVariant#fromValue(28ec88ac519b76da).(arrayList); |
| 51 | } else { |
| 52 | /* We don't know how to handle other types */ |
| 53 | qCWarningcxx . . $ `<external>/13903568758641964362/qloggingcategory.h:138:11`!(DBG_ONLINE_ACCOUNTS) <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "unhandled type" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). |
| 54 | argument.currentSignaturecxx . . $ QDBusArgument#currentSignature(6ef7b6c27b00b43d).(); |
| 55 | return argument.asVariantcxx . . $ QDBusArgument#asVariant(23280f95d1ccaa1f).(); |
| 56 | } |
| 57 | } else { |
| 58 | /* We don't know how to handle other types */ |
| 59 | return argument.asVariantcxx . . $ QDBusArgument#asVariant(23280f95d1ccaa1f).(); |
| 60 | } |
| 61 | } else { |
| 62 | return variantcxx . . $ QVariant#QVariant(244511558b20107a).; |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | namespace OnlineAccountscxx . . $ OnlineAccounts/ { |
| 67 | |
| 68 | class AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate# |
| 69 | { |
| 70 | public: |
| 71 | inline AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate#AuthenticationReplyPrivate(1911dff7b1691967).(AuthenticationMethodcxx . . $ OnlineAccounts/AuthenticationMethod# method, |
| 72 | const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call); |
| 73 | virtual ~cxx . . $ OnlineAccounts/AuthenticationReplyPrivate#`~AuthenticationReplyPrivate`(ced63f7c635d850d).AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate#() {}; |
| 74 | |
| 75 | void setErrorcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#setError(bd52efea9c48f6b2).(const Errorcxx . . $ OnlineAccounts/Error# &error) { m_errorcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_error. =cxx . . $ OnlineAccounts/Error#`operator=`(a729cb5759c3c69f). error; } |
| 76 | |
| 77 | const QVariantMapcxx . . $ QVariantMap# &datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).() const { return m_replyDatacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_replyData.; } |
| 78 | |
| 79 | private: |
| 80 | friend class AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#; |
| 81 | AuthenticationMethodcxx . . $ OnlineAccounts/AuthenticationMethod# m_authenticationMethodcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_authenticationMethod.; |
| 82 | PendingCallcxx . . $ OnlineAccounts/PendingCall# m_pendingCallcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_pendingCall.; |
| 83 | Errorcxx . . $ OnlineAccounts/Error# m_errorcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_error.; |
| 84 | QVariantMapcxx . . $ QVariantMap# m_replyDatacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_replyData.; |
| 85 | }; |
| 86 | |
| 87 | class OAuth2ReplyPrivatecxx . . $ OnlineAccounts/OAuth2ReplyPrivate#: public AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate# |
| 88 | { |
| 89 | }; |
| 90 | |
| 91 | class OAuth1ReplyPrivatecxx . . $ OnlineAccounts/OAuth1ReplyPrivate#: public AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate# |
| 92 | { |
| 93 | }; |
| 94 | |
| 95 | class SaslReplyPrivatecxx . . $ OnlineAccounts/SaslReplyPrivate#: public AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate# |
| 96 | { |
| 97 | }; |
| 98 | |
| 99 | class PasswordReplyPrivatecxx . . $ OnlineAccounts/PasswordReplyPrivate#: public AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate# |
| 100 | { |
| 101 | }; |
| 102 | |
| 103 | } // namespace |
| 104 | |
| 105 | AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate#::AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate#AuthenticationReplyPrivate(1911dff7b1691967).(AuthenticationMethodcxx . . $ OnlineAccounts/AuthenticationMethod# method, |
| 106 | const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call): |
| 107 | m_authenticationMethodcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_authenticationMethod.(method), |
| 108 | m_pendingCallcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_pendingCall.(call) |
| 109 | { |
| 110 | const PendingCallPrivatecxx . . $ OnlineAccounts/PendingCallPrivate# *pCall = call.dcxx . . $ OnlineAccounts/PendingCall#d..constDatacxx . . $ QExplicitlySharedDataPointer#constData(1016ee5406d91ab9).(); |
| 111 | |
| 112 | if (m_authenticationMethodcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_authenticationMethod. != AuthenticationMethodUnknowncxx . . $ OnlineAccounts/AuthenticationMethodUnknown. && |
| 113 | pCall->authenticationMethodcxx . . $ OnlineAccounts/PendingCallPrivate#authenticationMethod(5844b1512d846331).() != AuthenticationMethodUnknowncxx . . $ OnlineAccounts/AuthenticationMethodUnknown. && |
| 114 | m_authenticationMethodcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_authenticationMethod. != pCall->authenticationMethodcxx . . $ OnlineAccounts/PendingCallPrivate#authenticationMethod(5844b1512d846331).()) { |
| 115 | setErrorcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#setError(bd52efea9c48f6b2).(Errorcxx . . $ OnlineAccounts/Error#Error(87f22122582033ec).(Errorcxx . . $ OnlineAccounts/Error#::WrongTypecxx . . $ OnlineAccounts/Error#WrongType., "Authentication method mismatch"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 116 | return; |
| 117 | } |
| 118 | |
| 119 | if (!m_pendingCallcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_pendingCall..isFinishedcxx . . $ OnlineAccounts/PendingCall#isFinished(50ce9a9e25b4a850).()) { |
| 120 | m_pendingCallcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_pendingCall..waitForFinishedcxx . . $ OnlineAccounts/PendingCall#waitForFinished(49f6e7a06ebc5aa8).(); |
| 121 | } |
| 122 | |
| 123 | if (Q_UNLIKELYcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:247:11`!(pCall->dbusCall().isError())) { |
| 124 | setErrorcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#setError(bd52efea9c48f6b2).(errorFromDBuscxx . . $ OnlineAccounts/errorFromDBus(62a4ea1bea413afc).(pCall->dbusCallcxx . . $ OnlineAccounts/PendingCallPrivate#dbusCall(431f9381b17f3acb).().errorcxx . . $ QDBusPendingCall#error(1d9100e4f448fa26).())); |
| 125 | return; |
| 126 | } |
| 127 | |
| 128 | QDBusMessagecxx . . $ QDBusMessage# msg = pCall->dbusCallcxx . . $ OnlineAccounts/PendingCallPrivate#dbusCall(431f9381b17f3acb).().replycxx . . $ QDBusPendingCall#reply(67ce2c964ce349ce).(); |
| 129 | PendingCallPrivatecxx . . $ OnlineAccounts/PendingCallPrivate#::InvokedMethodcxx . . $ OnlineAccounts/PendingCallPrivate#InvokedMethod# invokedMethod = pCall->invokedMethodcxx . . $ OnlineAccounts/PendingCallPrivate#invokedMethod(a18a7d14e28e6b77).(); |
| 130 | if (invokedMethod == PendingCallPrivatecxx . . $ OnlineAccounts/PendingCallPrivate#::Authenticatecxx . . $ OnlineAccounts/PendingCallPrivate#Authenticate.) { |
| 131 | m_replyDatacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_replyData. =cxx . . $ QMap#`operator=`(86243d55ea3d6313). expandDBusArgumentscxx . . $ expandDBusArguments(b1a0c0bd15ff7115).(msg.argumentscxx . . $ QDBusMessage#arguments(a208304be85d9b76).().atcxx . . $ QList#at(e2681f9bb6b2f357).(0)).toMapcxx . . $ QVariant#toMap(87f780dbe64191c4).(); |
| 132 | } else if (invokedMethod == PendingCallPrivatecxx . . $ OnlineAccounts/PendingCallPrivate#::RequestAccesscxx . . $ OnlineAccounts/PendingCallPrivate#RequestAccess.) { |
| 133 | m_replyDatacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_replyData. =cxx . . $ QMap#`operator=`(86243d55ea3d6313). expandDBusArgumentscxx . . $ expandDBusArguments(b1a0c0bd15ff7115).(msg.argumentscxx . . $ QDBusMessage#arguments(a208304be85d9b76).().atcxx . . $ QList#at(e2681f9bb6b2f357).(1)).toMapcxx . . $ QVariant#toMap(87f780dbe64191c4).(); |
| 134 | } else { |
| 135 | qFatalcxx . . $ `<external>/10450329605257866924/qlogging.h:168:9`!("Unknown invoked method %d", invokedMethod); |
| 136 | } |
| 137 | qCDebugcxx . . $ `<external>/13903568758641964362/qloggingcategory.h:122:11`!(DBG_ONLINE_ACCOUNTS) <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "reply data:" <<cxx . . $ `operator<<`(d06749710cb27f7f). m_replyDatacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_replyData.; |
| 138 | } |
| 139 | |
| 140 | AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#::AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#AuthenticationReply(8feb05cfa3fd417d).(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call): |
| 141 | d_ptrcxx . . $ OnlineAccounts/AuthenticationReply#d_ptr.(new AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate#AuthenticationReplyPrivate(1911dff7b1691967).(AuthenticationMethodUnknowncxx . . $ OnlineAccounts/AuthenticationMethodUnknown., call)) |
| 142 | { |
| 143 | } |
| 144 | |
| 145 | AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#::AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#AuthenticationReply(538c905e7afb4515).(AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate# *priv): |
| 146 | d_ptrcxx . . $ OnlineAccounts/AuthenticationReply#d_ptr.(priv) |
| 147 | { |
| 148 | } |
| 149 | |
| 150 | AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#::~cxx . . $ OnlineAccounts/AuthenticationReply#`~AuthenticationReply`(ced63f7c635d850d).AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#() |
| 151 | { |
| 152 | delete d_ptrcxx . . $ OnlineAccounts/AuthenticationReply#d_ptr.; |
| 153 | } |
| 154 | |
| 155 | Errorcxx . . $ OnlineAccounts/Error# AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#::errorcxx . . $ OnlineAccounts/AuthenticationReply#error(b1aaa45c8f119b6a).() const |
| 156 | { |
| 157 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 158 | return d->m_errorcxx . . $ OnlineAccounts/AuthenticationReplyPrivate#m_error.; |
| 159 | } |
| 160 | |
| 161 | QVariantMapcxx . . $ QVariantMap# AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#::datacxx . . $ OnlineAccounts/AuthenticationReply#data(87f780dbe64191c4).() const |
| 162 | { |
| 163 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 164 | return dcxx . . $ QMap#QMap(21739d87639e1d56).->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).(); |
| 165 | } |
| 166 | |
| 167 | /* OAuth 2.0 */ |
| 168 | |
| 169 | OAuth2Replycxx . . $ OnlineAccounts/OAuth2Reply#::OAuth2Replycxx . . $ OnlineAccounts/OAuth2Reply#OAuth2Reply(8feb05cfa3fd417d).(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call): |
| 170 | AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#(new AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate#AuthenticationReplyPrivate(1911dff7b1691967).(AuthenticationMethodOAuth2cxx . . $ OnlineAccounts/AuthenticationMethodOAuth2., call)) |
| 171 | { |
| 172 | } |
| 173 | |
| 174 | OAuth2Replycxx . . $ OnlineAccounts/OAuth2Reply#::~cxx . . $ OnlineAccounts/OAuth2Reply#`~OAuth2Reply`(ced63f7c635d850d).OAuth2Replycxx . . $ OnlineAccounts/OAuth2Reply#() |
| 175 | { |
| 176 | } |
| 177 | |
| 178 | QByteArraycxx . . $ QByteArray# OAuth2Replycxx . . $ OnlineAccounts/OAuth2Reply#::accessTokencxx . . $ OnlineAccounts/OAuth2Reply#accessToken(a96750bfbcb1fbe9).() const |
| 179 | { |
| 180 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 181 | return d->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_AUTH_KEY_ACCESS_TOKENcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:63:9`!).toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).(); |
| 182 | } |
| 183 | |
| 184 | int OAuth2Replycxx . . $ OnlineAccounts/OAuth2Reply#::expiresIncxx . . $ OnlineAccounts/OAuth2Reply#expiresIn(455f465bc33b4cdf).() const |
| 185 | { |
| 186 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 187 | return d->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_AUTH_KEY_EXPIRES_INcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:64:9`!).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); |
| 188 | } |
| 189 | |
| 190 | QListcxx . . $ QList#<QByteArraycxx . . $ QByteArray#> OAuth2Replycxx . . $ OnlineAccounts/OAuth2Reply#::grantedScopescxx . . $ OnlineAccounts/OAuth2Reply#grantedScopes(28ffaf7c70e71a05).() const |
| 191 | { |
| 192 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 193 | return d->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_AUTH_KEY_GRANTED_SCOPEScxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:65:9`!).valuecxx . . $ QVariant#value(8f5363d873dd4781).<QListcxx . . $ QList#<QByteArraycxx . . $ QByteArray#> >(); |
| 194 | } |
| 195 | |
| 196 | /* OAuth 1.0a */ |
| 197 | |
| 198 | OAuth1Replycxx . . $ OnlineAccounts/OAuth1Reply#::OAuth1Replycxx . . $ OnlineAccounts/OAuth1Reply#OAuth1Reply(8feb05cfa3fd417d).(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call): |
| 199 | AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#(new AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate#AuthenticationReplyPrivate(1911dff7b1691967).(AuthenticationMethodOAuth1cxx . . $ OnlineAccounts/AuthenticationMethodOAuth1., call)) |
| 200 | { |
| 201 | } |
| 202 | |
| 203 | OAuth1Replycxx . . $ OnlineAccounts/OAuth1Reply#::~cxx . . $ OnlineAccounts/OAuth1Reply#`~OAuth1Reply`(ced63f7c635d850d).OAuth1Replycxx . . $ OnlineAccounts/OAuth1Reply#() |
| 204 | { |
| 205 | } |
| 206 | |
| 207 | QByteArraycxx . . $ QByteArray# OAuth1Replycxx . . $ OnlineAccounts/OAuth1Reply#::consumerKeycxx . . $ OnlineAccounts/OAuth1Reply#consumerKey(a96750bfbcb1fbe9).() const |
| 208 | { |
| 209 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 210 | return d->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_AUTH_KEY_CONSUMER_KEYcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:67:9`!).toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).(); |
| 211 | } |
| 212 | |
| 213 | QByteArraycxx . . $ QByteArray# OAuth1Replycxx . . $ OnlineAccounts/OAuth1Reply#::consumerSecretcxx . . $ OnlineAccounts/OAuth1Reply#consumerSecret(a96750bfbcb1fbe9).() const |
| 214 | { |
| 215 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 216 | return d->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_AUTH_KEY_CONSUMER_SECRETcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:68:9`!).toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).(); |
| 217 | } |
| 218 | |
| 219 | QByteArraycxx . . $ QByteArray# OAuth1Replycxx . . $ OnlineAccounts/OAuth1Reply#::tokencxx . . $ OnlineAccounts/OAuth1Reply#token(a96750bfbcb1fbe9).() const |
| 220 | { |
| 221 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 222 | return d->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_AUTH_KEY_TOKENcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:69:9`!).toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).(); |
| 223 | } |
| 224 | |
| 225 | QByteArraycxx . . $ QByteArray# OAuth1Replycxx . . $ OnlineAccounts/OAuth1Reply#::tokenSecretcxx . . $ OnlineAccounts/OAuth1Reply#tokenSecret(a96750bfbcb1fbe9).() const |
| 226 | { |
| 227 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 228 | return d->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_AUTH_KEY_TOKEN_SECRETcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:70:9`!).toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).(); |
| 229 | } |
| 230 | |
| 231 | QByteArraycxx . . $ QByteArray# OAuth1Replycxx . . $ OnlineAccounts/OAuth1Reply#::signatureMethodcxx . . $ OnlineAccounts/OAuth1Reply#signatureMethod(a96750bfbcb1fbe9).() const |
| 232 | { |
| 233 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 234 | return d->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_AUTH_KEY_SIGNATURE_METHODcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:71:9`!).toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).(); |
| 235 | } |
| 236 | |
| 237 | /* SASL */ |
| 238 | |
| 239 | SaslReplycxx . . $ OnlineAccounts/SaslReply#::SaslReplycxx . . $ OnlineAccounts/SaslReply#SaslReply(8feb05cfa3fd417d).(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call): |
| 240 | AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#(new AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate#AuthenticationReplyPrivate(1911dff7b1691967).(AuthenticationMethodSaslcxx . . $ OnlineAccounts/AuthenticationMethodSasl., call)) |
| 241 | { |
| 242 | } |
| 243 | |
| 244 | SaslReplycxx . . $ OnlineAccounts/SaslReply#::~cxx . . $ OnlineAccounts/SaslReply#`~SaslReply`(ced63f7c635d850d).SaslReplycxx . . $ OnlineAccounts/SaslReply#() |
| 245 | { |
| 246 | } |
| 247 | |
| 248 | QStringcxx . . $ QString# SaslReplycxx . . $ OnlineAccounts/SaslReply#::chosenMechanismcxx . . $ OnlineAccounts/SaslReply#chosenMechanism(6ef7b6c27b00b43d).() const |
| 249 | { |
| 250 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 251 | return d->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_AUTH_KEY_CHOSEN_MECHANISMcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:79:9`!).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).(); |
| 252 | } |
| 253 | |
| 254 | QByteArraycxx . . $ QByteArray# SaslReplycxx . . $ OnlineAccounts/SaslReply#::responsecxx . . $ OnlineAccounts/SaslReply#response(a96750bfbcb1fbe9).() const |
| 255 | { |
| 256 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 257 | return d->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_AUTH_KEY_RESPONSEcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:80:9`!).toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).(); |
| 258 | } |
| 259 | |
| 260 | SaslReplycxx . . $ OnlineAccounts/SaslReply#::Statecxx . . $ OnlineAccounts/SaslReply#State# SaslReplycxx . . $ OnlineAccounts/SaslReply#::statecxx . . $ OnlineAccounts/SaslReply#state(25f2c456d03c794b).() const |
| 261 | { |
| 262 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 263 | int state = d->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_AUTH_KEY_STATEcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:81:9`!).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); |
| 264 | switch (state) { |
| 265 | case ONLINE_ACCOUNTS_AUTH_SASL_STATE_FINISHEDcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:82:11`!: return Finishedcxx . . $ OnlineAccounts/SaslReply#Finished.; |
| 266 | case ONLINE_ACCOUNTS_AUTH_SASL_STATE_CONTINUEcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:83:11`!: return Continuecxx . . $ OnlineAccounts/SaslReply#Continue.; |
| 267 | default: |
| 268 | qCWarningcxx . . $ `<external>/13903568758641964362/qloggingcategory.h:138:11`!(DBG_ONLINE_ACCOUNTS) <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Unknown SASL state" <<cxx . . $ QDebug#`operator<<`(6e3b7ae53f380c3). state; |
| 269 | return Finishedcxx . . $ OnlineAccounts/SaslReply#Finished.; |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | /* Password */ |
| 274 | |
| 275 | PasswordReplycxx . . $ OnlineAccounts/PasswordReply#::PasswordReplycxx . . $ OnlineAccounts/PasswordReply#PasswordReply(8feb05cfa3fd417d).(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call): |
| 276 | AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#(new AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate#AuthenticationReplyPrivate(1911dff7b1691967).(AuthenticationMethodPasswordcxx . . $ OnlineAccounts/AuthenticationMethodPassword., call)) |
| 277 | { |
| 278 | } |
| 279 | |
| 280 | PasswordReplycxx . . $ OnlineAccounts/PasswordReply#::~cxx . . $ OnlineAccounts/PasswordReply#`~PasswordReply`(ced63f7c635d850d).PasswordReplycxx . . $ OnlineAccounts/PasswordReply#() |
| 281 | { |
| 282 | } |
| 283 | |
| 284 | QByteArraycxx . . $ QByteArray# PasswordReplycxx . . $ OnlineAccounts/PasswordReply#::usernamecxx . . $ OnlineAccounts/PasswordReply#username(a96750bfbcb1fbe9).() const |
| 285 | { |
| 286 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 287 | return d->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_AUTH_KEY_USERNAMEcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:85:9`!).toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).(); |
| 288 | } |
| 289 | |
| 290 | QByteArraycxx . . $ QByteArray# PasswordReplycxx . . $ OnlineAccounts/PasswordReply#::passwordcxx . . $ OnlineAccounts/PasswordReply#password(a96750bfbcb1fbe9).() const |
| 291 | { |
| 292 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AuthenticationReply); |
| 293 | return d->datacxx . . $ OnlineAccounts/AuthenticationReplyPrivate#data(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(ONLINE_ACCOUNTS_AUTH_KEY_PASSWORDcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/dbus_constants.h:86:9`!).toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).(); |
| 294 | } |