phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbmainwindow.cpp
changeset 45 6b911d05207e
parent 27 2f8f8080a020
equal deleted inserted replaced
37:ba76fc04e6c2 45:6b911d05207e
    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
   126 //
    75 //
   127 void HbMainWindow::removeView( 
    76 void HbMainWindow::removeView( 
   128         QGraphicsWidget * widget )
    77         QGraphicsWidget * widget )
   129     {
    78     {
   130     //SMC_MOCK_METHOD1( void, QGraphicsWidget *, widget )
    79     //SMC_MOCK_METHOD1( void, QGraphicsWidget *, widget )
       
    80     Q_UNUSED(widget)
   131     }
    81     }
   132 
    82 
   133 
    83 
   134 // -----------------------------------------------------------------------------
    84 // -----------------------------------------------------------------------------
   135 // HbMainWindow::views
    85 // HbMainWindow::views
   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 // -----------------------------------------------------------------------------
   253         Qt::Orientation orientation,
   138         Qt::Orientation orientation,
   254         bool animate )
   139         bool animate )
   255     {
   140     {
   256     //SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, 
   141     //SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, 
   257     //    bool, animate )
   142     //    bool, animate )
       
   143     Q_UNUSED(orientation)
       
   144     Q_UNUSED(animate)
   258     }
   145     }
   259 
   146 
   260 
   147 
   261 // -----------------------------------------------------------------------------
   148 // -----------------------------------------------------------------------------
   262 // HbMainWindow::unsetOrientation
   149 // HbMainWindow::unsetOrientation
   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
   434 //
   276 //
   435 void HbMainWindow::currentViewChanged( 
   277 void HbMainWindow::currentViewChanged( 
   436         HbView * view )
   278         HbView * view )
   437     {
   279     {
   438     //SMC_MOCK_METHOD1( void, HbView *, view )
   280     //SMC_MOCK_METHOD1( void, HbView *, view )
       
   281     Q_UNUSED(view)
   439     }
   282     }
   440 
   283 
   441 
   284 
   442 // -----------------------------------------------------------------------------
   285 // -----------------------------------------------------------------------------
   443 // HbMainWindow::aboutToChangeOrientation
   286 // HbMainWindow::aboutToChangeOrientation
   457         Qt::Orientation newOrientation,
   300         Qt::Orientation newOrientation,
   458         bool animated )
   301         bool animated )
   459     {
   302     {
   460     //SMC_MOCK_METHOD2( void, Qt::Orientation, newOrientation, 
   303     //SMC_MOCK_METHOD2( void, Qt::Orientation, newOrientation, 
   461     //    bool, animated )
   304     //    bool, animated )
       
   305     Q_UNUSED(newOrientation)
       
   306     Q_UNUSED(animated)
   462     }
   307     }
   463 
   308 
   464 
   309 
   465 // -----------------------------------------------------------------------------
   310 // -----------------------------------------------------------------------------
   466 // HbMainWindow::orientationChanged
   311 // HbMainWindow::orientationChanged
   468 //
   313 //
   469 void HbMainWindow::orientationChanged( 
   314 void HbMainWindow::orientationChanged( 
   470         Qt::Orientation orientation )
   315         Qt::Orientation orientation )
   471     {
   316     {
   472     //SMC_MOCK_METHOD1( void, Qt::Orientation, orientation )
   317     //SMC_MOCK_METHOD1( void, Qt::Orientation, orientation )
       
   318     Q_UNUSED(orientation)
   473     }
   319     }
   474 
   320 
   475 
   321 
   476 // -----------------------------------------------------------------------------
   322 // -----------------------------------------------------------------------------
   477 // HbMainWindow::changeEvent
   323 // HbMainWindow::changeEvent
   479 //
   325 //
   480 void HbMainWindow::changeEvent( 
   326 void HbMainWindow::changeEvent( 
   481         QEvent * event )
   327         QEvent * event )
   482     {
   328     {
   483     //SMC_MOCK_METHOD1( void, QEvent *, event )
   329     //SMC_MOCK_METHOD1( void, QEvent *, event )
       
   330     Q_UNUSED(event)
   484     }
   331     }
   485 
   332 
   486 
   333 
   487 // -----------------------------------------------------------------------------
   334 // -----------------------------------------------------------------------------
   488 // HbMainWindow::closeEvent
   335 // HbMainWindow::closeEvent
   490 //
   337 //
   491 void HbMainWindow::closeEvent( 
   338 void HbMainWindow::closeEvent( 
   492         QCloseEvent * event )
   339         QCloseEvent * event )
   493     {
   340     {
   494     //SMC_MOCK_METHOD1( void, QCloseEvent *, event )
   341     //SMC_MOCK_METHOD1( void, QCloseEvent *, event )
       
   342     Q_UNUSED(event)
   495     }
   343     }
   496 
   344 
   497 
   345 
   498 // -----------------------------------------------------------------------------
   346 // -----------------------------------------------------------------------------
   499 // HbMainWindow::keyPressEvent
   347 // HbMainWindow::keyPressEvent
   501 //
   349 //
   502 void HbMainWindow::keyPressEvent( 
   350 void HbMainWindow::keyPressEvent( 
   503         QKeyEvent * event )
   351         QKeyEvent * event )
   504     {
   352     {
   505     //SMC_MOCK_METHOD1( void, QKeyEvent *, event )
   353     //SMC_MOCK_METHOD1( void, QKeyEvent *, event )
       
   354     Q_UNUSED(event)
   506     }
   355     }
   507 
   356 
   508 
   357 
   509 // -----------------------------------------------------------------------------
   358 // -----------------------------------------------------------------------------
   510 // HbMainWindow::keyReleaseEvent
   359 // HbMainWindow::keyReleaseEvent
   512 //
   361 //
   513 void HbMainWindow::keyReleaseEvent( 
   362 void HbMainWindow::keyReleaseEvent( 
   514         QKeyEvent * event )
   363         QKeyEvent * event )
   515     {
   364     {
   516     //SMC_MOCK_METHOD1( void, QKeyEvent *, event )
   365     //SMC_MOCK_METHOD1( void, QKeyEvent *, event )
       
   366     Q_UNUSED(event)
   517     }
   367     }
   518 
   368 
   519 
   369 
   520 // -----------------------------------------------------------------------------
   370 // -----------------------------------------------------------------------------
   521 // HbMainWindow::resizeEvent
   371 // HbMainWindow::resizeEvent
   523 //
   373 //
   524 void HbMainWindow::resizeEvent( 
   374 void HbMainWindow::resizeEvent( 
   525         QResizeEvent * event )
   375         QResizeEvent * event )
   526     {
   376     {
   527     //SMC_MOCK_METHOD1( void, QResizeEvent *, event )
   377     //SMC_MOCK_METHOD1( void, QResizeEvent *, event )
       
   378     Q_UNUSED(event)
   528     }
   379     }
   529 
   380 
   530 
   381 
   531 // -----------------------------------------------------------------------------
   382 // -----------------------------------------------------------------------------
   532 // HbMainWindow::customEvent
   383 // HbMainWindow::customEvent
   534 //
   385 //
   535 void HbMainWindow::customEvent( 
   386 void HbMainWindow::customEvent( 
   536         QEvent * event )
   387         QEvent * event )
   537     {
   388     {
   538     //SMC_MOCK_METHOD1( void, QEvent *, event )
   389     //SMC_MOCK_METHOD1( void, QEvent *, event )
       
   390     Q_UNUSED(event)
   539     }
   391     }
   540 
   392 
   541 
   393 
   542 // -----------------------------------------------------------------------------
   394 // -----------------------------------------------------------------------------
   543 // HbMainWindow::scrollContentsBy
   395 // HbMainWindow::scrollContentsBy
   558 //
   410 //
   559 void HbMainWindow::paintEvent( 
   411 void HbMainWindow::paintEvent( 
   560         QPaintEvent * event )
   412         QPaintEvent * event )
   561     {
   413     {
   562     //SMC_MOCK_METHOD1( void, QPaintEvent *, event )
   414     //SMC_MOCK_METHOD1( void, QPaintEvent *, event )
   563     }
   415     Q_UNUSED(event)
   564 
   416     }
   565 
   417 
       
   418