telutils/keysequencerecognitionservice/tsrc/shared/mock_hbdevicemessagebox.cpp
changeset 27 7eb70891911c
child 32 1f002146abb4
equal deleted inserted replaced
23:427125ac6cb8 27:7eb70891911c
       
     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 <hbaction.h>
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // HbDeviceMessageBox::HbDeviceMessageBox
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 HbDeviceMessageBox::HbDeviceMessageBox( 
       
    29         const QString & text,
       
    30         HbMessageBox::MessageBoxType type,
       
    31         QObject * parent )
       
    32     :
       
    33     QObject(parent)
       
    34     {
       
    35     Q_UNUSED(text)
       
    36     Q_UNUSED(type)
       
    37     }
       
    38 
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 // HbDeviceMessageBox::~HbDeviceMessageBox
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 HbDeviceMessageBox::~HbDeviceMessageBox(  )
       
    45     {
       
    46     
       
    47     }
       
    48 
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // HbDeviceMessageBox::question
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 bool HbDeviceMessageBox::question( 
       
    55         const QString & text,
       
    56         const QString & primaryButtonText,
       
    57         const QString & secondaryButtonText )
       
    58     {
       
    59     SMC_MOCK_METHOD3( bool, const QString &, text, 
       
    60         const QString &, primaryButtonText, 
       
    61         const QString &, secondaryButtonText )
       
    62     }
       
    63 
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // HbDeviceMessageBox::information
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 void HbDeviceMessageBox::information( 
       
    70         const QString & text )
       
    71     {
       
    72     SMC_MOCK_METHOD1( void, const QString &, text )
       
    73     }
       
    74 
       
    75 
       
    76 // -----------------------------------------------------------------------------
       
    77 // HbDeviceMessageBox::warning
       
    78 // -----------------------------------------------------------------------------
       
    79 //
       
    80 void HbDeviceMessageBox::warning( 
       
    81         const QString & text )
       
    82     {
       
    83     SMC_MOCK_METHOD1( void, const QString &, text )
       
    84     }
       
    85 
       
    86 
       
    87 // -----------------------------------------------------------------------------
       
    88 // HbDeviceMessageBox::show
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 void HbDeviceMessageBox::show(  )
       
    92     {
       
    93     SMC_MOCK_METHOD0( void )
       
    94     }
       
    95 
       
    96 
       
    97 // -----------------------------------------------------------------------------
       
    98 // HbDeviceMessageBox::close
       
    99 // -----------------------------------------------------------------------------
       
   100 //
       
   101 void HbDeviceMessageBox::close(  )
       
   102     {
       
   103     SMC_MOCK_METHOD0( void )
       
   104     }
       
   105 
       
   106 
       
   107 // -----------------------------------------------------------------------------
       
   108 // HbDeviceMessageBox::exec
       
   109 // -----------------------------------------------------------------------------
       
   110 //
       
   111 HbAction * HbDeviceMessageBox::exec(  )
       
   112     {
       
   113     SMC_MOCK_METHOD0( HbAction * )
       
   114     }
       
   115 
       
   116 
       
   117 // -----------------------------------------------------------------------------
       
   118 // HbDeviceMessageBox::setText
       
   119 // -----------------------------------------------------------------------------
       
   120 //
       
   121 void HbDeviceMessageBox::setText( 
       
   122         const QString & text )
       
   123     {
       
   124     SMC_MOCK_METHOD1( void, const QString &, text )
       
   125     }
       
   126 
       
   127 
       
   128 // -----------------------------------------------------------------------------
       
   129 // HbDeviceMessageBox::text
       
   130 // -----------------------------------------------------------------------------
       
   131 //
       
   132 QString HbDeviceMessageBox::text(  ) const
       
   133     {
       
   134     SMC_MOCK_METHOD0( QString )
       
   135     }
       
   136 
       
   137 
       
   138 // -----------------------------------------------------------------------------
       
   139 // HbDeviceMessageBox::setIconName
       
   140 // -----------------------------------------------------------------------------
       
   141 //
       
   142 void HbDeviceMessageBox::setIconName( 
       
   143         const QString & iconName )
       
   144     {
       
   145     SMC_MOCK_METHOD1( void, const QString &, iconName )
       
   146     }
       
   147 
       
   148 
       
   149 // -----------------------------------------------------------------------------
       
   150 // HbDeviceMessageBox::iconName
       
   151 // -----------------------------------------------------------------------------
       
   152 //
       
   153 QString HbDeviceMessageBox::iconName(  ) const
       
   154     {
       
   155     SMC_MOCK_METHOD0( QString )
       
   156     }
       
   157 
       
   158 
       
   159 // -----------------------------------------------------------------------------
       
   160 // HbDeviceMessageBox::setIconAlignment
       
   161 // -----------------------------------------------------------------------------
       
   162 //
       
   163 void HbDeviceMessageBox::setIconAlignment( 
       
   164         Qt::Alignment align )
       
   165     {
       
   166     //SMC_MOCK_METHOD1( void, Qt::Alignment, align )
       
   167     }
       
   168 
       
   169 
       
   170 // -----------------------------------------------------------------------------
       
   171 // HbDeviceMessageBox::iconAlignment
       
   172 // -----------------------------------------------------------------------------
       
   173 //
       
   174 Qt::Alignment HbDeviceMessageBox::iconAlignment(  ) const
       
   175     {
       
   176     //SMC_MOCK_METHOD0( Qt::Alignment )
       
   177     }
       
   178 
       
   179 
       
   180 // -----------------------------------------------------------------------------
       
   181 // HbDeviceMessageBox::setTimeout
       
   182 // -----------------------------------------------------------------------------
       
   183 //
       
   184 void HbDeviceMessageBox::setTimeout( 
       
   185         int timeout )
       
   186     {
       
   187     SMC_MOCK_METHOD1( void, int, timeout )
       
   188     }
       
   189 
       
   190 
       
   191 // -----------------------------------------------------------------------------
       
   192 // HbDeviceMessageBox::setTimeout
       
   193 // -----------------------------------------------------------------------------
       
   194 //
       
   195 void HbDeviceMessageBox::setTimeout( 
       
   196         HbPopup::DefaultTimeout timeout )
       
   197     {
       
   198     SMC_MOCK_METHOD1( void, HbPopup::DefaultTimeout, timeout )
       
   199     }
       
   200 
       
   201 
       
   202 // -----------------------------------------------------------------------------
       
   203 // HbDeviceMessageBox::timeout
       
   204 // -----------------------------------------------------------------------------
       
   205 //
       
   206 int HbDeviceMessageBox::timeout(  ) const
       
   207     {
       
   208     SMC_MOCK_METHOD0( int )
       
   209     }
       
   210 
       
   211 
       
   212 // -----------------------------------------------------------------------------
       
   213 // HbDeviceMessageBox::setDismissPolicy
       
   214 // -----------------------------------------------------------------------------
       
   215 //
       
   216 void HbDeviceMessageBox::setDismissPolicy( 
       
   217         HbPopup::DismissPolicy dismissPolicy )
       
   218     {
       
   219     SMC_MOCK_METHOD1( void, HbPopup::DismissPolicy, dismissPolicy )
       
   220     }
       
   221 
       
   222 
       
   223 // -----------------------------------------------------------------------------
       
   224 // HbDeviceMessageBox::dismissPolicy
       
   225 // -----------------------------------------------------------------------------
       
   226 //
       
   227 HbPopup::DismissPolicy HbDeviceMessageBox::dismissPolicy(  ) const
       
   228     {
       
   229     SMC_MOCK_METHOD0( HbPopup::DismissPolicy )
       
   230     }
       
   231 
       
   232 
       
   233 // -----------------------------------------------------------------------------
       
   234 // HbDeviceMessageBox::primaryAction
       
   235 // -----------------------------------------------------------------------------
       
   236 //
       
   237 HbAction * HbDeviceMessageBox::primaryAction(  ) const
       
   238     {
       
   239     SMC_MOCK_METHOD0( HbAction * )
       
   240     }
       
   241 
       
   242 
       
   243 // -----------------------------------------------------------------------------
       
   244 // HbDeviceMessageBox::setPrimaryAction
       
   245 // -----------------------------------------------------------------------------
       
   246 //
       
   247 void HbDeviceMessageBox::setPrimaryAction( 
       
   248         HbAction * hbAction )
       
   249     {
       
   250     SMC_MOCK_METHOD1( void, HbAction *, hbAction )
       
   251     }
       
   252 
       
   253 
       
   254 // -----------------------------------------------------------------------------
       
   255 // HbDeviceMessageBox::secondaryAction
       
   256 // -----------------------------------------------------------------------------
       
   257 //
       
   258 HbAction * HbDeviceMessageBox::secondaryAction(  ) const
       
   259     {
       
   260     SMC_MOCK_METHOD0( HbAction * )
       
   261     }
       
   262 
       
   263 
       
   264 // -----------------------------------------------------------------------------
       
   265 // HbDeviceMessageBox::setSecondaryAction
       
   266 // -----------------------------------------------------------------------------
       
   267 //
       
   268 void HbDeviceMessageBox::setSecondaryAction( 
       
   269         HbAction * hbAction )
       
   270     {
       
   271     SMC_MOCK_METHOD1( void, HbAction *, hbAction )
       
   272     }
       
   273 
       
   274 
       
   275 // -----------------------------------------------------------------------------
       
   276 // HbDeviceMessageBox::setAnimationDefinition
       
   277 // -----------------------------------------------------------------------------
       
   278 //
       
   279 void HbDeviceMessageBox::setAnimationDefinition( 
       
   280         QString & animationDefinition )
       
   281     {
       
   282     SMC_MOCK_METHOD1( void, QString &, animationDefinition )
       
   283     }
       
   284 
       
   285 
       
   286 // -----------------------------------------------------------------------------
       
   287 // HbDeviceMessageBox::animationDefinition
       
   288 // -----------------------------------------------------------------------------
       
   289 //
       
   290 QString HbDeviceMessageBox::animationDefinition(  ) const
       
   291     {
       
   292     SMC_MOCK_METHOD0( QString )
       
   293     }
       
   294 
       
   295 
       
   296 // -----------------------------------------------------------------------------
       
   297 // HbDeviceMessageBox::aboutToClose
       
   298 // -----------------------------------------------------------------------------
       
   299 //
       
   300 void HbDeviceMessageBox::aboutToClose(  )
       
   301     {
       
   302     SMC_MOCK_METHOD0( void )
       
   303     }
       
   304 
       
   305