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