phoneengine/networkhandlingstarter/tsrc/mocks/mock_hbdevicemessagebox.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 45 6b911d05207e
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
     1 /* 
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
    23 // -----------------------------------------------------------------------------
    23 // -----------------------------------------------------------------------------
    24 // HbDeviceMessageBox::HbDeviceMessageBox
    24 // HbDeviceMessageBox::HbDeviceMessageBox
    25 // -----------------------------------------------------------------------------
    25 // -----------------------------------------------------------------------------
    26 //
    26 //
    27 HbDeviceMessageBox::HbDeviceMessageBox( 
    27 HbDeviceMessageBox::HbDeviceMessageBox( 
       
    28         HbMessageBox::MessageBoxType type,
       
    29         QObject * parent )
       
    30     //:
       
    31     //QObject( /*type, parent*/ )
       
    32     {
       
    33     
       
    34     }
       
    35 
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // HbDeviceMessageBox::HbDeviceMessageBox
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 HbDeviceMessageBox::HbDeviceMessageBox( 
    28         const QString & text,
    42         const QString & text,
    29         HbMessageBox::MessageBoxType type,
    43         HbMessageBox::MessageBoxType type,
    30         QObject * parent )
    44         QObject * parent )
    31     //:
    45     //:
    32     //QObject( /*text, type, parent*/ )
    46     //QObject( /*text, type, parent*/ )
    49 // HbDeviceMessageBox::question
    63 // HbDeviceMessageBox::question
    50 // -----------------------------------------------------------------------------
    64 // -----------------------------------------------------------------------------
    51 //
    65 //
    52 bool HbDeviceMessageBox::question( 
    66 bool HbDeviceMessageBox::question( 
    53         const QString & text,
    67         const QString & text,
    54         const QString & primaryButtonText,
    68         const QString & acceptButtonText,
    55         const QString & secondaryButtonText )
    69         const QString & rejectButtonText )
    56     {
    70     {
    57     SMC_MOCK_METHOD3( bool, const QString &, text, 
    71     SMC_MOCK_METHOD3( bool, const QString &, text, 
    58         const QString &, primaryButtonText, 
    72         const QString &, acceptButtonText, 
    59         const QString &, secondaryButtonText )
    73         const QString &, rejectButtonText )
    60     }
    74     }
    61 
    75 
    62 
    76 
    63 // -----------------------------------------------------------------------------
    77 // -----------------------------------------------------------------------------
    64 // HbDeviceMessageBox::information
    78 // HbDeviceMessageBox::information
    91     SMC_MOCK_METHOD0( void )
   105     SMC_MOCK_METHOD0( void )
    92     }
   106     }
    93 
   107 
    94 
   108 
    95 // -----------------------------------------------------------------------------
   109 // -----------------------------------------------------------------------------
       
   110 // HbDeviceMessageBox::update
       
   111 // -----------------------------------------------------------------------------
       
   112 //
       
   113 void HbDeviceMessageBox::update(  )
       
   114     {
       
   115     SMC_MOCK_METHOD0( void )
       
   116     }
       
   117 
       
   118 
       
   119 // -----------------------------------------------------------------------------
    96 // HbDeviceMessageBox::close
   120 // HbDeviceMessageBox::close
    97 // -----------------------------------------------------------------------------
   121 // -----------------------------------------------------------------------------
    98 //
   122 //
    99 void HbDeviceMessageBox::close(  )
   123 void HbDeviceMessageBox::close(  )
   100     {
   124     {
   104 
   128 
   105 // -----------------------------------------------------------------------------
   129 // -----------------------------------------------------------------------------
   106 // HbDeviceMessageBox::exec
   130 // HbDeviceMessageBox::exec
   107 // -----------------------------------------------------------------------------
   131 // -----------------------------------------------------------------------------
   108 //
   132 //
   109 HbAction * HbDeviceMessageBox::exec(  )
   133 const QAction * HbDeviceMessageBox::exec(  )
   110     {
   134     {
   111     SMC_MOCK_METHOD0( HbAction * )
   135     SMC_MOCK_METHOD0( const QAction * )
       
   136     }
       
   137 
       
   138 
       
   139 // -----------------------------------------------------------------------------
       
   140 // HbDeviceMessageBox::triggeredAction
       
   141 // -----------------------------------------------------------------------------
       
   142 //
       
   143 const QAction * HbDeviceMessageBox::triggeredAction(  ) const
       
   144     {
       
   145     SMC_MOCK_METHOD0( const QAction * )
       
   146     }
       
   147 
       
   148 
       
   149 // -----------------------------------------------------------------------------
       
   150 // HbDeviceMessageBox::isAcceptAction
       
   151 // -----------------------------------------------------------------------------
       
   152 //
       
   153 bool HbDeviceMessageBox::isAcceptAction( 
       
   154         const QAction * action ) const
       
   155     {
       
   156     //SMC_MOCK_METHOD1( bool, const QAction *, action )
       
   157     }
       
   158 
       
   159 
       
   160 // -----------------------------------------------------------------------------
       
   161 // HbDeviceMessageBox::setMessageBoxType
       
   162 // -----------------------------------------------------------------------------
       
   163 //
       
   164 void HbDeviceMessageBox::setMessageBoxType( 
       
   165         HbMessageBox::MessageBoxType type )
       
   166     {
       
   167     SMC_MOCK_METHOD1( void, HbMessageBox::MessageBoxType, type )
       
   168     }
       
   169 
       
   170 
       
   171 // -----------------------------------------------------------------------------
       
   172 // HbDeviceMessageBox::messageBoxType
       
   173 // -----------------------------------------------------------------------------
       
   174 //
       
   175 HbMessageBox::MessageBoxType HbDeviceMessageBox::messageBoxType(  ) const
       
   176     {
       
   177     SMC_MOCK_METHOD0( HbMessageBox::MessageBoxType )
   112     }
   178     }
   113 
   179 
   114 
   180 
   115 // -----------------------------------------------------------------------------
   181 // -----------------------------------------------------------------------------
   116 // HbDeviceMessageBox::setText
   182 // HbDeviceMessageBox::setText
   153     SMC_MOCK_METHOD0( QString )
   219     SMC_MOCK_METHOD0( QString )
   154     }
   220     }
   155 
   221 
   156 
   222 
   157 // -----------------------------------------------------------------------------
   223 // -----------------------------------------------------------------------------
   158 // HbDeviceMessageBox::setIconAlignment
   224 // HbDeviceMessageBox::setIconVisible
   159 // -----------------------------------------------------------------------------
   225 // -----------------------------------------------------------------------------
   160 //
   226 //
   161 void HbDeviceMessageBox::setIconAlignment( 
   227 void HbDeviceMessageBox::setIconVisible( 
   162         Qt::Alignment align )
   228         bool visible )
   163     {
   229     {
   164  //   SMC_MOCK_METHOD1( void, Qt::Alignment, align )
   230     SMC_MOCK_METHOD1( void, bool, visible )
   165     }
   231     }
   166 
   232 
   167 
   233 
   168 // -----------------------------------------------------------------------------
   234 // -----------------------------------------------------------------------------
   169 // HbDeviceMessageBox::iconAlignment
   235 // HbDeviceMessageBox::iconVisible
   170 // -----------------------------------------------------------------------------
   236 // -----------------------------------------------------------------------------
   171 //
   237 //
   172 Qt::Alignment HbDeviceMessageBox::iconAlignment(  ) const
   238 bool HbDeviceMessageBox::iconVisible(  ) const
   173     {
   239     {
   174  //   SMC_MOCK_METHOD0( Qt::Alignment )
   240     SMC_MOCK_METHOD0( bool )
       
   241     }
       
   242 
       
   243 
       
   244 // -----------------------------------------------------------------------------
       
   245 // HbDeviceMessageBox::setAnimationDefinition
       
   246 // -----------------------------------------------------------------------------
       
   247 //
       
   248 void HbDeviceMessageBox::setAnimationDefinition( 
       
   249         QString & animationDefinition )
       
   250     {
       
   251     SMC_MOCK_METHOD1( void, QString &, animationDefinition )
       
   252     }
       
   253 
       
   254 
       
   255 // -----------------------------------------------------------------------------
       
   256 // HbDeviceMessageBox::animationDefinition
       
   257 // -----------------------------------------------------------------------------
       
   258 //
       
   259 QString HbDeviceMessageBox::animationDefinition(  ) const
       
   260     {
       
   261     SMC_MOCK_METHOD0( QString )
   175     }
   262     }
   176 
   263 
   177 
   264 
   178 // -----------------------------------------------------------------------------
   265 // -----------------------------------------------------------------------------
   179 // HbDeviceMessageBox::setTimeout
   266 // HbDeviceMessageBox::setTimeout
   191 // -----------------------------------------------------------------------------
   278 // -----------------------------------------------------------------------------
   192 //
   279 //
   193 void HbDeviceMessageBox::setTimeout( 
   280 void HbDeviceMessageBox::setTimeout( 
   194         HbPopup::DefaultTimeout timeout )
   281         HbPopup::DefaultTimeout timeout )
   195     {
   282     {
   196   //  SMC_MOCK_METHOD1( void, HbPopup::DefaultTimeout, timeout )
   283     SMC_MOCK_METHOD1( void, HbPopup::DefaultTimeout, timeout )
   197     }
   284     }
   198 
   285 
   199 
   286 
   200 // -----------------------------------------------------------------------------
   287 // -----------------------------------------------------------------------------
   201 // HbDeviceMessageBox::timeout
   288 // HbDeviceMessageBox::timeout
   212 // -----------------------------------------------------------------------------
   299 // -----------------------------------------------------------------------------
   213 //
   300 //
   214 void HbDeviceMessageBox::setDismissPolicy( 
   301 void HbDeviceMessageBox::setDismissPolicy( 
   215         HbPopup::DismissPolicy dismissPolicy )
   302         HbPopup::DismissPolicy dismissPolicy )
   216     {
   303     {
   217   //  SMC_MOCK_METHOD1( void, HbPopup::DismissPolicy, dismissPolicy )
   304     SMC_MOCK_METHOD1( void, HbPopup::DismissPolicy, dismissPolicy )
   218     }
   305     }
   219 
   306 
   220 
   307 
   221 // -----------------------------------------------------------------------------
   308 // -----------------------------------------------------------------------------
   222 // HbDeviceMessageBox::dismissPolicy
   309 // HbDeviceMessageBox::dismissPolicy
   223 // -----------------------------------------------------------------------------
   310 // -----------------------------------------------------------------------------
   224 //
   311 //
   225 HbPopup::DismissPolicy HbDeviceMessageBox::dismissPolicy(  ) const
   312 HbPopup::DismissPolicy HbDeviceMessageBox::dismissPolicy(  ) const
   226     {
   313     {
   227  //   SMC_MOCK_METHOD0( HbPopup::DismissPolicy )
   314     SMC_MOCK_METHOD0( HbPopup::DismissPolicy )
   228     }
   315     }
   229 
   316 
   230 
   317 
   231 // -----------------------------------------------------------------------------
   318 // -----------------------------------------------------------------------------
   232 // HbDeviceMessageBox::primaryAction
   319 // HbDeviceMessageBox::setAction
   233 // -----------------------------------------------------------------------------
   320 // -----------------------------------------------------------------------------
   234 //
   321 //
   235 HbAction * HbDeviceMessageBox::primaryAction(  ) const
   322 void HbDeviceMessageBox::setAction( 
   236     {
   323         QAction * action,
   237     SMC_MOCK_METHOD0( HbAction * )
   324         ActionRole role )
   238     }
   325     {
   239 
   326     //SMC_MOCK_METHOD2( void, QAction *, action, 
   240 
   327     //    ActionRole, role )
   241 // -----------------------------------------------------------------------------
   328     }
   242 // HbDeviceMessageBox::setPrimaryAction
   329 
   243 // -----------------------------------------------------------------------------
   330 
   244 //
   331 // -----------------------------------------------------------------------------
   245 void HbDeviceMessageBox::setPrimaryAction( 
   332 // HbDeviceMessageBox::action
   246         HbAction * action )
   333 // -----------------------------------------------------------------------------
   247     {
   334 //
   248   //  SMC_MOCK_METHOD1( void, HbAction *, action )
   335 QAction * HbDeviceMessageBox::action( 
   249     }
   336         ActionRole role ) const
   250 
   337     {
   251 
   338     //SMC_MOCK_METHOD1( QAction *, ActionRole, role )
   252 // -----------------------------------------------------------------------------
       
   253 // HbDeviceMessageBox::secondaryAction
       
   254 // -----------------------------------------------------------------------------
       
   255 //
       
   256 HbAction * HbDeviceMessageBox::secondaryAction(  ) const
       
   257     {
       
   258     SMC_MOCK_METHOD0( HbAction * )
       
   259     }
       
   260 
       
   261 
       
   262 // -----------------------------------------------------------------------------
       
   263 // HbDeviceMessageBox::setSecondaryAction
       
   264 // -----------------------------------------------------------------------------
       
   265 //
       
   266 void HbDeviceMessageBox::setSecondaryAction( 
       
   267         HbAction * action )
       
   268     {
       
   269   //  SMC_MOCK_METHOD1( void, HbAction *, action )
       
   270     }
       
   271 
       
   272 
       
   273 // -----------------------------------------------------------------------------
       
   274 // HbDeviceMessageBox::setAnimationDefinition
       
   275 // -----------------------------------------------------------------------------
       
   276 //
       
   277 void HbDeviceMessageBox::setAnimationDefinition( 
       
   278         QString & animationDefinition )
       
   279     {
       
   280     SMC_MOCK_METHOD1( void, QString &, animationDefinition )
       
   281     }
       
   282 
       
   283 
       
   284 // -----------------------------------------------------------------------------
       
   285 // HbDeviceMessageBox::animationDefinition
       
   286 // -----------------------------------------------------------------------------
       
   287 //
       
   288 QString HbDeviceMessageBox::animationDefinition(  ) const
       
   289     {
       
   290     SMC_MOCK_METHOD0( QString )
       
   291     }
   339     }
   292 
   340 
   293 
   341 
   294 // -----------------------------------------------------------------------------
   342 // -----------------------------------------------------------------------------
   295 // HbDeviceMessageBox::aboutToClose
   343 // HbDeviceMessageBox::aboutToClose