phoneengine/phoneservices/tsrc/shared/mock_hbdevicemessagebox.cpp
changeset 46 bc5a64e5bc3c
child 78 baacf668fe89
equal deleted inserted replaced
45:6b911d05207e 46:bc5a64e5bc3c
       
     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 <hbdevicemessagebox.h>
       
    20 #include <QAction>
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // HbDeviceMessageBox::HbDeviceMessageBox
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 HbDeviceMessageBox::HbDeviceMessageBox( 
       
    29         HbMessageBox::MessageBoxType type,
       
    30         QObject * parent )
       
    31     :
       
    32     QObject(parent)
       
    33     {
       
    34     Q_UNUSED(type)
       
    35     }
       
    36 
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // HbDeviceMessageBox::HbDeviceMessageBox
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 HbDeviceMessageBox::HbDeviceMessageBox( 
       
    43         const QString & text,
       
    44         HbMessageBox::MessageBoxType type,
       
    45         QObject * parent )
       
    46     :
       
    47     QObject(parent)
       
    48     {
       
    49     Q_UNUSED(text)
       
    50     Q_UNUSED(type)
       
    51     }
       
    52 
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // HbDeviceMessageBox::~HbDeviceMessageBox
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 HbDeviceMessageBox::~HbDeviceMessageBox(  )
       
    59     {
       
    60     
       
    61     }
       
    62 
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // HbDeviceMessageBox::question
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 bool HbDeviceMessageBox::question( 
       
    69         const QString & text,
       
    70         const QString & acceptButtonText,
       
    71         const QString & rejectButtonText )
       
    72     {
       
    73     SMC_MOCK_METHOD3( bool, const QString &, text, 
       
    74         const QString &, acceptButtonText, 
       
    75         const QString &, rejectButtonText )
       
    76     }
       
    77 
       
    78 
       
    79 // -----------------------------------------------------------------------------
       
    80 // HbDeviceMessageBox::information
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 void HbDeviceMessageBox::information( 
       
    84         const QString & text )
       
    85     {
       
    86     SMC_MOCK_METHOD1( void, const QString &, text )
       
    87     }
       
    88 
       
    89 
       
    90 // -----------------------------------------------------------------------------
       
    91 // HbDeviceMessageBox::warning
       
    92 // -----------------------------------------------------------------------------
       
    93 //
       
    94 void HbDeviceMessageBox::warning( 
       
    95         const QString & text )
       
    96     {
       
    97     SMC_MOCK_METHOD1( void, const QString &, text )
       
    98     }
       
    99 
       
   100 
       
   101 // -----------------------------------------------------------------------------
       
   102 // HbDeviceMessageBox::show
       
   103 // -----------------------------------------------------------------------------
       
   104 //
       
   105 void HbDeviceMessageBox::show(  )
       
   106     {
       
   107     SMC_MOCK_METHOD0( void )
       
   108     }
       
   109 
       
   110 
       
   111 // -----------------------------------------------------------------------------
       
   112 // HbDeviceMessageBox::update
       
   113 // -----------------------------------------------------------------------------
       
   114 //
       
   115 void HbDeviceMessageBox::update(  )
       
   116     {
       
   117     SMC_MOCK_METHOD0( void )
       
   118     }
       
   119 
       
   120 
       
   121 // -----------------------------------------------------------------------------
       
   122 // HbDeviceMessageBox::close
       
   123 // -----------------------------------------------------------------------------
       
   124 //
       
   125 void HbDeviceMessageBox::close(  )
       
   126     {
       
   127     SMC_MOCK_METHOD0( void )
       
   128     }
       
   129 
       
   130 
       
   131 // -----------------------------------------------------------------------------
       
   132 // HbDeviceMessageBox::exec
       
   133 // -----------------------------------------------------------------------------
       
   134 //
       
   135 const QAction * HbDeviceMessageBox::exec(  )
       
   136     {
       
   137     SMC_MOCK_METHOD0( const QAction * )
       
   138     }
       
   139 
       
   140 
       
   141 // -----------------------------------------------------------------------------
       
   142 // HbDeviceMessageBox::triggeredAction
       
   143 // -----------------------------------------------------------------------------
       
   144 //
       
   145 const QAction * HbDeviceMessageBox::triggeredAction(  ) const
       
   146     {
       
   147     SMC_MOCK_METHOD0( const QAction * )
       
   148     }
       
   149 
       
   150 
       
   151 // -----------------------------------------------------------------------------
       
   152 // HbDeviceMessageBox::isAcceptAction
       
   153 // -----------------------------------------------------------------------------
       
   154 //
       
   155 bool HbDeviceMessageBox::isAcceptAction( 
       
   156         const QAction * qAction ) const
       
   157     {
       
   158     SMC_MOCK_METHOD1( bool, const QAction *, qAction )
       
   159     }
       
   160 
       
   161 
       
   162 // -----------------------------------------------------------------------------
       
   163 // HbDeviceMessageBox::setMessageBoxType
       
   164 // -----------------------------------------------------------------------------
       
   165 //
       
   166 void HbDeviceMessageBox::setMessageBoxType( 
       
   167         HbMessageBox::MessageBoxType type )
       
   168     {
       
   169     SMC_MOCK_METHOD1( void, HbMessageBox::MessageBoxType, type )
       
   170     }
       
   171 
       
   172 
       
   173 // -----------------------------------------------------------------------------
       
   174 // HbDeviceMessageBox::messageBoxType
       
   175 // -----------------------------------------------------------------------------
       
   176 //
       
   177 HbMessageBox::MessageBoxType HbDeviceMessageBox::messageBoxType(  ) const
       
   178     {
       
   179     SMC_MOCK_METHOD0( HbMessageBox::MessageBoxType )
       
   180     }
       
   181 
       
   182 
       
   183 // -----------------------------------------------------------------------------
       
   184 // HbDeviceMessageBox::setText
       
   185 // -----------------------------------------------------------------------------
       
   186 //
       
   187 void HbDeviceMessageBox::setText( 
       
   188         const QString & text )
       
   189     {
       
   190     SMC_MOCK_METHOD1( void, const QString &, text )
       
   191     }
       
   192 
       
   193 
       
   194 // -----------------------------------------------------------------------------
       
   195 // HbDeviceMessageBox::text
       
   196 // -----------------------------------------------------------------------------
       
   197 //
       
   198 QString HbDeviceMessageBox::text(  ) const
       
   199     {
       
   200     SMC_MOCK_METHOD0( QString )
       
   201     }
       
   202 
       
   203 
       
   204 // -----------------------------------------------------------------------------
       
   205 // HbDeviceMessageBox::setIconName
       
   206 // -----------------------------------------------------------------------------
       
   207 //
       
   208 void HbDeviceMessageBox::setIconName( 
       
   209         const QString & iconName )
       
   210     {
       
   211     SMC_MOCK_METHOD1( void, const QString &, iconName )
       
   212     }
       
   213 
       
   214 
       
   215 // -----------------------------------------------------------------------------
       
   216 // HbDeviceMessageBox::iconName
       
   217 // -----------------------------------------------------------------------------
       
   218 //
       
   219 QString HbDeviceMessageBox::iconName(  ) const
       
   220     {
       
   221     SMC_MOCK_METHOD0( QString )
       
   222     }
       
   223 
       
   224 
       
   225 // -----------------------------------------------------------------------------
       
   226 // HbDeviceMessageBox::setIconVisible
       
   227 // -----------------------------------------------------------------------------
       
   228 //
       
   229 void HbDeviceMessageBox::setIconVisible( 
       
   230         bool visible )
       
   231     {
       
   232     SMC_MOCK_METHOD1( void, bool, visible )
       
   233     }
       
   234 
       
   235 
       
   236 // -----------------------------------------------------------------------------
       
   237 // HbDeviceMessageBox::iconVisible
       
   238 // -----------------------------------------------------------------------------
       
   239 //
       
   240 bool HbDeviceMessageBox::iconVisible(  ) const
       
   241     {
       
   242     SMC_MOCK_METHOD0( bool )
       
   243     }
       
   244 
       
   245 
       
   246 // -----------------------------------------------------------------------------
       
   247 // HbDeviceMessageBox::setAnimationDefinition
       
   248 // -----------------------------------------------------------------------------
       
   249 //
       
   250 void HbDeviceMessageBox::setAnimationDefinition( 
       
   251         QString & animationDefinition )
       
   252     {
       
   253     SMC_MOCK_METHOD1( void, QString &, animationDefinition )
       
   254     }
       
   255 
       
   256 
       
   257 // -----------------------------------------------------------------------------
       
   258 // HbDeviceMessageBox::animationDefinition
       
   259 // -----------------------------------------------------------------------------
       
   260 //
       
   261 QString HbDeviceMessageBox::animationDefinition(  ) const
       
   262     {
       
   263     SMC_MOCK_METHOD0( QString )
       
   264     }
       
   265 
       
   266 
       
   267 // -----------------------------------------------------------------------------
       
   268 // HbDeviceMessageBox::setTimeout
       
   269 // -----------------------------------------------------------------------------
       
   270 //
       
   271 void HbDeviceMessageBox::setTimeout( 
       
   272         int timeout )
       
   273     {
       
   274     SMC_MOCK_METHOD1( void, int, timeout )
       
   275     }
       
   276 
       
   277 
       
   278 // -----------------------------------------------------------------------------
       
   279 // HbDeviceMessageBox::setTimeout
       
   280 // -----------------------------------------------------------------------------
       
   281 //
       
   282 void HbDeviceMessageBox::setTimeout( 
       
   283         HbPopup::DefaultTimeout timeout )
       
   284     {
       
   285     SMC_MOCK_METHOD1( void, HbPopup::DefaultTimeout, timeout )
       
   286     }
       
   287 
       
   288 
       
   289 // -----------------------------------------------------------------------------
       
   290 // HbDeviceMessageBox::timeout
       
   291 // -----------------------------------------------------------------------------
       
   292 //
       
   293 int HbDeviceMessageBox::timeout(  ) const
       
   294     {
       
   295     SMC_MOCK_METHOD0( int )
       
   296     }
       
   297 
       
   298 
       
   299 // -----------------------------------------------------------------------------
       
   300 // HbDeviceMessageBox::setDismissPolicy
       
   301 // -----------------------------------------------------------------------------
       
   302 //
       
   303 void HbDeviceMessageBox::setDismissPolicy( 
       
   304         HbPopup::DismissPolicy dismissPolicy )
       
   305     {
       
   306     SMC_MOCK_METHOD1( void, HbPopup::DismissPolicy, dismissPolicy )
       
   307     }
       
   308 
       
   309 
       
   310 // -----------------------------------------------------------------------------
       
   311 // HbDeviceMessageBox::dismissPolicy
       
   312 // -----------------------------------------------------------------------------
       
   313 //
       
   314 HbPopup::DismissPolicy HbDeviceMessageBox::dismissPolicy(  ) const
       
   315     {
       
   316     SMC_MOCK_METHOD0( HbPopup::DismissPolicy )
       
   317     }
       
   318 
       
   319 
       
   320 // -----------------------------------------------------------------------------
       
   321 // HbDeviceMessageBox::setAction
       
   322 // -----------------------------------------------------------------------------
       
   323 //
       
   324 void HbDeviceMessageBox::setAction( 
       
   325         QAction * qAction,
       
   326         ActionRole role )
       
   327     {
       
   328     SMC_MOCK_METHOD2( void, 
       
   329         QAction *, qAction, 
       
   330         ActionRole, role )
       
   331     }
       
   332 
       
   333 
       
   334 // -----------------------------------------------------------------------------
       
   335 // HbDeviceMessageBox::action
       
   336 // -----------------------------------------------------------------------------
       
   337 //
       
   338 QAction * HbDeviceMessageBox::action( 
       
   339         ActionRole role ) const
       
   340     {
       
   341     SMC_MOCK_METHOD1( QAction *, ActionRole, role )
       
   342     }
       
   343 
       
   344 
       
   345 // -----------------------------------------------------------------------------
       
   346 // HbDeviceMessageBox::aboutToClose
       
   347 // -----------------------------------------------------------------------------
       
   348 //
       
   349 void HbDeviceMessageBox::aboutToClose(  )
       
   350     {
       
   351     SMC_MOCK_METHOD0( void )
       
   352     }
       
   353 
       
   354