|
1 /** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 * All rights reserved. |
|
3 * This component and the accompanying materials are made available |
|
4 * under the terms of the License "Eclipse Public License v1.0" |
|
5 * which accompanies this distribution, and is available |
|
6 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 * |
|
8 * Initial Contributors: |
|
9 * Nokia Corporation - initial contribution. |
|
10 * |
|
11 * Contributors: |
|
12 * |
|
13 * Description: |
|
14 * |
|
15 */ |
|
16 #include <QDebug> |
|
17 #include <smcmockclassincludes.h> |
|
18 #include "xqrequestinfo.h" |
|
19 |
|
20 // ============================ MEMBER FUNCTIONS =============================== |
|
21 |
|
22 // ----------------------------------------------------------------------------- |
|
23 // XQRequestInfo::XQRequestInfo |
|
24 // ----------------------------------------------------------------------------- |
|
25 // |
|
26 XQRequestInfo::XQRequestInfo( ) |
|
27 { |
|
28 |
|
29 } |
|
30 |
|
31 |
|
32 // ----------------------------------------------------------------------------- |
|
33 // XQRequestInfo::~XQRequestInfo |
|
34 // ----------------------------------------------------------------------------- |
|
35 // |
|
36 XQRequestInfo::~XQRequestInfo( ) |
|
37 { |
|
38 |
|
39 } |
|
40 |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // XQRequestInfo::isValid |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 bool XQRequestInfo::isValid( ) const |
|
47 { |
|
48 SMC_MOCK_METHOD0( bool ) |
|
49 } |
|
50 |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // XQRequestInfo::setEmbedded |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 void XQRequestInfo::setEmbedded( |
|
57 bool on ) |
|
58 { |
|
59 SMC_MOCK_METHOD1( void, bool, on ) |
|
60 } |
|
61 |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // XQRequestInfo::isEmbedded |
|
65 // ----------------------------------------------------------------------------- |
|
66 // |
|
67 bool XQRequestInfo::isEmbedded( ) const |
|
68 { |
|
69 SMC_MOCK_METHOD0( bool ) |
|
70 } |
|
71 |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // XQRequestInfo::setBackground |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 void XQRequestInfo::setBackground( |
|
78 bool on ) |
|
79 { |
|
80 SMC_MOCK_METHOD1( void, bool, on ) |
|
81 } |
|
82 |
|
83 |
|
84 // ----------------------------------------------------------------------------- |
|
85 // XQRequestInfo::isBackground |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 bool XQRequestInfo::isBackground( ) const |
|
89 { |
|
90 SMC_MOCK_METHOD0( bool ) |
|
91 } |
|
92 |
|
93 |
|
94 // ----------------------------------------------------------------------------- |
|
95 // XQRequestInfo::isSynchronous |
|
96 // ----------------------------------------------------------------------------- |
|
97 // |
|
98 bool XQRequestInfo::isSynchronous( ) const |
|
99 { |
|
100 SMC_MOCK_METHOD0( bool ) |
|
101 } |
|
102 |
|
103 |
|
104 // ----------------------------------------------------------------------------- |
|
105 // XQRequestInfo::setForeground |
|
106 // ----------------------------------------------------------------------------- |
|
107 // |
|
108 void XQRequestInfo::setForeground( |
|
109 bool on ) |
|
110 { |
|
111 SMC_MOCK_METHOD1( void, bool, on ) |
|
112 } |
|
113 |
|
114 |
|
115 // ----------------------------------------------------------------------------- |
|
116 // XQRequestInfo::isForeground |
|
117 // ----------------------------------------------------------------------------- |
|
118 // |
|
119 bool XQRequestInfo::isForeground( ) const |
|
120 { |
|
121 SMC_MOCK_METHOD0( bool ) |
|
122 } |
|
123 |
|
124 |
|
125 // ----------------------------------------------------------------------------- |
|
126 // XQRequestInfo::clientSecureId |
|
127 // ----------------------------------------------------------------------------- |
|
128 // |
|
129 quint32 XQRequestInfo::clientSecureId( ) const |
|
130 { |
|
131 SMC_MOCK_METHOD0( quint32 ) |
|
132 } |
|
133 |
|
134 |
|
135 // ----------------------------------------------------------------------------- |
|
136 // XQRequestInfo::clientVendorId |
|
137 // ----------------------------------------------------------------------------- |
|
138 // |
|
139 quint32 XQRequestInfo::clientVendorId( ) const |
|
140 { |
|
141 SMC_MOCK_METHOD0( quint32 ) |
|
142 } |
|
143 |
|
144 |
|
145 // ----------------------------------------------------------------------------- |
|
146 // XQRequestInfo::clientCapabilities |
|
147 // ----------------------------------------------------------------------------- |
|
148 // |
|
149 QSet <int > XQRequestInfo::clientCapabilities( ) const |
|
150 { |
|
151 SMC_MOCK_METHOD0( QSet <int > ) |
|
152 } |
|
153 |
|
154 |
|
155 // ----------------------------------------------------------------------------- |
|
156 // XQRequestInfo::id |
|
157 // ----------------------------------------------------------------------------- |
|
158 // |
|
159 int XQRequestInfo::id( ) const |
|
160 { |
|
161 SMC_MOCK_METHOD0( int ) |
|
162 } |
|
163 |
|
164 |
|
165 // ----------------------------------------------------------------------------- |
|
166 // XQRequestInfo::setInfo |
|
167 // ----------------------------------------------------------------------------- |
|
168 // |
|
169 void XQRequestInfo::setInfo( |
|
170 const QString & key, |
|
171 const QVariant & value ) |
|
172 { |
|
173 SMC_MOCK_METHOD2( void, const QString &, key, |
|
174 const QVariant &, value ) |
|
175 } |
|
176 |
|
177 |
|
178 // ----------------------------------------------------------------------------- |
|
179 // XQRequestInfo::info |
|
180 // ----------------------------------------------------------------------------- |
|
181 // |
|
182 QVariant XQRequestInfo::info( |
|
183 const QString & key ) const |
|
184 { |
|
185 SMC_MOCK_METHOD1( QVariant, const QString &, key ) |
|
186 } |
|
187 |
|
188 |
|
189 // ----------------------------------------------------------------------------- |
|
190 // XQRequestInfo::infoKeys |
|
191 // ----------------------------------------------------------------------------- |
|
192 // |
|
193 QStringList XQRequestInfo::infoKeys( ) const |
|
194 { |
|
195 SMC_MOCK_METHOD0( QStringList ) |
|
196 } |
|
197 |
|
198 |
|
199 // ----------------------------------------------------------------------------- |
|
200 // XQRequestInfo::serialize |
|
201 // ----------------------------------------------------------------------------- |
|
202 // |
|
203 template <typename Stream > void XQRequestInfo::serialize( |
|
204 Stream & stream ) const |
|
205 { |
|
206 SMC_MOCK_METHOD1( template <typename Stream > void, Stream &, stream ) |
|
207 } |
|
208 |
|
209 |
|
210 // ----------------------------------------------------------------------------- |
|
211 // XQRequestInfo::deserialize |
|
212 // ----------------------------------------------------------------------------- |
|
213 // |
|
214 template <typename Stream > void XQRequestInfo::deserialize( |
|
215 Stream & stream ) |
|
216 { |
|
217 SMC_MOCK_METHOD1( template <typename Stream > void, Stream &, stream ) |
|
218 } |
|
219 |
|
220 |