|
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 <hbmainwindow.h> |
|
20 |
|
21 // ============================ MEMBER FUNCTIONS =============================== |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // HbMainWindow::HbMainWindow |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 HbMainWindow::HbMainWindow( |
|
28 QWidget * parent, |
|
29 Hb::WindowFlags windowFlags ) |
|
30 : d_ptr(NULL) |
|
31 //QGraphicsView( /*parent, windowFlags*/ ) |
|
32 { |
|
33 Q_UNUSED(parent) |
|
34 Q_UNUSED(windowFlags) |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // HbMainWindow::~HbMainWindow |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 HbMainWindow::~HbMainWindow( ) |
|
42 { |
|
43 |
|
44 } |
|
45 |
|
46 |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // HbMainWindow::removeView |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 QGraphicsWidget * HbMainWindow::removeView( |
|
53 int index ) |
|
54 { |
|
55 SMC_MOCK_METHOD1( QGraphicsWidget *, int, index ) |
|
56 } |
|
57 |
|
58 |
|
59 // ----------------------------------------------------------------------------- |
|
60 // HbMainWindow::currentViewIndex |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 int HbMainWindow::currentViewIndex( ) const |
|
64 { |
|
65 SMC_MOCK_METHOD0( int ) |
|
66 } |
|
67 |
|
68 |
|
69 // ----------------------------------------------------------------------------- |
|
70 // HbMainWindow::viewCount |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 int HbMainWindow::viewCount( ) const |
|
74 { |
|
75 SMC_MOCK_METHOD0( int ) |
|
76 } |
|
77 |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // HbMainWindow::indexOfView |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 int HbMainWindow::indexOfView( |
|
84 HbView * view ) const |
|
85 { |
|
86 //SMC_MOCK_METHOD1( int, HbView *, view ) |
|
87 Q_UNUSED(view) |
|
88 } |
|
89 |
|
90 |
|
91 // ----------------------------------------------------------------------------- |
|
92 // HbMainWindow::viewAt |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 HbView * HbMainWindow::viewAt( |
|
96 int index ) const |
|
97 { |
|
98 SMC_MOCK_METHOD1( HbView *, int, index ) |
|
99 } |
|
100 |
|
101 |
|
102 // ----------------------------------------------------------------------------- |
|
103 // HbMainWindow::addView |
|
104 // ----------------------------------------------------------------------------- |
|
105 // |
|
106 HbView * HbMainWindow::addView( |
|
107 QGraphicsWidget * widget ) |
|
108 { |
|
109 //SMC_MOCK_METHOD1( HbView *, QGraphicsWidget *, widget ) |
|
110 Q_UNUSED(widget) |
|
111 } |
|
112 // ----------------------------------------------------------------------------- |
|
113 // HbMainWindow::insertView |
|
114 // ----------------------------------------------------------------------------- |
|
115 // |
|
116 HbView * HbMainWindow::insertView( |
|
117 int index, |
|
118 QGraphicsWidget * widget ) |
|
119 { |
|
120 //SMC_MOCK_METHOD2( HbView *, int, index, |
|
121 // QGraphicsWidget *, widget ) |
|
122 Q_UNUSED(index) |
|
123 Q_UNUSED(widget) |
|
124 } |
|
125 |
|
126 |
|
127 // ----------------------------------------------------------------------------- |
|
128 // HbMainWindow::removeView |
|
129 // ----------------------------------------------------------------------------- |
|
130 // |
|
131 void HbMainWindow::removeView( |
|
132 QGraphicsWidget * widget ) |
|
133 { |
|
134 //SMC_MOCK_METHOD1( void, QGraphicsWidget *, widget ) |
|
135 Q_UNUSED(widget) |
|
136 } |
|
137 |
|
138 |
|
139 // ----------------------------------------------------------------------------- |
|
140 // HbMainWindow::views |
|
141 // ----------------------------------------------------------------------------- |
|
142 // |
|
143 QList <HbView * > HbMainWindow::views( ) const |
|
144 { |
|
145 //SMC_MOCK_METHOD0( QList <HbView * > ) |
|
146 } |
|
147 |
|
148 |
|
149 // ----------------------------------------------------------------------------- |
|
150 // HbMainWindow::currentView |
|
151 // ----------------------------------------------------------------------------- |
|
152 // |
|
153 HbView * HbMainWindow::currentView( ) const |
|
154 { |
|
155 SMC_MOCK_METHOD0( HbView * ) |
|
156 } |
|
157 |
|
158 |
|
159 // ----------------------------------------------------------------------------- |
|
160 // HbMainWindow::setCurrentView |
|
161 // ----------------------------------------------------------------------------- |
|
162 // |
|
163 void HbMainWindow::setCurrentView( |
|
164 HbView * view, |
|
165 bool animate, |
|
166 Hb::ViewSwitchFlags flags ) |
|
167 { |
|
168 //SMC_MOCK_METHOD3( void, HbView *, view, |
|
169 // bool, animate, |
|
170 // Hb::ViewSwitchFlags, flags ) |
|
171 Q_UNUSED(view) |
|
172 Q_UNUSED(animate) |
|
173 Q_UNUSED(flags) |
|
174 } |
|
175 |
|
176 |
|
177 |
|
178 // ----------------------------------------------------------------------------- |
|
179 // HbMainWindow::orientation |
|
180 // ----------------------------------------------------------------------------- |
|
181 // |
|
182 Qt::Orientation HbMainWindow::orientation( ) const |
|
183 { |
|
184 SMC_MOCK_METHOD0( Qt::Orientation ) |
|
185 } |
|
186 |
|
187 |
|
188 // ----------------------------------------------------------------------------- |
|
189 // HbMainWindow::setOrientation |
|
190 // ----------------------------------------------------------------------------- |
|
191 // |
|
192 void HbMainWindow::setOrientation( |
|
193 Qt::Orientation orientation, |
|
194 bool animate ) |
|
195 { |
|
196 //SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, |
|
197 // bool, animate ) |
|
198 Q_UNUSED(orientation) |
|
199 Q_UNUSED(animate) |
|
200 } |
|
201 |
|
202 |
|
203 // ----------------------------------------------------------------------------- |
|
204 // HbMainWindow::unsetOrientation |
|
205 // ----------------------------------------------------------------------------- |
|
206 // |
|
207 void HbMainWindow::unsetOrientation( |
|
208 bool animate ) |
|
209 { |
|
210 SMC_MOCK_METHOD1( void, bool, animate ) |
|
211 } |
|
212 |
|
213 |
|
214 // ----------------------------------------------------------------------------- |
|
215 // HbMainWindow::showItems |
|
216 // ----------------------------------------------------------------------------- |
|
217 // |
|
218 void HbMainWindow::showItems( |
|
219 Hb::SceneItems items ) |
|
220 { |
|
221 //SMC_MOCK_METHOD1( void, Hb::SceneItems, items ) |
|
222 Q_UNUSED(items) |
|
223 } |
|
224 |
|
225 |
|
226 // ----------------------------------------------------------------------------- |
|
227 // HbMainWindow::hideItems |
|
228 // ----------------------------------------------------------------------------- |
|
229 // |
|
230 void HbMainWindow::hideItems( |
|
231 Hb::SceneItems items ) |
|
232 { |
|
233 //SMC_MOCK_METHOD1( void, Hb::SceneItems, items ) |
|
234 Q_UNUSED(items) |
|
235 } |
|
236 |
|
237 |
|
238 // ----------------------------------------------------------------------------- |
|
239 // HbMainWindow::visibleItems |
|
240 // ----------------------------------------------------------------------------- |
|
241 // |
|
242 Hb::SceneItems HbMainWindow::visibleItems( ) const |
|
243 { |
|
244 SMC_MOCK_METHOD0( Hb::SceneItems ) |
|
245 } |
|
246 |
|
247 |
|
248 // ----------------------------------------------------------------------------- |
|
249 // HbMainWindow::isItemVisible |
|
250 // ----------------------------------------------------------------------------- |
|
251 // |
|
252 bool HbMainWindow::isItemVisible( |
|
253 Hb::SceneItem item ) const |
|
254 { |
|
255 //SMC_MOCK_METHOD1( bool, Hb::SceneItem, item ) |
|
256 Q_UNUSED(item) |
|
257 } |
|
258 |
|
259 |
|
260 // ----------------------------------------------------------------------------- |
|
261 // HbMainWindow::setItemVisible |
|
262 // ----------------------------------------------------------------------------- |
|
263 // |
|
264 void HbMainWindow::setItemVisible( |
|
265 Hb::SceneItem item, |
|
266 bool visible ) |
|
267 { |
|
268 //SMC_MOCK_METHOD2( void, Hb::SceneItem, item, |
|
269 // bool, visible ) |
|
270 Q_UNUSED(item) |
|
271 Q_UNUSED(visible) |
|
272 } |
|
273 |
|
274 |
|
275 // ----------------------------------------------------------------------------- |
|
276 // HbMainWindow::nativeBackgroundWindow |
|
277 // ----------------------------------------------------------------------------- |
|
278 // |
|
279 WId HbMainWindow::nativeBackgroundWindow( ) |
|
280 { |
|
281 SMC_MOCK_METHOD0( WId ) |
|
282 } |
|
283 |
|
284 |
|
285 // ----------------------------------------------------------------------------- |
|
286 // HbMainWindow::resetNativeBackgroundWindow |
|
287 // ----------------------------------------------------------------------------- |
|
288 // |
|
289 void HbMainWindow::resetNativeBackgroundWindow( ) |
|
290 { |
|
291 SMC_MOCK_METHOD0( void ) |
|
292 } |
|
293 |
|
294 |
|
295 // ----------------------------------------------------------------------------- |
|
296 // HbMainWindow::layoutRect |
|
297 // ----------------------------------------------------------------------------- |
|
298 // |
|
299 QRectF HbMainWindow::layoutRect( ) const |
|
300 { |
|
301 SMC_MOCK_METHOD0( QRectF ) |
|
302 } |
|
303 |
|
304 |
|
305 // ----------------------------------------------------------------------------- |
|
306 // HbMainWindow::setBackgroundImageName |
|
307 // ----------------------------------------------------------------------------- |
|
308 // |
|
309 void HbMainWindow::setBackgroundImageName( |
|
310 Qt::Orientation orientation, |
|
311 const QString & name ) |
|
312 { |
|
313 //SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, |
|
314 // const QString &, name ) |
|
315 Q_UNUSED(orientation) |
|
316 Q_UNUSED(name) |
|
317 } |
|
318 |
|
319 |
|
320 // ----------------------------------------------------------------------------- |
|
321 // HbMainWindow::backgroundImageName |
|
322 // ----------------------------------------------------------------------------- |
|
323 // |
|
324 QString HbMainWindow::backgroundImageName( |
|
325 Qt::Orientation orientation ) const |
|
326 { |
|
327 //SMC_MOCK_METHOD1( QString, Qt::Orientation, orientation ) |
|
328 Q_UNUSED(orientation) |
|
329 } |
|
330 |
|
331 |
|
332 // ----------------------------------------------------------------------------- |
|
333 // HbMainWindow::setCurrentViewIndex |
|
334 // ----------------------------------------------------------------------------- |
|
335 // |
|
336 void HbMainWindow::setCurrentViewIndex( |
|
337 int index ) |
|
338 { |
|
339 SMC_MOCK_METHOD1( void, int, index ) |
|
340 } |
|
341 |
|
342 |
|
343 // ----------------------------------------------------------------------------- |
|
344 // HbMainWindow::nextView |
|
345 // ----------------------------------------------------------------------------- |
|
346 // |
|
347 void HbMainWindow::nextView( ) |
|
348 { |
|
349 SMC_MOCK_METHOD0( void ) |
|
350 } |
|
351 |
|
352 |
|
353 // ----------------------------------------------------------------------------- |
|
354 // HbMainWindow::previousView |
|
355 // ----------------------------------------------------------------------------- |
|
356 // |
|
357 void HbMainWindow::previousView( ) |
|
358 { |
|
359 SMC_MOCK_METHOD0( void ) |
|
360 } |
|
361 |
|
362 |
|
363 // ----------------------------------------------------------------------------- |
|
364 // HbMainWindow::broadcastEvent |
|
365 // ----------------------------------------------------------------------------- |
|
366 // |
|
367 void HbMainWindow::broadcastEvent( |
|
368 int eventType ) |
|
369 { |
|
370 SMC_MOCK_METHOD1( void, int, eventType ) |
|
371 } |
|
372 |
|
373 |
|
374 // ----------------------------------------------------------------------------- |
|
375 // HbMainWindow::currentViewIndexChanged |
|
376 // ----------------------------------------------------------------------------- |
|
377 // |
|
378 void HbMainWindow::currentViewIndexChanged( |
|
379 int index ) |
|
380 { |
|
381 SMC_MOCK_METHOD1( void, int, index ) |
|
382 } |
|
383 |
|
384 |
|
385 // ----------------------------------------------------------------------------- |
|
386 // HbMainWindow::viewReady |
|
387 // ----------------------------------------------------------------------------- |
|
388 // |
|
389 void HbMainWindow::viewReady( ) |
|
390 { |
|
391 SMC_MOCK_METHOD0( void ) |
|
392 } |
|
393 |
|
394 |
|
395 // ----------------------------------------------------------------------------- |
|
396 // HbMainWindow::aboutToChangeView |
|
397 // ----------------------------------------------------------------------------- |
|
398 // |
|
399 void HbMainWindow::aboutToChangeView( |
|
400 HbView * oldView, |
|
401 HbView * newView ) |
|
402 { |
|
403 //SMC_MOCK_METHOD2( void, HbView *, oldView, |
|
404 // HbView *, newView ) |
|
405 Q_UNUSED(oldView) |
|
406 Q_UNUSED(newView) |
|
407 } |
|
408 |
|
409 |
|
410 // ----------------------------------------------------------------------------- |
|
411 // HbMainWindow::currentViewChanged |
|
412 // ----------------------------------------------------------------------------- |
|
413 // |
|
414 void HbMainWindow::currentViewChanged( |
|
415 HbView * view ) |
|
416 { |
|
417 //SMC_MOCK_METHOD1( void, HbView *, view ) |
|
418 Q_UNUSED(view) |
|
419 } |
|
420 |
|
421 |
|
422 // ----------------------------------------------------------------------------- |
|
423 // HbMainWindow::aboutToChangeOrientation |
|
424 // ----------------------------------------------------------------------------- |
|
425 // |
|
426 void HbMainWindow::aboutToChangeOrientation( ) |
|
427 { |
|
428 SMC_MOCK_METHOD0( void ) |
|
429 } |
|
430 |
|
431 |
|
432 // ----------------------------------------------------------------------------- |
|
433 // HbMainWindow::aboutToChangeOrientation |
|
434 // ----------------------------------------------------------------------------- |
|
435 // |
|
436 void HbMainWindow::aboutToChangeOrientation( |
|
437 Qt::Orientation newOrientation, |
|
438 bool animated ) |
|
439 { |
|
440 //SMC_MOCK_METHOD2( void, Qt::Orientation, newOrientation, |
|
441 // bool, animated ) |
|
442 Q_UNUSED(newOrientation) |
|
443 Q_UNUSED(animated) |
|
444 } |
|
445 |
|
446 |
|
447 // ----------------------------------------------------------------------------- |
|
448 // HbMainWindow::orientationChanged |
|
449 // ----------------------------------------------------------------------------- |
|
450 // |
|
451 void HbMainWindow::orientationChanged( |
|
452 Qt::Orientation orientation ) |
|
453 { |
|
454 //SMC_MOCK_METHOD1( void, Qt::Orientation, orientation ) |
|
455 Q_UNUSED(orientation) |
|
456 } |
|
457 |
|
458 |
|
459 // ----------------------------------------------------------------------------- |
|
460 // HbMainWindow::changeEvent |
|
461 // ----------------------------------------------------------------------------- |
|
462 // |
|
463 void HbMainWindow::changeEvent( |
|
464 QEvent * event ) |
|
465 { |
|
466 //SMC_MOCK_METHOD1( void, QEvent *, event ) |
|
467 Q_UNUSED(event) |
|
468 } |
|
469 |
|
470 |
|
471 // ----------------------------------------------------------------------------- |
|
472 // HbMainWindow::closeEvent |
|
473 // ----------------------------------------------------------------------------- |
|
474 // |
|
475 void HbMainWindow::closeEvent( |
|
476 QCloseEvent * event ) |
|
477 { |
|
478 //SMC_MOCK_METHOD1( void, QCloseEvent *, event ) |
|
479 Q_UNUSED(event) |
|
480 } |
|
481 |
|
482 |
|
483 // ----------------------------------------------------------------------------- |
|
484 // HbMainWindow::keyPressEvent |
|
485 // ----------------------------------------------------------------------------- |
|
486 // |
|
487 void HbMainWindow::keyPressEvent( |
|
488 QKeyEvent * event ) |
|
489 { |
|
490 //SMC_MOCK_METHOD1( void, QKeyEvent *, event ) |
|
491 Q_UNUSED(event) |
|
492 } |
|
493 |
|
494 |
|
495 // ----------------------------------------------------------------------------- |
|
496 // HbMainWindow::keyReleaseEvent |
|
497 // ----------------------------------------------------------------------------- |
|
498 // |
|
499 void HbMainWindow::keyReleaseEvent( |
|
500 QKeyEvent * event ) |
|
501 { |
|
502 //SMC_MOCK_METHOD1( void, QKeyEvent *, event ) |
|
503 Q_UNUSED(event) |
|
504 } |
|
505 |
|
506 |
|
507 // ----------------------------------------------------------------------------- |
|
508 // HbMainWindow::resizeEvent |
|
509 // ----------------------------------------------------------------------------- |
|
510 // |
|
511 void HbMainWindow::resizeEvent( |
|
512 QResizeEvent * event ) |
|
513 { |
|
514 //SMC_MOCK_METHOD1( void, QResizeEvent *, event ) |
|
515 Q_UNUSED(event) |
|
516 } |
|
517 |
|
518 |
|
519 // ----------------------------------------------------------------------------- |
|
520 // HbMainWindow::customEvent |
|
521 // ----------------------------------------------------------------------------- |
|
522 // |
|
523 void HbMainWindow::customEvent( |
|
524 QEvent * event ) |
|
525 { |
|
526 //SMC_MOCK_METHOD1( void, QEvent *, event ) |
|
527 Q_UNUSED(event) |
|
528 } |
|
529 |
|
530 |
|
531 // ----------------------------------------------------------------------------- |
|
532 // HbMainWindow::scrollContentsBy |
|
533 // ----------------------------------------------------------------------------- |
|
534 // |
|
535 void HbMainWindow::scrollContentsBy( |
|
536 int dx, |
|
537 int dy ) |
|
538 { |
|
539 SMC_MOCK_METHOD2( void, int, dx, |
|
540 int, dy ) |
|
541 } |
|
542 |
|
543 |
|
544 // ----------------------------------------------------------------------------- |
|
545 // HbMainWindow::paintEvent |
|
546 // ----------------------------------------------------------------------------- |
|
547 // |
|
548 void HbMainWindow::paintEvent( |
|
549 QPaintEvent * event ) |
|
550 { |
|
551 //SMC_MOCK_METHOD1( void, QPaintEvent *, event ) |
|
552 Q_UNUSED(event) |
|
553 } |
|
554 |
|
555 |