|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #include <QDebug> |
|
18 #include <smcmockclassincludes.h> |
|
19 #include <hbdevicemessagebox.h> |
|
20 |
|
21 // ============================ MEMBER FUNCTIONS =============================== |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // HbDeviceMessageBox::HbDeviceMessageBox |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 HbDeviceMessageBox::HbDeviceMessageBox( |
|
28 HbMessageBox::MessageBoxType type, |
|
29 QObject * parent ) |
|
30 //: |
|
31 //QObject( /*type, parent*/ ) |
|
32 { |
|
33 |
|
34 } |
|
35 |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // HbDeviceMessageBox::HbDeviceMessageBox |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 HbDeviceMessageBox::HbDeviceMessageBox( |
|
42 const QString & text, |
|
43 HbMessageBox::MessageBoxType type, |
|
44 QObject * parent ) |
|
45 //: |
|
46 //QObject( /*text, type, parent*/ ) |
|
47 { |
|
48 |
|
49 } |
|
50 |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // HbDeviceMessageBox::~HbDeviceMessageBox |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 HbDeviceMessageBox::~HbDeviceMessageBox( ) |
|
57 { |
|
58 |
|
59 } |
|
60 |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // HbDeviceMessageBox::question |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 bool HbDeviceMessageBox::question( |
|
67 const QString & text, |
|
68 const QString & acceptButtonText, |
|
69 const QString & rejectButtonText ) |
|
70 { |
|
71 SMC_MOCK_METHOD3( bool, const QString &, text, |
|
72 const QString &, acceptButtonText, |
|
73 const QString &, rejectButtonText ) |
|
74 } |
|
75 |
|
76 |
|
77 // ----------------------------------------------------------------------------- |
|
78 // HbDeviceMessageBox::information |
|
79 // ----------------------------------------------------------------------------- |
|
80 // |
|
81 void HbDeviceMessageBox::information( |
|
82 const QString & text ) |
|
83 { |
|
84 SMC_MOCK_METHOD1( void, const QString &, text ) |
|
85 } |
|
86 |
|
87 |
|
88 // ----------------------------------------------------------------------------- |
|
89 // HbDeviceMessageBox::warning |
|
90 // ----------------------------------------------------------------------------- |
|
91 // |
|
92 void HbDeviceMessageBox::warning( |
|
93 const QString & text ) |
|
94 { |
|
95 SMC_MOCK_METHOD1( void, const QString &, text ) |
|
96 } |
|
97 |
|
98 |
|
99 // ----------------------------------------------------------------------------- |
|
100 // HbDeviceMessageBox::show |
|
101 // ----------------------------------------------------------------------------- |
|
102 // |
|
103 void HbDeviceMessageBox::show( ) |
|
104 { |
|
105 SMC_MOCK_METHOD0( void ) |
|
106 } |
|
107 |
|
108 |
|
109 // ----------------------------------------------------------------------------- |
|
110 // HbDeviceMessageBox::update |
|
111 // ----------------------------------------------------------------------------- |
|
112 // |
|
113 void HbDeviceMessageBox::update( ) |
|
114 { |
|
115 SMC_MOCK_METHOD0( void ) |
|
116 } |
|
117 |
|
118 |
|
119 // ----------------------------------------------------------------------------- |
|
120 // HbDeviceMessageBox::close |
|
121 // ----------------------------------------------------------------------------- |
|
122 // |
|
123 void HbDeviceMessageBox::close( ) |
|
124 { |
|
125 SMC_MOCK_METHOD0( void ) |
|
126 } |
|
127 |
|
128 |
|
129 // ----------------------------------------------------------------------------- |
|
130 // HbDeviceMessageBox::exec |
|
131 // ----------------------------------------------------------------------------- |
|
132 // |
|
133 const QAction * HbDeviceMessageBox::exec( ) |
|
134 { |
|
135 SMC_MOCK_METHOD0( const QAction * ) |
|
136 } |
|
137 |
|
138 |
|
139 // ----------------------------------------------------------------------------- |
|
140 // HbDeviceMessageBox::triggeredAction |
|
141 // ----------------------------------------------------------------------------- |
|
142 // |
|
143 const QAction * HbDeviceMessageBox::triggeredAction( ) const |
|
144 { |
|
145 SMC_MOCK_METHOD0( const QAction * ) |
|
146 } |
|
147 |
|
148 |
|
149 // ----------------------------------------------------------------------------- |
|
150 // HbDeviceMessageBox::isAcceptAction |
|
151 // ----------------------------------------------------------------------------- |
|
152 // |
|
153 bool HbDeviceMessageBox::isAcceptAction( |
|
154 const QAction * action ) const |
|
155 { |
|
156 //SMC_MOCK_METHOD1( bool, const QAction *, action ) |
|
157 } |
|
158 |
|
159 |
|
160 // ----------------------------------------------------------------------------- |
|
161 // HbDeviceMessageBox::setMessageBoxType |
|
162 // ----------------------------------------------------------------------------- |
|
163 // |
|
164 void HbDeviceMessageBox::setMessageBoxType( |
|
165 HbMessageBox::MessageBoxType type ) |
|
166 { |
|
167 SMC_MOCK_METHOD1( void, HbMessageBox::MessageBoxType, type ) |
|
168 } |
|
169 |
|
170 |
|
171 // ----------------------------------------------------------------------------- |
|
172 // HbDeviceMessageBox::messageBoxType |
|
173 // ----------------------------------------------------------------------------- |
|
174 // |
|
175 HbMessageBox::MessageBoxType HbDeviceMessageBox::messageBoxType( ) const |
|
176 { |
|
177 SMC_MOCK_METHOD0( HbMessageBox::MessageBoxType ) |
|
178 } |
|
179 |
|
180 |
|
181 // ----------------------------------------------------------------------------- |
|
182 // HbDeviceMessageBox::setText |
|
183 // ----------------------------------------------------------------------------- |
|
184 // |
|
185 void HbDeviceMessageBox::setText( |
|
186 const QString & text ) |
|
187 { |
|
188 SMC_MOCK_METHOD1( void, const QString &, text ) |
|
189 } |
|
190 |
|
191 |
|
192 // ----------------------------------------------------------------------------- |
|
193 // HbDeviceMessageBox::text |
|
194 // ----------------------------------------------------------------------------- |
|
195 // |
|
196 QString HbDeviceMessageBox::text( ) const |
|
197 { |
|
198 SMC_MOCK_METHOD0( QString ) |
|
199 } |
|
200 |
|
201 |
|
202 // ----------------------------------------------------------------------------- |
|
203 // HbDeviceMessageBox::setIconName |
|
204 // ----------------------------------------------------------------------------- |
|
205 // |
|
206 void HbDeviceMessageBox::setIconName( |
|
207 const QString & iconName ) |
|
208 { |
|
209 SMC_MOCK_METHOD1( void, const QString &, iconName ) |
|
210 } |
|
211 |
|
212 |
|
213 // ----------------------------------------------------------------------------- |
|
214 // HbDeviceMessageBox::iconName |
|
215 // ----------------------------------------------------------------------------- |
|
216 // |
|
217 QString HbDeviceMessageBox::iconName( ) const |
|
218 { |
|
219 SMC_MOCK_METHOD0( QString ) |
|
220 } |
|
221 |
|
222 |
|
223 // ----------------------------------------------------------------------------- |
|
224 // HbDeviceMessageBox::setIconVisible |
|
225 // ----------------------------------------------------------------------------- |
|
226 // |
|
227 void HbDeviceMessageBox::setIconVisible( |
|
228 bool visible ) |
|
229 { |
|
230 SMC_MOCK_METHOD1( void, bool, visible ) |
|
231 } |
|
232 |
|
233 |
|
234 // ----------------------------------------------------------------------------- |
|
235 // HbDeviceMessageBox::iconVisible |
|
236 // ----------------------------------------------------------------------------- |
|
237 // |
|
238 bool HbDeviceMessageBox::iconVisible( ) const |
|
239 { |
|
240 SMC_MOCK_METHOD0( bool ) |
|
241 } |
|
242 |
|
243 |
|
244 // ----------------------------------------------------------------------------- |
|
245 // HbDeviceMessageBox::setAnimationDefinition |
|
246 // ----------------------------------------------------------------------------- |
|
247 // |
|
248 void HbDeviceMessageBox::setAnimationDefinition( |
|
249 QString & animationDefinition ) |
|
250 { |
|
251 SMC_MOCK_METHOD1( void, QString &, animationDefinition ) |
|
252 } |
|
253 |
|
254 |
|
255 // ----------------------------------------------------------------------------- |
|
256 // HbDeviceMessageBox::animationDefinition |
|
257 // ----------------------------------------------------------------------------- |
|
258 // |
|
259 QString HbDeviceMessageBox::animationDefinition( ) const |
|
260 { |
|
261 SMC_MOCK_METHOD0( QString ) |
|
262 } |
|
263 |
|
264 |
|
265 // ----------------------------------------------------------------------------- |
|
266 // HbDeviceMessageBox::setTimeout |
|
267 // ----------------------------------------------------------------------------- |
|
268 // |
|
269 void HbDeviceMessageBox::setTimeout( |
|
270 int timeout ) |
|
271 { |
|
272 SMC_MOCK_METHOD1( void, int, timeout ) |
|
273 } |
|
274 |
|
275 |
|
276 // ----------------------------------------------------------------------------- |
|
277 // HbDeviceMessageBox::setTimeout |
|
278 // ----------------------------------------------------------------------------- |
|
279 // |
|
280 void HbDeviceMessageBox::setTimeout( |
|
281 HbPopup::DefaultTimeout timeout ) |
|
282 { |
|
283 SMC_MOCK_METHOD1( void, HbPopup::DefaultTimeout, timeout ) |
|
284 } |
|
285 |
|
286 |
|
287 // ----------------------------------------------------------------------------- |
|
288 // HbDeviceMessageBox::timeout |
|
289 // ----------------------------------------------------------------------------- |
|
290 // |
|
291 int HbDeviceMessageBox::timeout( ) const |
|
292 { |
|
293 SMC_MOCK_METHOD0( int ) |
|
294 } |
|
295 |
|
296 |
|
297 // ----------------------------------------------------------------------------- |
|
298 // HbDeviceMessageBox::setDismissPolicy |
|
299 // ----------------------------------------------------------------------------- |
|
300 // |
|
301 void HbDeviceMessageBox::setDismissPolicy( |
|
302 HbPopup::DismissPolicy dismissPolicy ) |
|
303 { |
|
304 SMC_MOCK_METHOD1( void, HbPopup::DismissPolicy, dismissPolicy ) |
|
305 } |
|
306 |
|
307 |
|
308 // ----------------------------------------------------------------------------- |
|
309 // HbDeviceMessageBox::dismissPolicy |
|
310 // ----------------------------------------------------------------------------- |
|
311 // |
|
312 HbPopup::DismissPolicy HbDeviceMessageBox::dismissPolicy( ) const |
|
313 { |
|
314 SMC_MOCK_METHOD0( HbPopup::DismissPolicy ) |
|
315 } |
|
316 |
|
317 |
|
318 // ----------------------------------------------------------------------------- |
|
319 // HbDeviceMessageBox::setAction |
|
320 // ----------------------------------------------------------------------------- |
|
321 // |
|
322 void HbDeviceMessageBox::setAction( |
|
323 QAction * action, |
|
324 ActionRole role ) |
|
325 { |
|
326 //SMC_MOCK_METHOD2( void, QAction *, action, |
|
327 // ActionRole, role ) |
|
328 } |
|
329 |
|
330 |
|
331 // ----------------------------------------------------------------------------- |
|
332 // HbDeviceMessageBox::action |
|
333 // ----------------------------------------------------------------------------- |
|
334 // |
|
335 QAction * HbDeviceMessageBox::action( |
|
336 ActionRole role ) const |
|
337 { |
|
338 //SMC_MOCK_METHOD1( QAction *, ActionRole, role ) |
|
339 } |
|
340 |
|
341 |
|
342 // ----------------------------------------------------------------------------- |
|
343 // HbDeviceMessageBox::aboutToClose |
|
344 // ----------------------------------------------------------------------------- |
|
345 // |
|
346 void HbDeviceMessageBox::aboutToClose( ) |
|
347 { |
|
348 SMC_MOCK_METHOD0( void ) |
|
349 } |
|
350 |
|
351 |