|
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 // HbMainWindow::addView |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 HbView * HbMainWindow::addView( |
|
52 QGraphicsWidget * widget ) |
|
53 { |
|
54 //SMC_MOCK_METHOD1( HbView *, QGraphicsWidget *, widget ) |
|
55 Q_UNUSED(widget) |
|
56 } |
|
57 // ----------------------------------------------------------------------------- |
|
58 // HbMainWindow::insertView |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 HbView * HbMainWindow::insertView( |
|
62 int index, |
|
63 QGraphicsWidget * widget ) |
|
64 { |
|
65 //SMC_MOCK_METHOD2( HbView *, int, index, |
|
66 // QGraphicsWidget *, widget ) |
|
67 Q_UNUSED(index) |
|
68 Q_UNUSED(widget) |
|
69 } |
|
70 |
|
71 |
|
72 // ----------------------------------------------------------------------------- |
|
73 // HbMainWindow::removeView |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 void HbMainWindow::removeView( |
|
77 QGraphicsWidget * widget ) |
|
78 { |
|
79 //SMC_MOCK_METHOD1( void, QGraphicsWidget *, widget ) |
|
80 Q_UNUSED(widget) |
|
81 } |
|
82 |
|
83 |
|
84 // ----------------------------------------------------------------------------- |
|
85 // HbMainWindow::views |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 QList <HbView * > HbMainWindow::views( ) const |
|
89 { |
|
90 //SMC_MOCK_METHOD0( QList <HbView * > ) |
|
91 } |
|
92 |
|
93 |
|
94 // ----------------------------------------------------------------------------- |
|
95 // HbMainWindow::currentView |
|
96 // ----------------------------------------------------------------------------- |
|
97 // |
|
98 HbView * HbMainWindow::currentView( ) const |
|
99 { |
|
100 SMC_MOCK_METHOD0( HbView * ) |
|
101 } |
|
102 |
|
103 |
|
104 // ----------------------------------------------------------------------------- |
|
105 // HbMainWindow::setCurrentView |
|
106 // ----------------------------------------------------------------------------- |
|
107 // |
|
108 void HbMainWindow::setCurrentView( |
|
109 HbView * view, |
|
110 bool animate, |
|
111 Hb::ViewSwitchFlags flags ) |
|
112 { |
|
113 //SMC_MOCK_METHOD3( void, HbView *, view, |
|
114 // bool, animate, |
|
115 // Hb::ViewSwitchFlags, flags ) |
|
116 Q_UNUSED(view) |
|
117 Q_UNUSED(animate) |
|
118 Q_UNUSED(flags) |
|
119 } |
|
120 |
|
121 |
|
122 |
|
123 // ----------------------------------------------------------------------------- |
|
124 // HbMainWindow::orientation |
|
125 // ----------------------------------------------------------------------------- |
|
126 // |
|
127 Qt::Orientation HbMainWindow::orientation( ) const |
|
128 { |
|
129 SMC_MOCK_METHOD0( Qt::Orientation ) |
|
130 } |
|
131 |
|
132 |
|
133 // ----------------------------------------------------------------------------- |
|
134 // HbMainWindow::setOrientation |
|
135 // ----------------------------------------------------------------------------- |
|
136 // |
|
137 void HbMainWindow::setOrientation( |
|
138 Qt::Orientation orientation, |
|
139 bool animate ) |
|
140 { |
|
141 //SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, |
|
142 // bool, animate ) |
|
143 Q_UNUSED(orientation) |
|
144 Q_UNUSED(animate) |
|
145 } |
|
146 |
|
147 |
|
148 // ----------------------------------------------------------------------------- |
|
149 // HbMainWindow::unsetOrientation |
|
150 // ----------------------------------------------------------------------------- |
|
151 // |
|
152 void HbMainWindow::unsetOrientation( |
|
153 bool animate ) |
|
154 { |
|
155 SMC_MOCK_METHOD1( void, bool, animate ) |
|
156 } |
|
157 |
|
158 |
|
159 // ----------------------------------------------------------------------------- |
|
160 // HbMainWindow::nativeBackgroundWindow |
|
161 // ----------------------------------------------------------------------------- |
|
162 // |
|
163 WId HbMainWindow::nativeBackgroundWindow( ) |
|
164 { |
|
165 SMC_MOCK_METHOD0( WId ) |
|
166 } |
|
167 |
|
168 |
|
169 // ----------------------------------------------------------------------------- |
|
170 // HbMainWindow::resetNativeBackgroundWindow |
|
171 // ----------------------------------------------------------------------------- |
|
172 // |
|
173 void HbMainWindow::resetNativeBackgroundWindow( ) |
|
174 { |
|
175 SMC_MOCK_METHOD0( void ) |
|
176 } |
|
177 |
|
178 |
|
179 // ----------------------------------------------------------------------------- |
|
180 // HbMainWindow::layoutRect |
|
181 // ----------------------------------------------------------------------------- |
|
182 // |
|
183 QRectF HbMainWindow::layoutRect( ) const |
|
184 { |
|
185 SMC_MOCK_METHOD0( QRectF ) |
|
186 } |
|
187 |
|
188 |
|
189 // ----------------------------------------------------------------------------- |
|
190 // HbMainWindow::setBackgroundImageName |
|
191 // ----------------------------------------------------------------------------- |
|
192 // |
|
193 void HbMainWindow::setBackgroundImageName( |
|
194 Qt::Orientation orientation, |
|
195 const QString & name ) |
|
196 { |
|
197 //SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, |
|
198 // const QString &, name ) |
|
199 Q_UNUSED(orientation) |
|
200 Q_UNUSED(name) |
|
201 } |
|
202 |
|
203 |
|
204 // ----------------------------------------------------------------------------- |
|
205 // HbMainWindow::backgroundImageName |
|
206 // ----------------------------------------------------------------------------- |
|
207 // |
|
208 QString HbMainWindow::backgroundImageName( |
|
209 Qt::Orientation orientation ) const |
|
210 { |
|
211 //SMC_MOCK_METHOD1( QString, Qt::Orientation, orientation ) |
|
212 Q_UNUSED(orientation) |
|
213 } |
|
214 |
|
215 |
|
216 // ----------------------------------------------------------------------------- |
|
217 // HbMainWindow::setAutomaticOrientationEffectEnabled |
|
218 // ----------------------------------------------------------------------------- |
|
219 // |
|
220 void HbMainWindow::setAutomaticOrientationEffectEnabled( |
|
221 bool enabled ) |
|
222 { |
|
223 SMC_MOCK_METHOD1( void, bool, enabled ) |
|
224 } |
|
225 |
|
226 |
|
227 // ----------------------------------------------------------------------------- |
|
228 // HbMainWindow::automaticOrientationEffectEnabled |
|
229 // ----------------------------------------------------------------------------- |
|
230 // |
|
231 bool HbMainWindow::automaticOrientationEffectEnabled( ) const |
|
232 { |
|
233 SMC_MOCK_METHOD0( bool ) |
|
234 } |
|
235 |
|
236 |
|
237 // ----------------------------------------------------------------------------- |
|
238 // HbMainWindow::broadcastEvent |
|
239 // ----------------------------------------------------------------------------- |
|
240 // |
|
241 void HbMainWindow::broadcastEvent( |
|
242 int eventType ) |
|
243 { |
|
244 SMC_MOCK_METHOD1( void, int, eventType ) |
|
245 } |
|
246 |
|
247 |
|
248 // ----------------------------------------------------------------------------- |
|
249 // HbMainWindow::viewReady |
|
250 // ----------------------------------------------------------------------------- |
|
251 // |
|
252 void HbMainWindow::viewReady( ) |
|
253 { |
|
254 SMC_MOCK_METHOD0( void ) |
|
255 } |
|
256 |
|
257 |
|
258 // ----------------------------------------------------------------------------- |
|
259 // HbMainWindow::aboutToChangeView |
|
260 // ----------------------------------------------------------------------------- |
|
261 // |
|
262 void HbMainWindow::aboutToChangeView( |
|
263 HbView * oldView, |
|
264 HbView * newView ) |
|
265 { |
|
266 //SMC_MOCK_METHOD2( void, HbView *, oldView, |
|
267 // HbView *, newView ) |
|
268 Q_UNUSED(oldView) |
|
269 Q_UNUSED(newView) |
|
270 } |
|
271 |
|
272 |
|
273 // ----------------------------------------------------------------------------- |
|
274 // HbMainWindow::currentViewChanged |
|
275 // ----------------------------------------------------------------------------- |
|
276 // |
|
277 void HbMainWindow::currentViewChanged( |
|
278 HbView * view ) |
|
279 { |
|
280 //SMC_MOCK_METHOD1( void, HbView *, view ) |
|
281 Q_UNUSED(view) |
|
282 } |
|
283 |
|
284 |
|
285 // ----------------------------------------------------------------------------- |
|
286 // HbMainWindow::aboutToChangeOrientation |
|
287 // ----------------------------------------------------------------------------- |
|
288 // |
|
289 void HbMainWindow::aboutToChangeOrientation( ) |
|
290 { |
|
291 SMC_MOCK_METHOD0( void ) |
|
292 } |
|
293 |
|
294 |
|
295 // ----------------------------------------------------------------------------- |
|
296 // HbMainWindow::aboutToChangeOrientation |
|
297 // ----------------------------------------------------------------------------- |
|
298 // |
|
299 void HbMainWindow::aboutToChangeOrientation( |
|
300 Qt::Orientation newOrientation, |
|
301 bool animated ) |
|
302 { |
|
303 //SMC_MOCK_METHOD2( void, Qt::Orientation, newOrientation, |
|
304 // bool, animated ) |
|
305 Q_UNUSED(newOrientation) |
|
306 Q_UNUSED(animated) |
|
307 } |
|
308 |
|
309 |
|
310 // ----------------------------------------------------------------------------- |
|
311 // HbMainWindow::orientationChanged |
|
312 // ----------------------------------------------------------------------------- |
|
313 // |
|
314 void HbMainWindow::orientationChanged( |
|
315 Qt::Orientation orientation ) |
|
316 { |
|
317 //SMC_MOCK_METHOD1( void, Qt::Orientation, orientation ) |
|
318 Q_UNUSED(orientation) |
|
319 } |
|
320 |
|
321 |
|
322 // ----------------------------------------------------------------------------- |
|
323 // HbMainWindow::changeEvent |
|
324 // ----------------------------------------------------------------------------- |
|
325 // |
|
326 void HbMainWindow::changeEvent( |
|
327 QEvent * event ) |
|
328 { |
|
329 //SMC_MOCK_METHOD1( void, QEvent *, event ) |
|
330 Q_UNUSED(event) |
|
331 } |
|
332 |
|
333 |
|
334 // ----------------------------------------------------------------------------- |
|
335 // HbMainWindow::closeEvent |
|
336 // ----------------------------------------------------------------------------- |
|
337 // |
|
338 void HbMainWindow::closeEvent( |
|
339 QCloseEvent * event ) |
|
340 { |
|
341 //SMC_MOCK_METHOD1( void, QCloseEvent *, event ) |
|
342 Q_UNUSED(event) |
|
343 } |
|
344 |
|
345 |
|
346 // ----------------------------------------------------------------------------- |
|
347 // HbMainWindow::keyPressEvent |
|
348 // ----------------------------------------------------------------------------- |
|
349 // |
|
350 void HbMainWindow::keyPressEvent( |
|
351 QKeyEvent * event ) |
|
352 { |
|
353 //SMC_MOCK_METHOD1( void, QKeyEvent *, event ) |
|
354 Q_UNUSED(event) |
|
355 } |
|
356 |
|
357 |
|
358 // ----------------------------------------------------------------------------- |
|
359 // HbMainWindow::keyReleaseEvent |
|
360 // ----------------------------------------------------------------------------- |
|
361 // |
|
362 void HbMainWindow::keyReleaseEvent( |
|
363 QKeyEvent * event ) |
|
364 { |
|
365 //SMC_MOCK_METHOD1( void, QKeyEvent *, event ) |
|
366 Q_UNUSED(event) |
|
367 } |
|
368 |
|
369 |
|
370 // ----------------------------------------------------------------------------- |
|
371 // HbMainWindow::resizeEvent |
|
372 // ----------------------------------------------------------------------------- |
|
373 // |
|
374 void HbMainWindow::resizeEvent( |
|
375 QResizeEvent * event ) |
|
376 { |
|
377 //SMC_MOCK_METHOD1( void, QResizeEvent *, event ) |
|
378 Q_UNUSED(event) |
|
379 } |
|
380 |
|
381 |
|
382 // ----------------------------------------------------------------------------- |
|
383 // HbMainWindow::customEvent |
|
384 // ----------------------------------------------------------------------------- |
|
385 // |
|
386 void HbMainWindow::customEvent( |
|
387 QEvent * event ) |
|
388 { |
|
389 //SMC_MOCK_METHOD1( void, QEvent *, event ) |
|
390 Q_UNUSED(event) |
|
391 } |
|
392 |
|
393 |
|
394 // ----------------------------------------------------------------------------- |
|
395 // HbMainWindow::scrollContentsBy |
|
396 // ----------------------------------------------------------------------------- |
|
397 // |
|
398 void HbMainWindow::scrollContentsBy( |
|
399 int dx, |
|
400 int dy ) |
|
401 { |
|
402 SMC_MOCK_METHOD2( void, int, dx, |
|
403 int, dy ) |
|
404 } |
|
405 |
|
406 |
|
407 // ----------------------------------------------------------------------------- |
|
408 // HbMainWindow::paintEvent |
|
409 // ----------------------------------------------------------------------------- |
|
410 // |
|
411 void HbMainWindow::paintEvent( |
|
412 QPaintEvent * event ) |
|
413 { |
|
414 //SMC_MOCK_METHOD1( void, QPaintEvent *, event ) |
|
415 Q_UNUSED(event) |
|
416 } |
|
417 |
|
418 |