| 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 | #ifndef ONLINE_ACCOUNTS_AUTHENTICATION_DATA_H |
| 22 | #define ONLINE_ACCOUNTS_AUTHENTICATION_DATA_Hcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/authentication_data.h:22:9`! |
| 23 | |
| 24 | #include <QByteArray> |
| 25 | #include <QList> |
| 26 | #include <QSharedDataPointer> |
| 27 | |
| 28 | #include "error.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/error.h`/ |
| 29 | #include "global.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/global.h`/ |
| 30 | #include "pending_call.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/pending_call.h`/ |
| 31 | |
| 32 | namespace OnlineAccountscxx . . $ OnlineAccounts/ { |
| 33 | |
| 34 | class Managercxx . . $ OnlineAccounts/Manager#; |
| 35 | |
| 36 | class AuthenticationDataPrivatecxx . . $ OnlineAccounts/AuthenticationDataPrivate#; |
| 37 | class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:29:11`! AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData# |
| 38 | { |
| 39 | public: |
| 40 | AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData#AuthenticationData(7da24708d9652a04).(AuthenticationMethodcxx . . $ OnlineAccounts/AuthenticationMethod# method); |
| 41 | AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData#AuthenticationData(5e7e32e4e0c8221a).(const AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData# &other); |
| 42 | virtual ~cxx . . $ OnlineAccounts/AuthenticationData#`~AuthenticationData`(ced63f7c635d850d).AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData#(); |
| 43 | |
| 44 | AuthenticationMethodcxx . . $ OnlineAccounts/AuthenticationMethod# methodcxx . . $ OnlineAccounts/AuthenticationData#method(5844b1512d846331).() const; |
| 45 | |
| 46 | void setInteractivecxx . . $ OnlineAccounts/AuthenticationData#setInteractive(b45ddcbc8423892c).(bool interactive); |
| 47 | bool interactivecxx . . $ OnlineAccounts/AuthenticationData#interactive(50ce9a9e25b4a850).() const; |
| 48 | |
| 49 | void invalidateCachedReplycxx . . $ OnlineAccounts/AuthenticationData#invalidateCachedReply(49f6e7a06ebc5aa8).(); |
| 50 | bool mustInvalidateCachedReplycxx . . $ OnlineAccounts/AuthenticationData#mustInvalidateCachedReply(50ce9a9e25b4a850).() const; |
| 51 | |
| 52 | void setParameterscxx . . $ OnlineAccounts/AuthenticationData#setParameters(3e95df3e31f2cce8).(const QVariantMapcxx . . $ QVariantMap# ¶meters); |
| 53 | QVariantMapcxx . . $ QVariantMap# parameterscxx . . $ OnlineAccounts/AuthenticationData#parameters(87f780dbe64191c4).() const; |
| 54 | |
| 55 | protected: |
| 56 | AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData#AuthenticationData(9e607dbf89fdaea6).(AuthenticationDataPrivatecxx . . $ OnlineAccounts/AuthenticationDataPrivate# *priv); |
| 57 | QSharedDataPointercxx . . $ QSharedDataPointer#<AuthenticationDataPrivatecxx . . $ OnlineAccounts/AuthenticationDataPrivate#> dcxx . . $ OnlineAccounts/AuthenticationData#d.; |
| 58 | |
| 59 | private: |
| 60 | friend class Managercxx . . $ OnlineAccounts/Manager#; |
| 61 | friend class ManagerPrivatecxx . . $ OnlineAccounts/ManagerPrivate#; |
| 62 | }; |
| 63 | |
| 64 | class AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate#; |
| 65 | class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:27:11`! AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply# |
| 66 | { |
| 67 | public: |
| 68 | AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#AuthenticationReply(8feb05cfa3fd417d).(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call); |
| 69 | virtual ~cxx . . $ OnlineAccounts/AuthenticationReply#`~AuthenticationReply`(ced63f7c635d850d).AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#(); |
| 70 | |
| 71 | bool hasErrorcxx . . $ OnlineAccounts/AuthenticationReply#hasError(50ce9a9e25b4a850).() const { return errorcxx . . $ OnlineAccounts/AuthenticationReply#error(b1aaa45c8f119b6a).().isValidcxx . . $ OnlineAccounts/Error#isValid(50ce9a9e25b4a850).(); } |
| 72 | Errorcxx . . $ OnlineAccounts/Error# errorcxx . . $ OnlineAccounts/AuthenticationReply#error(b1aaa45c8f119b6a).() const; |
| 73 | |
| 74 | QVariantMapcxx . . $ QVariantMap# datacxx . . $ OnlineAccounts/AuthenticationReply#data(87f780dbe64191c4).() const; |
| 75 | |
| 76 | protected: |
| 77 | AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply#AuthenticationReply(538c905e7afb4515).(AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate# *priv); |
| 78 | AuthenticationReplyPrivatecxx . . $ OnlineAccounts/AuthenticationReplyPrivate# *d_ptrcxx . . $ OnlineAccounts/AuthenticationReply#d_ptr.; |
| 79 | |
| 80 | private: |
| 81 | Q_DECLARE_PRIVATEcxx . . $ OnlineAccounts/AuthenticationReply#d_func(99f9480cb7ecb84a).(AuthenticationReply) |
| 82 | Q_DISABLE_COPYcxx . . $ OnlineAccounts/AuthenticationReply#(AuthenticationReply) |
| 83 | }; |
| 84 | |
| 85 | /* OAuth 2.0 */ |
| 86 | |
| 87 | class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:29:11`! OAuth2Datacxx . . $ OnlineAccounts/OAuth2Data#: public AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData# |
| 88 | { |
| 89 | public: |
| 90 | OAuth2Datacxx . . $ OnlineAccounts/OAuth2Data#OAuth2Data(49f6e7a06ebc5aa8).(); |
| 91 | |
| 92 | void setClientIdcxx . . $ OnlineAccounts/OAuth2Data#setClientId(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray# &id); |
| 93 | QByteArraycxx . . $ QByteArray# clientIdcxx . . $ OnlineAccounts/OAuth2Data#clientId(a96750bfbcb1fbe9).() const; |
| 94 | |
| 95 | void setClientSecretcxx . . $ OnlineAccounts/OAuth2Data#setClientSecret(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray# &secret); |
| 96 | QByteArraycxx . . $ QByteArray# clientSecretcxx . . $ OnlineAccounts/OAuth2Data#clientSecret(a96750bfbcb1fbe9).() const; |
| 97 | |
| 98 | void setScopescxx . . $ OnlineAccounts/OAuth2Data#setScopes(d84e83f676c11e52).(const QListcxx . . $ QList#<QByteArraycxx . . $ QByteArray#> &scopes); |
| 99 | QListcxx . . $ QList#<QByteArraycxx . . $ QByteArray#> scopescxx . . $ OnlineAccounts/OAuth2Data#scopes(28ffaf7c70e71a05).() const; |
| 100 | }; |
| 101 | |
| 102 | class OAuth2ReplyPrivatecxx . . $ OnlineAccounts/OAuth2ReplyPrivate#; |
| 103 | class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:29:11`! OAuth2Replycxx . . $ OnlineAccounts/OAuth2Reply#: public AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply# |
| 104 | { |
| 105 | public: |
| 106 | OAuth2Replycxx . . $ OnlineAccounts/OAuth2Reply#OAuth2Reply(8feb05cfa3fd417d).(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call); |
| 107 | ~cxx . . $ OnlineAccounts/OAuth2Reply#`~OAuth2Reply`(ced63f7c635d850d).OAuth2Replycxx . . $ OnlineAccounts/OAuth2Reply#(); |
| 108 | |
| 109 | QByteArraycxx . . $ QByteArray# accessTokencxx . . $ OnlineAccounts/OAuth2Reply#accessToken(a96750bfbcb1fbe9).() const; |
| 110 | int expiresIncxx . . $ OnlineAccounts/OAuth2Reply#expiresIn(455f465bc33b4cdf).() const; |
| 111 | QListcxx . . $ QList#<QByteArraycxx . . $ QByteArray#> grantedScopescxx . . $ OnlineAccounts/OAuth2Reply#grantedScopes(28ffaf7c70e71a05).() const; |
| 112 | |
| 113 | private: |
| 114 | Q_DECLARE_PRIVATEcxx . . $ `<external>/15045578679651060896/qglobal.h:1158:9`!(OAuth2Reply) |
| 115 | Q_DISABLE_COPYcxx . . $ OnlineAccounts/OAuth2Reply#OAuth2Reply(8172e3c98a76d8b4).(OAuth2Reply) |
| 116 | }; |
| 117 | |
| 118 | /* OAuth 1.0a */ |
| 119 | |
| 120 | class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:29:11`! OAuth1Datacxx . . $ OnlineAccounts/OAuth1Data#: public AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData# |
| 121 | { |
| 122 | public: |
| 123 | OAuth1Datacxx . . $ OnlineAccounts/OAuth1Data#OAuth1Data(49f6e7a06ebc5aa8).(); |
| 124 | |
| 125 | void setConsumerKeycxx . . $ OnlineAccounts/OAuth1Data#setConsumerKey(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray# &consumerKey); |
| 126 | QByteArraycxx . . $ QByteArray# consumerKeycxx . . $ OnlineAccounts/OAuth1Data#consumerKey(a96750bfbcb1fbe9).() const; |
| 127 | |
| 128 | void setConsumerSecretcxx . . $ OnlineAccounts/OAuth1Data#setConsumerSecret(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray# &consumerSecret); |
| 129 | QByteArraycxx . . $ QByteArray# consumerSecretcxx . . $ OnlineAccounts/OAuth1Data#consumerSecret(a96750bfbcb1fbe9).() const; |
| 130 | }; |
| 131 | |
| 132 | class OAuth1ReplyPrivatecxx . . $ OnlineAccounts/OAuth1ReplyPrivate#; |
| 133 | class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:29:11`! OAuth1Replycxx . . $ OnlineAccounts/OAuth1Reply#: public AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply# |
| 134 | { |
| 135 | public: |
| 136 | OAuth1Replycxx . . $ OnlineAccounts/OAuth1Reply#OAuth1Reply(8feb05cfa3fd417d).(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call); |
| 137 | ~cxx . . $ OnlineAccounts/OAuth1Reply#`~OAuth1Reply`(ced63f7c635d850d).OAuth1Replycxx . . $ OnlineAccounts/OAuth1Reply#(); |
| 138 | |
| 139 | QByteArraycxx . . $ QByteArray# consumerKeycxx . . $ OnlineAccounts/OAuth1Reply#consumerKey(a96750bfbcb1fbe9).() const; |
| 140 | QByteArraycxx . . $ QByteArray# consumerSecretcxx . . $ OnlineAccounts/OAuth1Reply#consumerSecret(a96750bfbcb1fbe9).() const; |
| 141 | QByteArraycxx . . $ QByteArray# tokencxx . . $ OnlineAccounts/OAuth1Reply#token(a96750bfbcb1fbe9).() const; |
| 142 | QByteArraycxx . . $ QByteArray# tokenSecretcxx . . $ OnlineAccounts/OAuth1Reply#tokenSecret(a96750bfbcb1fbe9).() const; |
| 143 | QByteArraycxx . . $ QByteArray# signatureMethodcxx . . $ OnlineAccounts/OAuth1Reply#signatureMethod(a96750bfbcb1fbe9).() const; |
| 144 | |
| 145 | private: |
| 146 | Q_DECLARE_PRIVATEcxx . . $ OnlineAccounts/OAuth1Reply#d_func(42f2a2d192838399).(OAuth1Reply) |
| 147 | Q_DISABLE_COPYcxx . . $ OnlineAccounts/OAuth1Reply#OAuth1Reply(2381ebce74695a).(OAuth1Reply) |
| 148 | }; |
| 149 | |
| 150 | /* SASL */ |
| 151 | |
| 152 | class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:29:11`! SaslDatacxx . . $ OnlineAccounts/SaslData#: public AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData# |
| 153 | { |
| 154 | public: |
| 155 | SaslDatacxx . . $ OnlineAccounts/SaslData#SaslData(49f6e7a06ebc5aa8).(); |
| 156 | |
| 157 | void setServicecxx . . $ OnlineAccounts/SaslData#setService(3520e46b33348bf6).(const QStringcxx . . $ QString# &service); |
| 158 | QStringcxx . . $ QString# servicecxx . . $ OnlineAccounts/SaslData#service(6ef7b6c27b00b43d).() const; |
| 159 | |
| 160 | void setMechanismListcxx . . $ OnlineAccounts/SaslData#setMechanismList(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray# &mechanisms); |
| 161 | QByteArraycxx . . $ QByteArray# mechanismListcxx . . $ OnlineAccounts/SaslData#mechanismList(a96750bfbcb1fbe9).() const; |
| 162 | |
| 163 | void setServerFqdncxx . . $ OnlineAccounts/SaslData#setServerFqdn(3520e46b33348bf6).(const QStringcxx . . $ QString# &fqdn); |
| 164 | QStringcxx . . $ QString# serverFqdncxx . . $ OnlineAccounts/SaslData#serverFqdn(6ef7b6c27b00b43d).() const; |
| 165 | |
| 166 | void setLocalIpcxx . . $ OnlineAccounts/SaslData#setLocalIp(3520e46b33348bf6).(const QStringcxx . . $ QString# &localIp); |
| 167 | QStringcxx . . $ QString# localIpcxx . . $ OnlineAccounts/SaslData#localIp(6ef7b6c27b00b43d).() const; |
| 168 | |
| 169 | void setRemoteIpcxx . . $ OnlineAccounts/SaslData#setRemoteIp(3520e46b33348bf6).(const QStringcxx . . $ QString# &remoteIp); |
| 170 | QStringcxx . . $ QString# remoteIpcxx . . $ OnlineAccounts/SaslData#remoteIp(6ef7b6c27b00b43d).() const; |
| 171 | |
| 172 | void setChallengecxx . . $ OnlineAccounts/SaslData#setChallenge(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray# &challenge); |
| 173 | QByteArraycxx . . $ QByteArray# challengecxx . . $ OnlineAccounts/SaslData#challenge(a96750bfbcb1fbe9).() const; |
| 174 | }; |
| 175 | |
| 176 | class SaslReplyPrivatecxx . . $ OnlineAccounts/SaslReplyPrivate#; |
| 177 | class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:29:11`! SaslReplycxx . . $ OnlineAccounts/SaslReply#: public AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply# |
| 178 | { |
| 179 | public: |
| 180 | enum Statecxx . . $ OnlineAccounts/SaslReply#State# { |
| 181 | Finishedcxx . . $ OnlineAccounts/SaslReply#Finished., |
| 182 | Continuecxx . . $ OnlineAccounts/SaslReply#Continue., |
| 183 | }; |
| 184 | |
| 185 | SaslReplycxx . . $ OnlineAccounts/SaslReply#SaslReply(8feb05cfa3fd417d).(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call); |
| 186 | ~cxx . . $ OnlineAccounts/SaslReply#`~SaslReply`(ced63f7c635d850d).SaslReplycxx . . $ OnlineAccounts/SaslReply#(); |
| 187 | |
| 188 | QStringcxx . . $ QString# chosenMechanismcxx . . $ OnlineAccounts/SaslReply#chosenMechanism(6ef7b6c27b00b43d).() const; |
| 189 | QByteArraycxx . . $ QByteArray# responsecxx . . $ OnlineAccounts/SaslReply#response(a96750bfbcb1fbe9).() const; |
| 190 | Statecxx . . $ OnlineAccounts/SaslReply#State# statecxx . . $ OnlineAccounts/SaslReply#state(25f2c456d03c794b).() const; |
| 191 | |
| 192 | private: |
| 193 | Q_DECLARE_PRIVATEcxx . . $ qGetPtrHelper(98ea26de6545f0ca).(SaslReply) |
| 194 | Q_DISABLE_COPYcxx . . $ OnlineAccounts/SaslReply#`operator=`(d79c2cb7c52a5516).(SaslReply) |
| 195 | }; |
| 196 | |
| 197 | /* Password */ |
| 198 | |
| 199 | class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:27:11`! PasswordDatacxx . . $ OnlineAccounts/PasswordData#: public AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData# |
| 200 | { |
| 201 | public: |
| 202 | PasswordDatacxx . . $ OnlineAccounts/PasswordData#PasswordData(49f6e7a06ebc5aa8).(); |
| 203 | }; |
| 204 | |
| 205 | class PasswordReplyPrivatecxx . . $ OnlineAccounts/PasswordReplyPrivate#; |
| 206 | class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:27:11`! PasswordReplycxx . . $ OnlineAccounts/PasswordReply#: public AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply# |
| 207 | { |
| 208 | public: |
| 209 | PasswordReplycxx . . $ OnlineAccounts/PasswordReply#PasswordReply(8feb05cfa3fd417d).(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call); |
| 210 | ~cxx . . $ OnlineAccounts/PasswordReply#`~PasswordReply`(ced63f7c635d850d).PasswordReplycxx . . $ OnlineAccounts/PasswordReply#(); |
| 211 | |
| 212 | QByteArraycxx . . $ QByteArray# usernamecxx . . $ OnlineAccounts/PasswordReply#username(a96750bfbcb1fbe9).() const; |
| 213 | QByteArraycxx . . $ QByteArray# passwordcxx . . $ OnlineAccounts/PasswordReply#password(a96750bfbcb1fbe9).() const; |
| 214 | |
| 215 | private: |
| 216 | Q_DECLARE_PRIVATEcxx . . $ OnlineAccounts/PasswordReply#d_func(11fb819ec884a6c2).(PasswordReply) |
| 217 | Q_DISABLE_COPYcxx . . $ `<external>/15045578679651060896/qglobal.h:444:9`!(PasswordReply) |
| 218 | }; |
| 219 | |
| 220 | } // namespace |
| 221 | |
| 222 | #endif // ONLINE_ACCOUNTS_AUTHENTICATION_DATA_H |