phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidget.cpp
branchRCL_3
changeset 61 41a7f70b3818
equal deleted inserted replaced
58:40a3f856b14d 61:41a7f70b3818
       
     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 *sss )
       
   331     {
       
   332     SMC_MOCK_METHOD1( void, HbAction *, sss )
       
   333     }
       
   334 
       
   335 
       
   336 // -----------------------------------------------------------------------------
       
   337 // InfoWidget::startMarquees
       
   338 // -----------------------------------------------------------------------------
       
   339 //
       
   340 bool InfoWidget::startMarquees()
       
   341     {
       
   342     SMC_MOCK_METHOD0( bool )
       
   343     }
       
   344 
       
   345 
       
   346 // -----------------------------------------------------------------------------
       
   347 // InfoWidget::stopMarquees
       
   348 // -----------------------------------------------------------------------------
       
   349 //
       
   350 void InfoWidget::stopMarquees(  )
       
   351     {
       
   352     SMC_MOCK_METHOD0( void )
       
   353     }
       
   354 
       
   355 
       
   356 // -----------------------------------------------------------------------------
       
   357 // InfoWidget::marqueeNext
       
   358 // -----------------------------------------------------------------------------
       
   359 //
       
   360 void InfoWidget::marqueeNext(  )
       
   361     {
       
   362     SMC_MOCK_METHOD0( void )
       
   363     }
       
   364 
       
   365 
       
   366 // -----------------------------------------------------------------------------
       
   367 // InfoWidget::gestureEvent
       
   368 // -----------------------------------------------------------------------------
       
   369 //
       
   370 void InfoWidget::gestureEvent(QGestureEvent *event)
       
   371 {
       
   372     SMC_MOCK_METHOD1( void, QGestureEvent *, event )
       
   373 }
       
   374 
       
   375 
       
   376 // -----------------------------------------------------------------------------
       
   377 // InfoWidget::changeEvent
       
   378 // -----------------------------------------------------------------------------
       
   379 //
       
   380 void InfoWidget::changeEvent( 
       
   381         QEvent * event )
       
   382     {
       
   383     SMC_MOCK_METHOD1( void, QEvent *, event )
       
   384     }
       
   385 
       
   386 
       
   387 // -----------------------------------------------------------------------------
       
   388 // InfoWidget::timerEvent
       
   389 // -----------------------------------------------------------------------------
       
   390 //
       
   391 void InfoWidget::timerEvent( 
       
   392         QTimerEvent * event )
       
   393     {
       
   394     SMC_MOCK_METHOD1( void, QTimerEvent *, event )
       
   395     }
       
   396 
       
   397 
       
   398 // -----------------------------------------------------------------------------
       
   399 // InfoWidget::updateInfoDisplay
       
   400 // -----------------------------------------------------------------------------
       
   401 //
       
   402 void InfoWidget::updateInfoDisplay(  )
       
   403     {
       
   404     SMC_MOCK_METHOD0( void )
       
   405     }
       
   406 
       
   407 
       
   408 // -----------------------------------------------------------------------------
       
   409 // InfoWidget::readPersistentPreferences
       
   410 // -----------------------------------------------------------------------------
       
   411 //
       
   412 bool InfoWidget::readPersistentPreferences(  )
       
   413     {
       
   414     SMC_MOCK_METHOD0( bool )
       
   415     }
       
   416 
       
   417 
       
   418 // -----------------------------------------------------------------------------
       
   419 // InfoWidget::initializeCheckBoxStates
       
   420 // -----------------------------------------------------------------------------
       
   421 //
       
   422 void InfoWidget::initializeCheckBoxStates(  )
       
   423     {
       
   424     SMC_MOCK_METHOD0( void )
       
   425     }
       
   426 
       
   427 /*
       
   428 // -----------------------------------------------------------------------------
       
   429 // InfoWidget::installTranslator
       
   430 // -----------------------------------------------------------------------------
       
   431 //
       
   432 bool InfoWidget::installTranslator( 
       
   433         QString translationFile )
       
   434     {
       
   435     SMC_MOCK_METHOD1( bool, QString, translationFile )
       
   436     }
       
   437 
       
   438 
       
   439 // -----------------------------------------------------------------------------
       
   440 // InfoWidget::removeTranslators
       
   441 // -----------------------------------------------------------------------------
       
   442 //
       
   443 void InfoWidget::removeTranslators(  )
       
   444     {
       
   445     SMC_MOCK_METHOD0( void )
       
   446     }
       
   447 */
       
   448