| 1 | /* |
| 2 | * This file is part of lomiri-online-accounts-ui |
| 3 | * |
| 4 | * Copyright (C) 2011-2014 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 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/globals.h>cxx . . $ `<file>/online-accounts-common/globals.h`/ |
| 22 | #include "signonui-request-mock.h"cxx . . $ `<file>/tests/online-accounts-ui/mock/signonui-request-mock.h`/ |
| 23 | |
| 24 | #include <QDebug> |
| 25 | #include <SignOn/uisessiondata.h> |
| 26 | #include <SignOn/uisessiondata_priv.h> |
| 27 | |
| 28 | using namespace SignOnUi; |
| 29 | |
| 30 | RequestPrivatecxx . . $ SignOnUi/RequestPrivate#::RequestPrivatecxx . . $ SignOnUi/RequestPrivate#RequestPrivate(c05017e728e6cbe8).(Requestcxx . . $ SignOnUi/Request# *request): |
| 31 | QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(request), |
| 32 | q_ptrcxx . . $ SignOnUi/RequestPrivate#q_ptr.(request), |
| 33 | m_handlercxx . . $ SignOnUi/RequestPrivate#m_handler.(0) |
| 34 | { |
| 35 | const QVariantMapcxx . . $ QVariantMap# ¶meters = request->parameterscxx . . $ OnlineAccountsUi/Request#parameters(9daa5a8a8d37773d).(); |
| 36 | if (parameters.containscxx . . $ QMap#contains(8877ebe272b9620d).(SSOUI_KEY_CLIENT_DATAcxx . . $ `<external>/351535377674478989/uisessiondata_priv.h:72:9`!)) { |
| 37 | m_clientDatacxx . . $ SignOnUi/RequestPrivate#m_clientData. =cxx . . $ QMap#`operator=`(86243d55ea3d6313). parameters[cxx . . $ QMap#`operator[]`(bfda1f1f965926d4).SSOUI_KEY_CLIENT_DATAcxx . . $ `<external>/351535377674478989/uisessiondata_priv.h:72:9`!].toMapcxx . . $ QVariant#toMap(87f780dbe64191c4).(); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | RequestPrivatecxx . . $ SignOnUi/RequestPrivate#::~cxx . . $ SignOnUi/RequestPrivate#`~RequestPrivate`(ced63f7c635d850d).RequestPrivatecxx . . $ SignOnUi/RequestPrivate#() |
| 42 | { |
| 43 | } |
| 44 | |
| 45 | Requestcxx . . $ SignOnUi/Request#::Requestcxx . . $ SignOnUi/Request#Request(b00a08810fe27de2).(int id, |
| 46 | const QStringcxx . . $ QString# &clientProfile, |
| 47 | const QVariantMapcxx . . $ QVariantMap# ¶meters, |
| 48 | QObjectcxx . . $ QObject# *parent): |
| 49 | OnlineAccountsUicxx . . $ OnlineAccountsUi/::Requestcxx . . $ OnlineAccountsUi/Request#(SIGNONUI_INTERFACEcxx . . $ `online-accounts-common/globals.h:53:9`!, id, clientProfile, |
| 50 | parameters, parent), |
| 51 | d_ptrcxx . . $ SignOnUi/Request#d_ptr.(new RequestPrivatecxx . . $ SignOnUi/RequestPrivate#RequestPrivate(c05017e728e6cbe8).(this)) |
| 52 | { |
| 53 | } |
| 54 | |
| 55 | Requestcxx . . $ SignOnUi/Request#::~cxx . . $ SignOnUi/Request#`~Request`(ced63f7c635d850d).Requestcxx . . $ SignOnUi/Request#() |
| 56 | { |
| 57 | } |
| 58 | |
| 59 | QStringcxx . . $ QString# Requestcxx . . $ SignOnUi/Request#::ssoIdcxx . . $ SignOnUi/Request#ssoId(3452ecdc0389abe1).(const QVariantMapcxx . . $ QVariantMap# ¶meters) |
| 60 | { |
| 61 | return parameters[cxx . . $ QMap#`operator[]`(bfda1f1f965926d4).SSOUI_KEY_REQUESTIDcxx . . $ `<external>/351535377674478989/uisessiondata_priv.h:54:9`!].toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).(); |
| 62 | } |
| 63 | |
| 64 | QStringcxx . . $ QString# Requestcxx . . $ SignOnUi/Request#::ssoIdcxx . . $ SignOnUi/Request#ssoId(6ef7b6c27b00b43d).() const |
| 65 | { |
| 66 | return Requestcxx . . $ SignOnUi/Request#::ssoIdcxx . . $ SignOnUi/Request#ssoId(3452ecdc0389abe1).(parameterscxx . . $ OnlineAccountsUi/Request#parameters(9daa5a8a8d37773d).()); |
| 67 | } |
| 68 | |
| 69 | void Requestcxx . . $ SignOnUi/Request#::setWindowcxx . . $ SignOnUi/Request#setWindow(35681b993d9a3c79).(QWindowcxx . . $ QWindow# *window) |
| 70 | { |
| 71 | OnlineAccountsUicxx . . $ OnlineAccountsUi/::Requestcxx . . $ OnlineAccountsUi/Request#::setWindowcxx . . $ OnlineAccountsUi/Request#setWindow(35681b993d9a3c79).(window); |
| 72 | } |
| 73 | |
| 74 | uintcxx . . $ uint# Requestcxx . . $ SignOnUi/Request#::identitycxx . . $ SignOnUi/Request#identity(ddd8539a2fcdd4ce).() const |
| 75 | { |
| 76 | return parameterscxx . . $ OnlineAccountsUi/Request#parameters(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(SSOUI_KEY_IDENTITYcxx . . $ `<external>/351535377674478989/uisessiondata_priv.h:59:9`!).toUIntcxx . . $ QVariant#toUInt(870b63f89c7fb98).(); |
| 77 | } |
| 78 | |
| 79 | QStringcxx . . $ QString# Requestcxx . . $ SignOnUi/Request#::methodcxx . . $ SignOnUi/Request#method(6ef7b6c27b00b43d).() const |
| 80 | { |
| 81 | return parameterscxx . . $ OnlineAccountsUi/Request#parameters(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(SSOUI_KEY_METHODcxx . . $ `<external>/351535377674478989/uisessiondata_priv.h:76:9`!).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).(); |
| 82 | } |
| 83 | |
| 84 | QStringcxx . . $ QString# Requestcxx . . $ SignOnUi/Request#::mechanismcxx . . $ SignOnUi/Request#mechanism(6ef7b6c27b00b43d).() const |
| 85 | { |
| 86 | return parameterscxx . . $ OnlineAccountsUi/Request#parameters(9daa5a8a8d37773d).().valuecxx . . $ QMap#value(866b0a4e5fb46e14).(SSOUI_KEY_MECHANISMcxx . . $ `<external>/351535377674478989/uisessiondata_priv.h:77:9`!).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).(); |
| 87 | } |
| 88 | |
| 89 | QStringcxx . . $ QString# Requestcxx . . $ SignOnUi/Request#::providerIdcxx . . $ SignOnUi/Request#providerId(6ef7b6c27b00b43d).() const |
| 90 | { |
| 91 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Request); |
| 92 | return dcxx . . $ QString#QString(132dd6869045752b).->m_providerIdcxx . . $ SignOnUi/RequestPrivate#m_providerId.; |
| 93 | } |
| 94 | |
| 95 | QStringcxx . . $ QString# Requestcxx . . $ SignOnUi/Request#::windowTitlecxx . . $ SignOnUi/Request#windowTitle(6ef7b6c27b00b43d).() const |
| 96 | { |
| 97 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Request); |
| 98 | return dcxx . . $ QString#QString(132dd6869045752b).->m_windowTitlecxx . . $ SignOnUi/RequestPrivate#m_windowTitle.; |
| 99 | } |
| 100 | |
| 101 | const QVariantMapcxx . . $ QVariantMap# &Requestcxx . . $ SignOnUi/Request#::clientDatacxx . . $ SignOnUi/Request#clientData(9daa5a8a8d37773d).() const |
| 102 | { |
| 103 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Request); |
| 104 | return d->m_clientDatacxx . . $ SignOnUi/RequestPrivate#m_clientData.; |
| 105 | } |
| 106 | |
| 107 | void Requestcxx . . $ SignOnUi/Request#::setHandlercxx . . $ SignOnUi/Request#setHandler(33a36a88f472ca4b).(RequestHandlercxx . . $ SignOnUi/RequestHandler# *handler) |
| 108 | { |
| 109 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(Request); |
| 110 | d->m_handlercxx . . $ SignOnUi/RequestPrivate#m_handler. =cxx . . $ QPointer#`operator=`(500fb76d9e491ab0). handler; |
| 111 | } |
| 112 | |
| 113 | RequestHandlercxx . . $ SignOnUi/RequestHandler# *Requestcxx . . $ SignOnUi/Request#::handlercxx . . $ SignOnUi/Request#handler(e7602e54d6d9851d).() const |
| 114 | { |
| 115 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Request); |
| 116 | return d->m_handlercxx . . $ SignOnUi/RequestPrivate#m_handler.; |
| 117 | } |
| 118 | |
| 119 | void Requestcxx . . $ SignOnUi/Request#::setCanceledcxx . . $ SignOnUi/Request#setCanceled(49f6e7a06ebc5aa8).() |
| 120 | { |
| 121 | QVariantMapcxx . . $ QVariantMap# resultcxx . . $ QMap#QMap(ced63f7c635d850d).; |
| 122 | result[cxx . . $ QMap#`operator[]`(bbd415b616967878).SSOUI_KEY_ERRORcxx . . $ `<external>/351535377674478989/uisessiondata_priv.h:26:9`!] =cxx . . $ QVariant#`operator=`(79a68221451e88b7). SignOncxx . . $ QVariant#QVariant(d4f767463ce0a6b3).::QUERY_ERROR_CANCELEDcxx . . $ SignOn/QUERY_ERROR_CANCELED.; |
| 123 | |
| 124 | setResultcxx . . $ OnlineAccountsUi/Request#setResult(3e95df3e31f2cce8).(result); |
| 125 | } |