telutils/dialpad/tsrc/unit/shared/mock_hbmainwindow.cpp
changeset 31 a2467631ae02
parent 27 7eb70891911c
equal deleted inserted replaced
27:7eb70891911c 31:a2467631ae02
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 */
    16 */
       
    17 
       
    18 #include <QtGui>
    17 #include <QDebug>
    19 #include <QDebug>
    18 #include <smcmockclassincludes.h>
    20 #include <smcmockclassincludes.h>
    19 #include <hbmainwindow.h>
    21 #include <hbmainwindow.h>
       
    22 #include <hbview.h>
       
    23 #include <hbnamespace.h>
    20 
    24 
    21 // ============================ MEMBER FUNCTIONS ===============================
    25 // ============================ MEMBER FUNCTIONS ===============================
    22 
    26 
    23 // -----------------------------------------------------------------------------
    27 // -----------------------------------------------------------------------------
    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
    28 // HbMainWindow::~HbMainWindow
    39 // -----------------------------------------------------------------------------
    29 // -----------------------------------------------------------------------------
    40 //
    30 //
    41 HbMainWindow::~HbMainWindow(  )
    31 HbMainWindow::~HbMainWindow(  )
    42     {
    32     {
    43     
    33     
    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     }
    34     }
   100 
    35 
   101 
    36 
   102 // -----------------------------------------------------------------------------
    37 // -----------------------------------------------------------------------------
   103 // HbMainWindow::addView
    38 // HbMainWindow::addView
   104 // -----------------------------------------------------------------------------
    39 // -----------------------------------------------------------------------------
   105 //
    40 //
   106 HbView * HbMainWindow::addView( 
    41 HbView * HbMainWindow::addView( 
   107         QGraphicsWidget * widget )
    42         QGraphicsWidget * widget )
   108     {
    43     {
   109     //SMC_MOCK_METHOD1( HbView *, QGraphicsWidget *, widget )
    44     SMC_MOCK_METHOD1( HbView *, QGraphicsWidget *, widget )
   110     Q_UNUSED(widget)
    45     }
   111     }
    46 
       
    47 
   112 // -----------------------------------------------------------------------------
    48 // -----------------------------------------------------------------------------
   113 // HbMainWindow::insertView
    49 // HbMainWindow::insertView
   114 // -----------------------------------------------------------------------------
    50 // -----------------------------------------------------------------------------
   115 //
    51 //
   116 HbView * HbMainWindow::insertView( 
    52 HbView * HbMainWindow::insertView( 
   117         int index,
    53         int index,
   118         QGraphicsWidget * widget )
    54         QGraphicsWidget * widget )
   119     {
    55     {
   120     //SMC_MOCK_METHOD2( HbView *, int, index, 
    56     SMC_MOCK_METHOD2( HbView *, int, index, 
   121     //    QGraphicsWidget *, widget )
    57         QGraphicsWidget *, widget )
   122 	Q_UNUSED(index)
       
   123 	Q_UNUSED(widget)
       
   124     }
    58     }
   125 
    59 
   126 
    60 
   127 // -----------------------------------------------------------------------------
    61 // -----------------------------------------------------------------------------
   128 // HbMainWindow::removeView
    62 // HbMainWindow::removeView
   129 // -----------------------------------------------------------------------------
    63 // -----------------------------------------------------------------------------
   130 //
    64 //
   131 void HbMainWindow::removeView( 
    65 void HbMainWindow::removeView( 
   132         QGraphicsWidget * widget )
    66         QGraphicsWidget * widget )
   133     {
    67     {
   134     //SMC_MOCK_METHOD1( void, QGraphicsWidget *, widget )
    68     SMC_MOCK_METHOD1( void, QGraphicsWidget *, widget )
   135     Q_UNUSED(widget)
       
   136     }
    69     }
   137 
    70 
   138 
    71 
   139 // -----------------------------------------------------------------------------
    72 // -----------------------------------------------------------------------------
   140 // HbMainWindow::views
    73 // HbMainWindow::views
   141 // -----------------------------------------------------------------------------
    74 // -----------------------------------------------------------------------------
   142 //
    75 //
   143 QList <HbView * > HbMainWindow::views(  ) const
    76 QList <HbView * > HbMainWindow::views(  ) const
   144     {
    77     {
   145     //SMC_MOCK_METHOD0( QList <HbView * > )
    78     SMC_MOCK_METHOD0( QList <HbView * > )
   146     }
    79     }
   147 
    80 
   148 
    81 
   149 // -----------------------------------------------------------------------------
    82 // -----------------------------------------------------------------------------
   150 // HbMainWindow::currentView
    83 // HbMainWindow::currentView
   163 void HbMainWindow::setCurrentView( 
    96 void HbMainWindow::setCurrentView( 
   164         HbView * view,
    97         HbView * view,
   165         bool animate,
    98         bool animate,
   166         Hb::ViewSwitchFlags flags )
    99         Hb::ViewSwitchFlags flags )
   167     {
   100     {
   168     //SMC_MOCK_METHOD3( void, HbView *, view, 
   101     }
   169     //    bool, animate, 
       
   170     //    Hb::ViewSwitchFlags, flags )
       
   171     Q_UNUSED(view)
       
   172     Q_UNUSED(animate)
       
   173     Q_UNUSED(flags)
       
   174     }
       
   175 
       
   176 
   102 
   177 
   103 
   178 // -----------------------------------------------------------------------------
   104 // -----------------------------------------------------------------------------
   179 // HbMainWindow::orientation
   105 // HbMainWindow::orientation
   180 // -----------------------------------------------------------------------------
   106 // -----------------------------------------------------------------------------
   191 //
   117 //
   192 void HbMainWindow::setOrientation( 
   118 void HbMainWindow::setOrientation( 
   193         Qt::Orientation orientation,
   119         Qt::Orientation orientation,
   194         bool animate )
   120         bool animate )
   195     {
   121     {
   196     //SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, 
   122     SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, 
   197     //    bool, animate )
   123         bool, animate )
   198     Q_UNUSED(orientation)
       
   199     Q_UNUSED(animate)
       
   200     }
   124     }
   201 
   125 
   202 
   126 
   203 // -----------------------------------------------------------------------------
   127 // -----------------------------------------------------------------------------
   204 // HbMainWindow::unsetOrientation
   128 // HbMainWindow::unsetOrientation
   206 //
   130 //
   207 void HbMainWindow::unsetOrientation( 
   131 void HbMainWindow::unsetOrientation( 
   208         bool animate )
   132         bool animate )
   209     {
   133     {
   210     SMC_MOCK_METHOD1( void, bool, animate )
   134     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     }
   135     }
   273 
   136 
   274 
   137 
   275 // -----------------------------------------------------------------------------
   138 // -----------------------------------------------------------------------------
   276 // HbMainWindow::nativeBackgroundWindow
   139 // HbMainWindow::nativeBackgroundWindow
   308 //
   171 //
   309 void HbMainWindow::setBackgroundImageName( 
   172 void HbMainWindow::setBackgroundImageName( 
   310         Qt::Orientation orientation,
   173         Qt::Orientation orientation,
   311         const QString & name )
   174         const QString & name )
   312     {
   175     {
   313     //SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, 
   176     SMC_MOCK_METHOD2( void, Qt::Orientation, orientation, 
   314     //    const QString &, name )
   177         const QString &, name )
   315 	Q_UNUSED(orientation)
       
   316 	Q_UNUSED(name)
       
   317     }
   178     }
   318 
   179 
   319 
   180 
   320 // -----------------------------------------------------------------------------
   181 // -----------------------------------------------------------------------------
   321 // HbMainWindow::backgroundImageName
   182 // HbMainWindow::backgroundImageName
   322 // -----------------------------------------------------------------------------
   183 // -----------------------------------------------------------------------------
   323 //
   184 //
   324 QString HbMainWindow::backgroundImageName( 
   185 QString HbMainWindow::backgroundImageName( 
   325         Qt::Orientation orientation ) const
   186         Qt::Orientation orientation ) const
   326     {
   187     {
   327     //SMC_MOCK_METHOD1( QString, Qt::Orientation, orientation )
   188     SMC_MOCK_METHOD1( QString, Qt::Orientation, orientation )
   328 	Q_UNUSED(orientation)
   189     }
   329     }
   190 
   330 
   191 
   331 
   192 // -----------------------------------------------------------------------------
   332 // -----------------------------------------------------------------------------
   193 // HbMainWindow::setBackgroundImageMode
   333 // HbMainWindow::setCurrentViewIndex
   194 // -----------------------------------------------------------------------------
   334 // -----------------------------------------------------------------------------
   195 //
   335 //
   196 void HbMainWindow::setBackgroundImageMode( 
   336 void HbMainWindow::setCurrentViewIndex( 
   197         Hb::BackgroundImageMode mode )
   337         int index )
   198     {
   338     {
   199     SMC_MOCK_METHOD1( void, Hb::BackgroundImageMode, mode )
   339     SMC_MOCK_METHOD1( void, int, index )
   200     }
   340     }
   201 
   341 
   202 
   342 
   203 // -----------------------------------------------------------------------------
   343 // -----------------------------------------------------------------------------
   204 // HbMainWindow::backgroundImageMode
   344 // HbMainWindow::nextView
   205 // -----------------------------------------------------------------------------
   345 // -----------------------------------------------------------------------------
   206 //
   346 //
   207 Hb::BackgroundImageMode HbMainWindow::backgroundImageMode(  ) const
   347 void HbMainWindow::nextView(  )
   208     {
   348     {
   209     SMC_MOCK_METHOD0( Hb::BackgroundImageMode )
   349     SMC_MOCK_METHOD0( void )
   210     }
   350     }
   211 
   351 
   212 
   352 
   213 // -----------------------------------------------------------------------------
   353 // -----------------------------------------------------------------------------
   214 // HbMainWindow::setAutomaticOrientationEffectEnabled
   354 // HbMainWindow::previousView
   215 // -----------------------------------------------------------------------------
   355 // -----------------------------------------------------------------------------
   216 //
   356 //
   217 void HbMainWindow::setAutomaticOrientationEffectEnabled( 
   357 void HbMainWindow::previousView(  )
   218         bool enabled )
   358     {
   219     {
   359     SMC_MOCK_METHOD0( void )
   220     SMC_MOCK_METHOD1( void, bool, enabled )
       
   221     }
       
   222 
       
   223 
       
   224 // -----------------------------------------------------------------------------
       
   225 // HbMainWindow::automaticOrientationEffectEnabled
       
   226 // -----------------------------------------------------------------------------
       
   227 //
       
   228 bool HbMainWindow::automaticOrientationEffectEnabled(  ) const
       
   229     {
       
   230     SMC_MOCK_METHOD0( bool )
   360     }
   231     }
   361 
   232 
   362 
   233 
   363 // -----------------------------------------------------------------------------
   234 // -----------------------------------------------------------------------------
   364 // HbMainWindow::broadcastEvent
   235 // HbMainWindow::broadcastEvent
   366 //
   237 //
   367 void HbMainWindow::broadcastEvent( 
   238 void HbMainWindow::broadcastEvent( 
   368         int eventType )
   239         int eventType )
   369     {
   240     {
   370     SMC_MOCK_METHOD1( void, int, eventType )
   241     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     }
   242     }
   383 
   243 
   384 
   244 
   385 // -----------------------------------------------------------------------------
   245 // -----------------------------------------------------------------------------
   386 // HbMainWindow::viewReady
   246 // HbMainWindow::viewReady
   398 //
   258 //
   399 void HbMainWindow::aboutToChangeView( 
   259 void HbMainWindow::aboutToChangeView( 
   400         HbView * oldView,
   260         HbView * oldView,
   401         HbView * newView )
   261         HbView * newView )
   402     {
   262     {
   403     //SMC_MOCK_METHOD2( void, HbView *, oldView, 
   263     SMC_MOCK_METHOD2( void, HbView *, oldView, 
   404     //    HbView *, newView )
   264         HbView *, newView )
   405 	Q_UNUSED(oldView)
       
   406 	Q_UNUSED(newView)
       
   407     }
   265     }
   408 
   266 
   409 
   267 
   410 // -----------------------------------------------------------------------------
   268 // -----------------------------------------------------------------------------
   411 // HbMainWindow::currentViewChanged
   269 // HbMainWindow::currentViewChanged
   412 // -----------------------------------------------------------------------------
   270 // -----------------------------------------------------------------------------
   413 //
   271 //
   414 void HbMainWindow::currentViewChanged( 
   272 void HbMainWindow::currentViewChanged( 
   415         HbView * view )
   273         HbView * view )
   416     {
   274     {
   417     //SMC_MOCK_METHOD1( void, HbView *, view )
   275     SMC_MOCK_METHOD1( void, HbView *, view )
   418     Q_UNUSED(view)
       
   419     }
   276     }
   420 
   277 
   421 
   278 
   422 // -----------------------------------------------------------------------------
   279 // -----------------------------------------------------------------------------
   423 // HbMainWindow::aboutToChangeOrientation
   280 // HbMainWindow::aboutToChangeOrientation
   435 //
   292 //
   436 void HbMainWindow::aboutToChangeOrientation( 
   293 void HbMainWindow::aboutToChangeOrientation( 
   437         Qt::Orientation newOrientation,
   294         Qt::Orientation newOrientation,
   438         bool animated )
   295         bool animated )
   439     {
   296     {
   440     //SMC_MOCK_METHOD2( void, Qt::Orientation, newOrientation, 
   297     SMC_MOCK_METHOD2( void, Qt::Orientation, newOrientation, 
   441     //    bool, animated )
   298         bool, animated )
   442     Q_UNUSED(newOrientation)
       
   443     Q_UNUSED(animated)
       
   444     }
   299     }
   445 
   300 
   446 
   301 
   447 // -----------------------------------------------------------------------------
   302 // -----------------------------------------------------------------------------
   448 // HbMainWindow::orientationChanged
   303 // HbMainWindow::orientationChanged
   449 // -----------------------------------------------------------------------------
   304 // -----------------------------------------------------------------------------
   450 //
   305 //
   451 void HbMainWindow::orientationChanged( 
   306 void HbMainWindow::orientationChanged( 
   452         Qt::Orientation orientation )
   307         Qt::Orientation orientation )
   453     {
   308     {
   454     //SMC_MOCK_METHOD1( void, Qt::Orientation, orientation )
   309     SMC_MOCK_METHOD1( void, Qt::Orientation, orientation )
   455     Q_UNUSED(orientation)
       
   456     }
   310     }
   457 
   311 
   458 
   312 
   459 // -----------------------------------------------------------------------------
   313 // -----------------------------------------------------------------------------
   460 // HbMainWindow::changeEvent
   314 // HbMainWindow::changeEvent
   461 // -----------------------------------------------------------------------------
   315 // -----------------------------------------------------------------------------
   462 //
   316 //
   463 void HbMainWindow::changeEvent( 
   317 void HbMainWindow::changeEvent( 
   464         QEvent * event )
   318         QEvent * event )
   465     {
   319     {
   466     //SMC_MOCK_METHOD1( void, QEvent *, event )
   320     SMC_MOCK_METHOD1( void, QEvent *, event )
   467     Q_UNUSED(event)
       
   468     }
   321     }
   469 
   322 
   470 
   323 
   471 // -----------------------------------------------------------------------------
   324 // -----------------------------------------------------------------------------
   472 // HbMainWindow::closeEvent
   325 // HbMainWindow::closeEvent
   473 // -----------------------------------------------------------------------------
   326 // -----------------------------------------------------------------------------
   474 //
   327 //
   475 void HbMainWindow::closeEvent( 
   328 void HbMainWindow::closeEvent( 
   476         QCloseEvent * event )
   329         QCloseEvent * event )
   477     {
   330     {
   478     //SMC_MOCK_METHOD1( void, QCloseEvent *, event )
   331     SMC_MOCK_METHOD1( void, QCloseEvent *, event )
   479     Q_UNUSED(event)
       
   480     }
   332     }
   481 
   333 
   482 
   334 
   483 // -----------------------------------------------------------------------------
   335 // -----------------------------------------------------------------------------
   484 // HbMainWindow::keyPressEvent
   336 // HbMainWindow::keyPressEvent
   485 // -----------------------------------------------------------------------------
   337 // -----------------------------------------------------------------------------
   486 //
   338 //
   487 void HbMainWindow::keyPressEvent( 
   339 void HbMainWindow::keyPressEvent( 
   488         QKeyEvent * event )
   340         QKeyEvent * event )
   489     {
   341     {
   490     //SMC_MOCK_METHOD1( void, QKeyEvent *, event )
   342     SMC_MOCK_METHOD1( void, QKeyEvent *, event )
   491     Q_UNUSED(event)
       
   492     }
   343     }
   493 
   344 
   494 
   345 
   495 // -----------------------------------------------------------------------------
   346 // -----------------------------------------------------------------------------
   496 // HbMainWindow::keyReleaseEvent
   347 // HbMainWindow::keyReleaseEvent
   497 // -----------------------------------------------------------------------------
   348 // -----------------------------------------------------------------------------
   498 //
   349 //
   499 void HbMainWindow::keyReleaseEvent( 
   350 void HbMainWindow::keyReleaseEvent( 
   500         QKeyEvent * event )
   351         QKeyEvent * event )
   501     {
   352     {
   502     //SMC_MOCK_METHOD1( void, QKeyEvent *, event )
   353     SMC_MOCK_METHOD1( void, QKeyEvent *, event )
   503     Q_UNUSED(event)
       
   504     }
   354     }
   505 
   355 
   506 
   356 
   507 // -----------------------------------------------------------------------------
   357 // -----------------------------------------------------------------------------
   508 // HbMainWindow::resizeEvent
   358 // HbMainWindow::resizeEvent
   509 // -----------------------------------------------------------------------------
   359 // -----------------------------------------------------------------------------
   510 //
   360 //
   511 void HbMainWindow::resizeEvent( 
   361 void HbMainWindow::resizeEvent( 
   512         QResizeEvent * event )
   362         QResizeEvent * event )
   513     {
   363     {
   514     //SMC_MOCK_METHOD1( void, QResizeEvent *, event )
   364     SMC_MOCK_METHOD1( void, QResizeEvent *, event )
   515     Q_UNUSED(event)
       
   516     }
   365     }
   517 
   366 
   518 
   367 
   519 // -----------------------------------------------------------------------------
   368 // -----------------------------------------------------------------------------
   520 // HbMainWindow::customEvent
   369 // HbMainWindow::customEvent
   521 // -----------------------------------------------------------------------------
   370 // -----------------------------------------------------------------------------
   522 //
   371 //
   523 void HbMainWindow::customEvent( 
   372 void HbMainWindow::customEvent( 
   524         QEvent * event )
   373         QEvent * event )
   525     {
   374     {
   526     //SMC_MOCK_METHOD1( void, QEvent *, event )
   375     SMC_MOCK_METHOD1( void, QEvent *, event )
   527     Q_UNUSED(event)
       
   528     }
   376     }
   529 
   377 
   530 
   378 
   531 // -----------------------------------------------------------------------------
   379 // -----------------------------------------------------------------------------
   532 // HbMainWindow::scrollContentsBy
   380 // HbMainWindow::scrollContentsBy
   546 // -----------------------------------------------------------------------------
   394 // -----------------------------------------------------------------------------
   547 //
   395 //
   548 void HbMainWindow::paintEvent( 
   396 void HbMainWindow::paintEvent( 
   549         QPaintEvent * event )
   397         QPaintEvent * event )
   550     {
   398     {
   551     //SMC_MOCK_METHOD1( void, QPaintEvent *, event )
   399     SMC_MOCK_METHOD1( void, QPaintEvent *, event )
   552     Q_UNUSED(event)
   400     }
   553     }
   401 
   554 
   402 
   555 
   403 // -----------------------------------------------------------------------------
       
   404 // HbMainWindow::showEvent
       
   405 // -----------------------------------------------------------------------------
       
   406 //
       
   407 void HbMainWindow::showEvent( 
       
   408         QShowEvent * event )
       
   409     {
       
   410     SMC_MOCK_METHOD1( void, QShowEvent *, event )
       
   411     }
       
   412 
       
   413