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