phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidget.cpp
changeset 45 6b911d05207e
child 46 bc5a64e5bc3c
equal deleted inserted replaced
37:ba76fc04e6c2 45:6b911d05207e
       
     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 <hbanchorlayout.h>
       
    20 #include <hbwidget.h>
       
    21 #include <hbiconitem.h>
       
    22 #include <hbmarqueeitem.h>
       
    23 #include <hbfontspec.h>
       
    24 #include <hbdialog.h>
       
    25 #include <hblabel.h>
       
    26 #include <hbaction.h>
       
    27 #include <hbcheckbox.h>
       
    28 #include <hbpushbutton.h>
       
    29 #include <QPainter>
       
    30 #include <QPainterPath>
       
    31 #include <QBrush>
       
    32 #include <QGraphicsLinearLayout>
       
    33 #include <QGraphicsSceneMouseEvent>
       
    34 #include "infowidget.h"
       
    35 
       
    36 // ============================ MEMBER FUNCTIONS ===============================
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // InfoWidget::InfoWidget
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 InfoWidget::InfoWidget( 
       
    43         QGraphicsItem * parent,
       
    44         Qt::WindowFlags flags )
       
    45     : HbWidget(parent, flags)
       
    46     {
       
    47     
       
    48     }
       
    49 
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // InfoWidget::~InfoWidget
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 InfoWidget::~InfoWidget(  )
       
    56     {
       
    57     
       
    58     }
       
    59 
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // InfoWidget::boundingRect
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 QRectF InfoWidget::boundingRect(  ) const
       
    66     {
       
    67     SMC_MOCK_METHOD0( QRectF )
       
    68     }
       
    69 
       
    70 
       
    71 // -----------------------------------------------------------------------------
       
    72 // InfoWidget::sizeHint
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 QSizeF InfoWidget::sizeHint( 
       
    76         Qt::SizeHint which,
       
    77         const QSizeF & constraint ) const
       
    78     {
       
    79     SMC_MOCK_METHOD2( QSizeF, Qt::SizeHint, which, 
       
    80         const QSizeF &, constraint )
       
    81     }
       
    82 
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // InfoWidget::sizePolicy
       
    86 // -----------------------------------------------------------------------------
       
    87 //
       
    88 QSizePolicy InfoWidget::sizePolicy(  ) const
       
    89     {
       
    90     SMC_MOCK_METHOD0( QSizePolicy )
       
    91     }
       
    92 
       
    93 
       
    94 // -----------------------------------------------------------------------------
       
    95 // InfoWidget::homeZoneDisplay
       
    96 // -----------------------------------------------------------------------------
       
    97 //
       
    98 QString InfoWidget::homeZoneDisplay()
       
    99     {
       
   100     SMC_MOCK_METHOD0( QString );
       
   101     }
       
   102 
       
   103 
       
   104 // -----------------------------------------------------------------------------
       
   105 // InfoWidget::setHomeZoneDisplay
       
   106 // -----------------------------------------------------------------------------
       
   107 //
       
   108 void InfoWidget::setHomeZoneDisplay( 
       
   109         QString value )
       
   110     {
       
   111     SMC_MOCK_METHOD1( void, QString, value )
       
   112     }
       
   113 
       
   114 
       
   115 // -----------------------------------------------------------------------------
       
   116 // InfoWidget::mcnDisplay
       
   117 // -----------------------------------------------------------------------------
       
   118 //
       
   119 QString InfoWidget::mcnDisplay(  )
       
   120     {
       
   121     SMC_MOCK_METHOD0( QString )
       
   122     }
       
   123 
       
   124 
       
   125 // -----------------------------------------------------------------------------
       
   126 // InfoWidget::setMcnDisplay
       
   127 // -----------------------------------------------------------------------------
       
   128 //
       
   129 void InfoWidget::setMcnDisplay( 
       
   130         QString value )
       
   131     {
       
   132     SMC_MOCK_METHOD1( void, QString, value )
       
   133     }
       
   134 
       
   135 
       
   136 // -----------------------------------------------------------------------------
       
   137 // InfoWidget::activeLineDisplay
       
   138 // -----------------------------------------------------------------------------
       
   139 //
       
   140 QString InfoWidget::activeLineDisplay(  )
       
   141     {
       
   142     SMC_MOCK_METHOD0( QString )
       
   143     }
       
   144 
       
   145 
       
   146 // -----------------------------------------------------------------------------
       
   147 // InfoWidget::setActiveLineDisplay
       
   148 // -----------------------------------------------------------------------------
       
   149 //
       
   150 void InfoWidget::setActiveLineDisplay( 
       
   151         QString value )
       
   152     {
       
   153     SMC_MOCK_METHOD1( void, QString, value )
       
   154     }
       
   155 
       
   156 
       
   157 // -----------------------------------------------------------------------------
       
   158 // InfoWidget::satDisplay
       
   159 // -----------------------------------------------------------------------------
       
   160 //
       
   161 QString InfoWidget::satDisplay(  )
       
   162     {
       
   163     SMC_MOCK_METHOD0( QString )
       
   164     }
       
   165 
       
   166 
       
   167 // -----------------------------------------------------------------------------
       
   168 // InfoWidget::setSatDisplay
       
   169 // -----------------------------------------------------------------------------
       
   170 //
       
   171 void InfoWidget::setSatDisplay( 
       
   172         QString value )
       
   173     {
       
   174     SMC_MOCK_METHOD1( void, QString, value )
       
   175     }
       
   176 
       
   177 
       
   178 // -----------------------------------------------------------------------------
       
   179 // InfoWidget::spnDisplay
       
   180 // -----------------------------------------------------------------------------
       
   181 //
       
   182 QString InfoWidget::spnDisplay(  )
       
   183     {
       
   184     SMC_MOCK_METHOD0( QString )
       
   185     }
       
   186 
       
   187 
       
   188 // -----------------------------------------------------------------------------
       
   189 // InfoWidget::setSpnDisplay
       
   190 // -----------------------------------------------------------------------------
       
   191 //
       
   192 void InfoWidget::setSpnDisplay( 
       
   193         QString value )
       
   194     {
       
   195     SMC_MOCK_METHOD1( void, QString, value )
       
   196     }
       
   197 
       
   198 
       
   199 // -----------------------------------------------------------------------------
       
   200 // InfoWidget::onInitialize
       
   201 // -----------------------------------------------------------------------------
       
   202 //
       
   203 void InfoWidget::onInitialize(  )
       
   204     {
       
   205     SMC_MOCK_METHOD0( void )
       
   206     }
       
   207 
       
   208 
       
   209 // -----------------------------------------------------------------------------
       
   210 // InfoWidget::onUninitialize
       
   211 // -----------------------------------------------------------------------------
       
   212 //
       
   213 void InfoWidget::onUninitialize(  )
       
   214     {
       
   215     SMC_MOCK_METHOD0( void )
       
   216     }
       
   217 
       
   218 
       
   219 // -----------------------------------------------------------------------------
       
   220 // InfoWidget::onShow
       
   221 // -----------------------------------------------------------------------------
       
   222 //
       
   223 void InfoWidget::onShow(  )
       
   224     {
       
   225     SMC_MOCK_METHOD0( void )
       
   226     }
       
   227 
       
   228 
       
   229 // -----------------------------------------------------------------------------
       
   230 // InfoWidget::onHide
       
   231 // -----------------------------------------------------------------------------
       
   232 //
       
   233 void InfoWidget::onHide(  )
       
   234     {
       
   235     SMC_MOCK_METHOD0( void )
       
   236     }
       
   237 
       
   238 
       
   239 // -----------------------------------------------------------------------------
       
   240 // InfoWidget::readModel
       
   241 // -----------------------------------------------------------------------------
       
   242 //
       
   243 void InfoWidget::readModel(  )
       
   244     {
       
   245     SMC_MOCK_METHOD0( void )
       
   246     }
       
   247 
       
   248 
       
   249 // -----------------------------------------------------------------------------
       
   250 // InfoWidget::handleModelError
       
   251 // -----------------------------------------------------------------------------
       
   252 //
       
   253 void InfoWidget::handleModelError( 
       
   254         int operation,
       
   255         int errorCode )
       
   256     {
       
   257     SMC_MOCK_METHOD2( void, int, operation, 
       
   258         int, errorCode )
       
   259     }
       
   260 
       
   261 
       
   262 // -----------------------------------------------------------------------------
       
   263 // InfoWidget::spnDisplaySettingChanged
       
   264 // -----------------------------------------------------------------------------
       
   265 //
       
   266 void InfoWidget::spnDisplaySettingChanged( 
       
   267         int state )
       
   268     {
       
   269     SMC_MOCK_METHOD1( void, int, state )
       
   270     }
       
   271 
       
   272 
       
   273 // -----------------------------------------------------------------------------
       
   274 // InfoWidget::mcnDisplaySettingChanged
       
   275 // -----------------------------------------------------------------------------
       
   276 //
       
   277 void InfoWidget::mcnDisplaySettingChanged( 
       
   278         int state )
       
   279     {
       
   280     SMC_MOCK_METHOD1( void, int, state )
       
   281     }
       
   282 
       
   283 
       
   284 // -----------------------------------------------------------------------------
       
   285 // InfoWidget::satDisplaySettingChanged
       
   286 // -----------------------------------------------------------------------------
       
   287 //
       
   288 void InfoWidget::satDisplaySettingChanged( 
       
   289         int state )
       
   290     {
       
   291     SMC_MOCK_METHOD1( void, int, state )
       
   292     }
       
   293 
       
   294 
       
   295 // -----------------------------------------------------------------------------
       
   296 // InfoWidget::settingsEditingFinished
       
   297 // -----------------------------------------------------------------------------
       
   298 //
       
   299 void InfoWidget::settingsEditingFinished(  )
       
   300     {
       
   301     SMC_MOCK_METHOD0( void )
       
   302     }
       
   303 
       
   304 
       
   305 // -----------------------------------------------------------------------------
       
   306 // InfoWidget::settingsEditingCancelled
       
   307 // -----------------------------------------------------------------------------
       
   308 //
       
   309 void InfoWidget::settingsEditingCancelled(  )
       
   310     {
       
   311     SMC_MOCK_METHOD0( void )
       
   312     }
       
   313 
       
   314 
       
   315 // -----------------------------------------------------------------------------
       
   316 // InfoWidget::settingsValidationFailed
       
   317 // -----------------------------------------------------------------------------
       
   318 //
       
   319 void InfoWidget::settingsValidationFailed(  )
       
   320     {
       
   321     SMC_MOCK_METHOD0( void )
       
   322     }
       
   323 
       
   324 
       
   325 // -----------------------------------------------------------------------------
       
   326 // InfoWidget::settingsDialogClosed
       
   327 // -----------------------------------------------------------------------------
       
   328 //
       
   329 void InfoWidget::settingsDialogClosed( 
       
   330         HbAction * action )
       
   331     {
       
   332     //SMC_MOCK_METHOD1( void, HbAction *, action )
       
   333     }
       
   334 
       
   335 
       
   336 // -----------------------------------------------------------------------------
       
   337 // InfoWidget::startMarquees
       
   338 // -----------------------------------------------------------------------------
       
   339 //
       
   340 bool InfoWidget::startMarquees( 
       
   341         AnimationStartDelay delay )
       
   342     {
       
   343     SMC_MOCK_METHOD1( bool, AnimationStartDelay, delay )
       
   344     }
       
   345 
       
   346 
       
   347 // -----------------------------------------------------------------------------
       
   348 // InfoWidget::stopMarquees
       
   349 // -----------------------------------------------------------------------------
       
   350 //
       
   351 void InfoWidget::stopMarquees(  )
       
   352     {
       
   353     SMC_MOCK_METHOD0( void )
       
   354     }
       
   355 
       
   356 
       
   357 // -----------------------------------------------------------------------------
       
   358 // InfoWidget::marqueeNext
       
   359 // -----------------------------------------------------------------------------
       
   360 //
       
   361 void InfoWidget::marqueeNext(  )
       
   362     {
       
   363     SMC_MOCK_METHOD0( void )
       
   364     }
       
   365 
       
   366 
       
   367 
       
   368 // -----------------------------------------------------------------------------
       
   369 // InfoWidget::mousePressEvent
       
   370 // -----------------------------------------------------------------------------
       
   371 //
       
   372 void InfoWidget::mousePressEvent( 
       
   373         QGraphicsSceneMouseEvent * event )
       
   374     {
       
   375     SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event )
       
   376     }
       
   377 
       
   378 
       
   379 // -----------------------------------------------------------------------------
       
   380 // InfoWidget::mouseReleaseEvent
       
   381 // -----------------------------------------------------------------------------
       
   382 //
       
   383 void InfoWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
       
   384     {
       
   385     SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event )    
       
   386     }
       
   387 
       
   388 
       
   389 // -----------------------------------------------------------------------------
       
   390 // InfoWidget::mouseMoveEvent
       
   391 // -----------------------------------------------------------------------------
       
   392 //
       
   393 void InfoWidget::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
       
   394     {
       
   395     SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event )
       
   396     }
       
   397 
       
   398 
       
   399 // -----------------------------------------------------------------------------
       
   400 // InfoWidget::changeEvent
       
   401 // -----------------------------------------------------------------------------
       
   402 //
       
   403 void InfoWidget::changeEvent( 
       
   404         QEvent * event )
       
   405     {
       
   406     SMC_MOCK_METHOD1( void, QEvent *, event )
       
   407     }
       
   408 
       
   409 
       
   410 // -----------------------------------------------------------------------------
       
   411 // InfoWidget::timerEvent
       
   412 // -----------------------------------------------------------------------------
       
   413 //
       
   414 void InfoWidget::timerEvent( 
       
   415         QTimerEvent * event )
       
   416     {
       
   417     SMC_MOCK_METHOD1( void, QTimerEvent *, event )
       
   418     }
       
   419 
       
   420 
       
   421 // -----------------------------------------------------------------------------
       
   422 // InfoWidget::updateInfoDisplay
       
   423 // -----------------------------------------------------------------------------
       
   424 //
       
   425 void InfoWidget::updateInfoDisplay(  )
       
   426     {
       
   427     SMC_MOCK_METHOD0( void )
       
   428     }
       
   429 
       
   430 
       
   431 // -----------------------------------------------------------------------------
       
   432 // InfoWidget::readPersistentPreferences
       
   433 // -----------------------------------------------------------------------------
       
   434 //
       
   435 bool InfoWidget::readPersistentPreferences(  )
       
   436     {
       
   437     SMC_MOCK_METHOD0( bool )
       
   438     }
       
   439 
       
   440 
       
   441 // -----------------------------------------------------------------------------
       
   442 // InfoWidget::initializeCheckBoxStates
       
   443 // -----------------------------------------------------------------------------
       
   444 //
       
   445 void InfoWidget::initializeCheckBoxStates(  )
       
   446     {
       
   447     SMC_MOCK_METHOD0( void )
       
   448     }
       
   449 
       
   450 
       
   451 // -----------------------------------------------------------------------------
       
   452 // InfoWidget::installTranslator
       
   453 // -----------------------------------------------------------------------------
       
   454 //
       
   455 bool InfoWidget::installTranslator( 
       
   456         QString translationFile )
       
   457     {
       
   458     SMC_MOCK_METHOD1( bool, QString, translationFile )
       
   459     }
       
   460 
       
   461 
       
   462 // -----------------------------------------------------------------------------
       
   463 // InfoWidget::removeTranslators
       
   464 // -----------------------------------------------------------------------------
       
   465 //
       
   466 void InfoWidget::removeTranslators(  )
       
   467     {
       
   468     SMC_MOCK_METHOD0( void )
       
   469     }
       
   470 
       
   471