28 QWidget * parent, |
28 QWidget * parent, |
29 Hb::WindowFlags windowFlags ) |
29 Hb::WindowFlags windowFlags ) |
30 : d_ptr(NULL) |
30 : d_ptr(NULL) |
31 //QGraphicsView( /*parent, windowFlags*/ ) |
31 //QGraphicsView( /*parent, windowFlags*/ ) |
32 { |
32 { |
|
33 Q_UNUSED(parent) |
|
34 Q_UNUSED(windowFlags) |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // HbMainWindow::~HbMainWindow |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 HbMainWindow::~HbMainWindow( ) |
|
42 { |
33 |
43 |
34 } |
44 } |
35 |
45 |
36 // ----------------------------------------------------------------------------- |
46 |
37 // HbMainWindow::~HbMainWindow |
47 // ----------------------------------------------------------------------------- |
38 // ----------------------------------------------------------------------------- |
48 // HbMainWindow::addView |
39 // |
49 // ----------------------------------------------------------------------------- |
40 HbMainWindow::~HbMainWindow( ) |
50 // |
41 { |
51 HbView * HbMainWindow::addView( |
42 |
52 QGraphicsWidget * widget ) |
43 } |
53 { |
44 |
54 //SMC_MOCK_METHOD1( HbView *, QGraphicsWidget *, widget ) |
45 |
55 Q_UNUSED(widget) |
|
56 } |
46 // ----------------------------------------------------------------------------- |
57 // ----------------------------------------------------------------------------- |
47 // HbMainWindow::insertView |
58 // HbMainWindow::insertView |
48 // ----------------------------------------------------------------------------- |
59 // ----------------------------------------------------------------------------- |
49 // |
60 // |
50 HbView * HbMainWindow::insertView( |
61 HbView * HbMainWindow::insertView( |
51 int index, |
62 int index, |
52 QGraphicsWidget * widget ) |
63 QGraphicsWidget * widget ) |
53 { |
64 { |
54 //SMC_MOCK_METHOD2( HbView *, int, index, |
65 //SMC_MOCK_METHOD2( HbView *, int, index, |
55 // QGraphicsWidget *, widget ) |
66 // QGraphicsWidget *, widget ) |
56 } |
67 Q_UNUSED(index) |
57 |
68 Q_UNUSED(widget) |
58 |
|
59 // ----------------------------------------------------------------------------- |
|
60 // HbMainWindow::removeView |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 QGraphicsWidget * HbMainWindow::removeView( |
|
64 int index ) |
|
65 { |
|
66 SMC_MOCK_METHOD1( QGraphicsWidget *, int, index ) |
|
67 } |
|
68 |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // HbMainWindow::currentViewIndex |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 int HbMainWindow::currentViewIndex( ) const |
|
75 { |
|
76 SMC_MOCK_METHOD0( int ) |
|
77 } |
|
78 |
|
79 |
|
80 // ----------------------------------------------------------------------------- |
|
81 // HbMainWindow::viewCount |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 int HbMainWindow::viewCount( ) const |
|
85 { |
|
86 SMC_MOCK_METHOD0( int ) |
|
87 } |
|
88 |
|
89 |
|
90 // ----------------------------------------------------------------------------- |
|
91 // HbMainWindow::indexOfView |
|
92 // ----------------------------------------------------------------------------- |
|
93 // |
|
94 int HbMainWindow::indexOfView( |
|
95 HbView * view ) const |
|
96 { |
|
97 //SMC_MOCK_METHOD1( int, HbView *, view ) |
|
98 } |
|
99 |
|
100 |
|
101 // ----------------------------------------------------------------------------- |
|
102 // HbMainWindow::viewAt |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 HbView * HbMainWindow::viewAt( |
|
106 int index ) const |
|
107 { |
|
108 SMC_MOCK_METHOD1( HbView *, int, index ) |
|
109 } |
|
110 |
|
111 |
|
112 // ----------------------------------------------------------------------------- |
|
113 // HbMainWindow::addView |
|
114 // ----------------------------------------------------------------------------- |
|
115 // |
|
116 HbView * HbMainWindow::addView( |
|
117 QGraphicsWidget * widget ) |
|
118 { |
|
119 //SMC_MOCK_METHOD1( HbView *, QGraphicsWidget *, widget ) |
|
120 } |
69 } |
121 |
70 |
122 |
71 |
123 // ----------------------------------------------------------------------------- |
72 // ----------------------------------------------------------------------------- |
124 // HbMainWindow::removeView |
73 // HbMainWindow::removeView |
161 Hb::ViewSwitchFlags flags ) |
111 Hb::ViewSwitchFlags flags ) |
162 { |
112 { |
163 //SMC_MOCK_METHOD3( void, HbView *, view, |
113 //SMC_MOCK_METHOD3( void, HbView *, view, |
164 // bool, animate, |
114 // bool, animate, |
165 // Hb::ViewSwitchFlags, flags ) |
115 // Hb::ViewSwitchFlags, flags ) |
166 } |
116 Q_UNUSED(view) |
167 |
117 Q_UNUSED(animate) |
168 |
118 Q_UNUSED(flags) |
169 // ----------------------------------------------------------------------------- |
119 } |
170 // HbMainWindow::element |
120 |
171 // ----------------------------------------------------------------------------- |
|
172 // |
|
173 QGraphicsWidget * HbMainWindow::element( |
|
174 HbMainWindow::Element element ) const |
|
175 { |
|
176 //SMC_MOCK_METHOD1( QGraphicsWidget *, HbMainWindow::Element, element ) |
|
177 } |
|
178 |
|
179 |
|
180 // ----------------------------------------------------------------------------- |
|
181 // HbMainWindow::setViewSwitchingEnabled |
|
182 // ----------------------------------------------------------------------------- |
|
183 // |
|
184 void HbMainWindow::setViewSwitchingEnabled( |
|
185 bool enabled ) |
|
186 { |
|
187 SMC_MOCK_METHOD1( void, bool, enabled ) |
|
188 } |
|
189 |
|
190 |
|
191 // ----------------------------------------------------------------------------- |
|
192 // HbMainWindow::isViewSwitchingEnabled |
|
193 // ----------------------------------------------------------------------------- |
|
194 // |
|
195 bool HbMainWindow::isViewSwitchingEnabled( ) const |
|
196 { |
|
197 SMC_MOCK_METHOD0( bool ) |
|
198 } |
|
199 |
|
200 |
|
201 // ----------------------------------------------------------------------------- |
|
202 // HbMainWindow::softKeyAction |
|
203 // ----------------------------------------------------------------------------- |
|
204 // |
|
205 HbAction * HbMainWindow::softKeyAction( |
|
206 Hb::SoftKeyId key ) const |
|
207 { |
|
208 //SMC_MOCK_METHOD1( HbAction *, Hb::SoftKeyId, key ) |
|
209 } |
|
210 |
|
211 |
|
212 // ----------------------------------------------------------------------------- |
|
213 // HbMainWindow::addSoftKeyAction |
|
214 // ----------------------------------------------------------------------------- |
|
215 // |
|
216 void HbMainWindow::addSoftKeyAction( |
|
217 Hb::SoftKeyId key, |
|
218 HbAction * action ) |
|
219 { |
|
220 //SMC_MOCK_METHOD2( void, Hb::SoftKeyId, key, |
|
221 // HbAction *, action ) |
|
222 } |
|
223 |
|
224 |
|
225 // ----------------------------------------------------------------------------- |
|
226 // HbMainWindow::removeSoftKeyAction |
|
227 // ----------------------------------------------------------------------------- |
|
228 // |
|
229 void HbMainWindow::removeSoftKeyAction( |
|
230 Hb::SoftKeyId key, |
|
231 HbAction * action ) |
|
232 { |
|
233 //SMC_MOCK_METHOD2( void, Hb::SoftKeyId, key, |
|
234 // HbAction *, action ) |
|
235 } |
|
236 |
121 |
237 |
122 |
238 // ----------------------------------------------------------------------------- |
123 // ----------------------------------------------------------------------------- |
239 // HbMainWindow::orientation |
124 // HbMainWindow::orientation |
240 // ----------------------------------------------------------------------------- |
125 // ----------------------------------------------------------------------------- |
268 SMC_MOCK_METHOD1( void, bool, animate ) |
155 SMC_MOCK_METHOD1( void, bool, animate ) |
269 } |
156 } |
270 |
157 |
271 |
158 |
272 // ----------------------------------------------------------------------------- |
159 // ----------------------------------------------------------------------------- |
273 // HbMainWindow::showItems |
|
274 // ----------------------------------------------------------------------------- |
|
275 // |
|
276 void HbMainWindow::showItems( |
|
277 Hb::SceneItems items ) |
|
278 { |
|
279 //SMC_MOCK_METHOD1( void, Hb::SceneItems, items ) |
|
280 } |
|
281 |
|
282 |
|
283 // ----------------------------------------------------------------------------- |
|
284 // HbMainWindow::hideItems |
|
285 // ----------------------------------------------------------------------------- |
|
286 // |
|
287 void HbMainWindow::hideItems( |
|
288 Hb::SceneItems items ) |
|
289 { |
|
290 //SMC_MOCK_METHOD1( void, Hb::SceneItems, items ) |
|
291 } |
|
292 |
|
293 |
|
294 // ----------------------------------------------------------------------------- |
|
295 // HbMainWindow::visibleItems |
|
296 // ----------------------------------------------------------------------------- |
|
297 // |
|
298 Hb::SceneItems HbMainWindow::visibleItems( ) const |
|
299 { |
|
300 SMC_MOCK_METHOD0( Hb::SceneItems ) |
|
301 } |
|
302 |
|
303 |
|
304 // ----------------------------------------------------------------------------- |
|
305 // HbMainWindow::isItemVisible |
|
306 // ----------------------------------------------------------------------------- |
|
307 // |
|
308 bool HbMainWindow::isItemVisible( |
|
309 Hb::SceneItem item ) const |
|
310 { |
|
311 //SMC_MOCK_METHOD1( bool, Hb::SceneItem, item ) |
|
312 } |
|
313 |
|
314 |
|
315 // ----------------------------------------------------------------------------- |
|
316 // HbMainWindow::setItemVisible |
|
317 // ----------------------------------------------------------------------------- |
|
318 // |
|
319 void HbMainWindow::setItemVisible( |
|
320 Hb::SceneItem item, |
|
321 bool visible ) |
|
322 { |
|
323 //SMC_MOCK_METHOD2( void, Hb::SceneItem, item, |
|
324 // bool, visible ) |
|
325 } |
|
326 |
|
327 |
|
328 // ----------------------------------------------------------------------------- |
|
329 // HbMainWindow::nativeBackgroundWindow |
160 // HbMainWindow::nativeBackgroundWindow |
330 // ----------------------------------------------------------------------------- |
161 // ----------------------------------------------------------------------------- |
331 // |
162 // |
332 WId HbMainWindow::nativeBackgroundWindow( ) |
163 WId HbMainWindow::nativeBackgroundWindow( ) |
333 { |
164 { |
354 SMC_MOCK_METHOD0( QRectF ) |
185 SMC_MOCK_METHOD0( QRectF ) |
355 } |
186 } |
356 |
187 |
357 |
188 |
358 // ----------------------------------------------------------------------------- |
189 // ----------------------------------------------------------------------------- |
359 // HbMainWindow::setCurrentViewIndex |
190 // HbMainWindow::setBackgroundImageName |
360 // ----------------------------------------------------------------------------- |
191 // ----------------------------------------------------------------------------- |
361 // |
192 // |
362 void HbMainWindow::setCurrentViewIndex( |
193 void HbMainWindow::setBackgroundImageName( |
363 int index ) |
194 Qt::Orientation orientation, |
364 { |
195 const QString & name ) |
365 SMC_MOCK_METHOD1( void, int, index ) |
196 { |
366 } |
197 //SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, |
367 |
198 // const QString &, name ) |
368 |
199 Q_UNUSED(orientation) |
369 // ----------------------------------------------------------------------------- |
200 Q_UNUSED(name) |
370 // HbMainWindow::nextView |
201 } |
371 // ----------------------------------------------------------------------------- |
202 |
372 // |
203 |
373 void HbMainWindow::nextView( ) |
204 // ----------------------------------------------------------------------------- |
374 { |
205 // HbMainWindow::backgroundImageName |
375 SMC_MOCK_METHOD0( void ) |
206 // ----------------------------------------------------------------------------- |
376 } |
207 // |
377 |
208 QString HbMainWindow::backgroundImageName( |
378 |
209 Qt::Orientation orientation ) const |
379 // ----------------------------------------------------------------------------- |
210 { |
380 // HbMainWindow::previousView |
211 //SMC_MOCK_METHOD1( QString, Qt::Orientation, orientation ) |
381 // ----------------------------------------------------------------------------- |
212 Q_UNUSED(orientation) |
382 // |
213 } |
383 void HbMainWindow::previousView( ) |
214 |
384 { |
215 |
385 SMC_MOCK_METHOD0( void ) |
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 ) |
386 } |
234 } |
387 |
235 |
388 |
236 |
389 // ----------------------------------------------------------------------------- |
237 // ----------------------------------------------------------------------------- |
390 // HbMainWindow::broadcastEvent |
238 // HbMainWindow::broadcastEvent |
396 SMC_MOCK_METHOD1( void, int, eventType ) |
244 SMC_MOCK_METHOD1( void, int, eventType ) |
397 } |
245 } |
398 |
246 |
399 |
247 |
400 // ----------------------------------------------------------------------------- |
248 // ----------------------------------------------------------------------------- |
401 // HbMainWindow::toggleOrientation |
249 // HbMainWindow::viewReady |
402 // ----------------------------------------------------------------------------- |
250 // ----------------------------------------------------------------------------- |
403 // |
251 // |
404 void HbMainWindow::toggleOrientation( ) |
252 void HbMainWindow::viewReady( ) |
405 { |
253 { |
406 SMC_MOCK_METHOD0( void ) |
254 SMC_MOCK_METHOD0( void ) |
407 } |
255 } |
408 |
256 |
409 |
257 |
410 // ----------------------------------------------------------------------------- |
258 // ----------------------------------------------------------------------------- |
411 // HbMainWindow::currentViewIndexChanged |
259 // HbMainWindow::aboutToChangeView |
412 // ----------------------------------------------------------------------------- |
260 // ----------------------------------------------------------------------------- |
413 // |
261 // |
414 void HbMainWindow::currentViewIndexChanged( |
262 void HbMainWindow::aboutToChangeView( |
415 int index ) |
263 HbView * oldView, |
416 { |
264 HbView * newView ) |
417 SMC_MOCK_METHOD1( void, int, index ) |
265 { |
418 } |
266 //SMC_MOCK_METHOD2( void, HbView *, oldView, |
419 |
267 // HbView *, newView ) |
420 |
268 Q_UNUSED(oldView) |
421 // ----------------------------------------------------------------------------- |
269 Q_UNUSED(newView) |
422 // HbMainWindow::viewReady |
|
423 // ----------------------------------------------------------------------------- |
|
424 // |
|
425 void HbMainWindow::viewReady( ) |
|
426 { |
|
427 SMC_MOCK_METHOD0( void ) |
|
428 } |
270 } |
429 |
271 |
430 |
272 |
431 // ----------------------------------------------------------------------------- |
273 // ----------------------------------------------------------------------------- |
432 // HbMainWindow::currentViewChanged |
274 // HbMainWindow::currentViewChanged |