Debian Codegraph @

tests/online-accounts-service/tst_ui_proxy/request-mock.cpp

raw symbols SCIP
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/globals.h>cxx . . $ `<file>/online-accounts-common/globals.h`/
22 #include "request-mock.h"cxx . . $ `<file>/tests/online-accounts-service/tst_ui_proxy/request-mock.h`/
23
24 #include <QDebug>
25
26 using namespace OnlineAccountsUi;
27
28 RequestPrivatecxx . . $ OnlineAccountsUi/RequestPrivate#::RequestPrivatecxx . . $ OnlineAccountsUi/RequestPrivate#RequestPrivate(69032cf2774fb009).(const QDBusConnectioncxx . . $ QDBusConnection# &connection,
29 const QDBusMessagecxx . . $ QDBusMessage# &message,
30 const QVariantMapcxx . . $ QVariantMap# &parameters,
31 Requestcxx . . $ OnlineAccountsUi/Request# *request):
32 QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(request),
33 m_connectioncxx . . $ OnlineAccountsUi/RequestPrivate#m_connection.(connection),
34 m_messagecxx . . $ OnlineAccountsUi/RequestPrivate#m_message.(message),
35 m_parameterscxx . . $ OnlineAccountsUi/RequestPrivate#m_parameters.(parameters),
36 m_inProgresscxx . . $ OnlineAccountsUi/RequestPrivate#m_inProgress.(false),
37 m_delaycxx . . $ OnlineAccountsUi/RequestPrivate#m_delay.(0),
38 q_ptrcxx . . $ OnlineAccountsUi/RequestPrivate#q_ptr.(request)
39 {
40 }
41
42 RequestPrivatecxx . . $ OnlineAccountsUi/RequestPrivate#::~cxx . . $ OnlineAccountsUi/RequestPrivate#`~RequestPrivate`(ced63f7c635d850d).RequestPrivatecxx . . $ OnlineAccountsUi/RequestPrivate#()
43 {
44 }
45
46 void RequestPrivatecxx . . $ OnlineAccountsUi/RequestPrivate#::setClientApparmorProfilecxx . . $ OnlineAccountsUi/RequestPrivate#setClientApparmorProfile(3520e46b33348bf6).(const QStringcxx . . $ QString# &profile)
47 {
48 m_clientApparmorProfilecxx . . $ OnlineAccountsUi/RequestPrivate#m_clientApparmorProfile. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). profile;
49 }
50
51 void RequestPrivatecxx . . $ OnlineAccountsUi/RequestPrivate#::setProviderIdcxx . . $ OnlineAccountsUi/RequestPrivate#setProviderId(3520e46b33348bf6).(const QStringcxx . . $ QString# &provider)
52 {
53 m_providerIdcxx . . $ OnlineAccountsUi/RequestPrivate#m_providerId. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). provider;
54 }
55
56 Requestcxx . . $ OnlineAccountsUi/Request#::Requestcxx . . $ OnlineAccountsUi/Request#Request(99f2f35b89667ef6).(const QDBusConnectioncxx . . $ QDBusConnection# &connection,
57 const QDBusMessagecxx . . $ QDBusMessage# &message,
58 const QVariantMapcxx . . $ QVariantMap# &parameters,
59 QObjectcxx . . $ QObject# *parent):
60 QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent),
61 d_ptrcxx . . $ OnlineAccountsUi/Request#d_ptr.(new RequestPrivatecxx . . $ OnlineAccountsUi/RequestPrivate#RequestPrivate(69032cf2774fb009).(connection, message, parameters, this))
62 {
63 }
64
65 Requestcxx . . $ OnlineAccountsUi/Request#::~cxx . . $ OnlineAccountsUi/Request#`~Request`(ced63f7c635d850d).Requestcxx . . $ OnlineAccountsUi/Request#()
66 {
67 }
68
69 quint64cxx . . $ quint64# Requestcxx . . $ OnlineAccountsUi/Request#::windowIdcxx . . $ OnlineAccountsUi/Request#windowId(1c5fc1fd41a99ae7).() const
70 {
71 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Request);
72 return d->m_parameterscxx . . $ OnlineAccountsUi/RequestPrivate#m_parameters.[cxx . . $ QMap#`operator[]`(bfda1f1f965926d4).OAU_KEY_WINDOW_IDcxx . . $ `online-accounts-common/globals.h:33:9`!].toUIntcxx . . $ QVariant#toUInt(870b63f89c7fb98).();
73 }
74
75 void Requestcxx . . $ OnlineAccountsUi/Request#::setInProgresscxx . . $ OnlineAccountsUi/Request#setInProgress(b45ddcbc8423892c).(bool inProgress)
76 {
77 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(Request);
78 d->m_inProgresscxx . . $ OnlineAccountsUi/RequestPrivate#m_inProgress. = inProgress;
79 }
80
81 bool Requestcxx . . $ OnlineAccountsUi/Request#::isInProgresscxx . . $ OnlineAccountsUi/Request#isInProgress(50ce9a9e25b4a850).() const
82 {
83 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Request);
84 return d->m_inProgresscxx . . $ OnlineAccountsUi/RequestPrivate#m_inProgress.;
85 }
86
87 const QVariantMapcxx . . $ QVariantMap# &Requestcxx . . $ OnlineAccountsUi/Request#::parameterscxx . . $ OnlineAccountsUi/Request#parameters(9daa5a8a8d37773d).() const
88 {
89 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Request);
90 return d->m_parameterscxx . . $ OnlineAccountsUi/RequestPrivate#m_parameters.;
91 }
92
93 QStringcxx . . $ QString# Requestcxx . . $ OnlineAccountsUi/Request#::clientApparmorProfilecxx . . $ OnlineAccountsUi/Request#clientApparmorProfile(6ef7b6c27b00b43d).() const
94 {
95 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Request);
96 return dcxx . . $ QString#QString(132dd6869045752b).->m_clientApparmorProfilecxx . . $ OnlineAccountsUi/RequestPrivate#m_clientApparmorProfile.;
97 }
98
99 QStringcxx . . $ QString# Requestcxx . . $ OnlineAccountsUi/Request#::interfacecxx . . $ OnlineAccountsUi/Request#interface(6ef7b6c27b00b43d).() const {
100 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Request);
101 return d->m_messagecxx . . $ OnlineAccountsUi/RequestPrivate#m_message..interfacecxx . . $ QDBusMessage#interface(6ef7b6c27b00b43d).();
102 }
103
104 QStringcxx . . $ QString# Requestcxx . . $ OnlineAccountsUi/Request#::providerIdcxx . . $ OnlineAccountsUi/Request#providerId(6ef7b6c27b00b43d).() const {
105 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Request);
106 return dcxx . . $ QString#QString(132dd6869045752b).->m_providerIdcxx . . $ OnlineAccountsUi/RequestPrivate#m_providerId.;
107 }
108
109 void Requestcxx . . $ OnlineAccountsUi/Request#::setDelaycxx . . $ OnlineAccountsUi/Request#setDelay(d4f767463ce0a6b3).(int delay)
110 {
111 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(Request);
112 d->m_delaycxx . . $ OnlineAccountsUi/RequestPrivate#m_delay. = delay;
113 }
114
115 int Requestcxx . . $ OnlineAccountsUi/Request#::delaycxx . . $ OnlineAccountsUi/Request#delay(455f465bc33b4cdf).() const
116 {
117 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Request);
118 return d->m_delaycxx . . $ OnlineAccountsUi/RequestPrivate#m_delay.;
119 }
120
121 void Requestcxx . . $ OnlineAccountsUi/Request#::cancelcxx . . $ OnlineAccountsUi/Request#cancel(49f6e7a06ebc5aa8).()
122 {
123 setCanceledcxx . . $ OnlineAccountsUi/Request#setCanceled(49f6e7a06ebc5aa8).();
124 }
125
126 void Requestcxx . . $ OnlineAccountsUi/Request#::failcxx . . $ OnlineAccountsUi/Request#fail(c1427772cd1877b0).(const QStringcxx . . $ QString# &name, const QStringcxx . . $ QString# &message)
127 {
128 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(Request);
129 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! d->failCalledcxx . . $ OnlineAccountsUi/RequestPrivate#failCalled(3458fe3960d5051).(namecxx . . $ QString#QString(132dd6869045752b)., messagecxx . . $ QString#QString(132dd6869045752b).);
130
131 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! completedcxx . . $ OnlineAccountsUi/Request#completed(49f6e7a06ebc5aa8).();
132 }
133
134 void Requestcxx . . $ OnlineAccountsUi/Request#::setCanceledcxx . . $ OnlineAccountsUi/Request#setCanceled(49f6e7a06ebc5aa8).()
135 {
136 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(Request);
137 if (d->m_inProgresscxx . . $ OnlineAccountsUi/RequestPrivate#m_inProgress.) {
138 failcxx . . $ OnlineAccountsUi/Request#fail(c1427772cd1877b0).(OAU_ERROR_USER_CANCELEDcxx . . $ `online-accounts-common/globals.h:39:9`!, QStringLiteralcxx . . $ `<external>/2817157206922689722/qstringliteral.h:65:9`!("Cancelled"));
139 d->m_inProgresscxx . . $ OnlineAccountsUi/RequestPrivate#m_inProgress. = false;
140 }
141 }
142
143 void Requestcxx . . $ OnlineAccountsUi/Request#::setResultcxx . . $ OnlineAccountsUi/Request#setResult(3e95df3e31f2cce8).(const QVariantMapcxx . . $ QVariantMap# &result)
144 {
145 Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(Request);
146 if (d->m_inProgresscxx . . $ OnlineAccountsUi/RequestPrivate#m_inProgress.) {
147 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! d->setResultCalledcxx . . $ OnlineAccountsUi/RequestPrivate#setResultCalled(74e937dbdebc0ff5).(resultcxx . . $ QMap#QMap(21739d87639e1d56).);
148
149 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! completedcxx . . $ OnlineAccountsUi/Request#completed(49f6e7a06ebc5aa8).();
150 d->m_inProgresscxx . . $ OnlineAccountsUi/RequestPrivate#m_inProgress. = false;
151 }
152 }