telutils/keysequencerecognitionservice/tsrc/shared/mock_hbdevicemessagebox.cpp
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     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 const QAction * HbDeviceMessageBox::exec(  )
       
   112     {
       
   113     SMC_MOCK_METHOD0( QAction * )
       
   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::setIconVisible
       
   151 // -----------------------------------------------------------------------------
       
   152 //
       
   153 void HbDeviceMessageBox::setIconVisible( bool visible )
       
   154     {
       
   155     SMC_MOCK_METHOD1( void, bool, visible )
       
   156     }
       
   157 
       
   158 
       
   159 // -----------------------------------------------------------------------------
       
   160 // HbDeviceMessageBox::iconVisible
       
   161 // -----------------------------------------------------------------------------
       
   162 //
       
   163 bool HbDeviceMessageBox::iconVisible( ) const
       
   164     {
       
   165     SMC_MOCK_METHOD0( bool )
       
   166     }
       
   167 
       
   168 
       
   169 // -----------------------------------------------------------------------------
       
   170 // HbDeviceMessageBox::setAnimationDefinition
       
   171 // -----------------------------------------------------------------------------
       
   172 //
       
   173 void HbDeviceMessageBox::setAnimationDefinition( 
       
   174         QString & animationDefinition )
       
   175     {
       
   176     SMC_MOCK_METHOD1( void, QString &, animationDefinition )
       
   177     }
       
   178 
       
   179 
       
   180 // -----------------------------------------------------------------------------
       
   181 // HbDeviceMessageBox::animationDefinition
       
   182 // -----------------------------------------------------------------------------
       
   183 //
       
   184 QString HbDeviceMessageBox::animationDefinition(  ) const
       
   185     {
       
   186     SMC_MOCK_METHOD0( QString )
       
   187     }
       
   188 
       
   189 
       
   190 // -----------------------------------------------------------------------------
       
   191 // HbDeviceMessageBox::setTimeout
       
   192 // -----------------------------------------------------------------------------
       
   193 //
       
   194 void HbDeviceMessageBox::setTimeout( 
       
   195         int timeout )
       
   196     {
       
   197     SMC_MOCK_METHOD1( void, int, timeout )
       
   198     }
       
   199 
       
   200 
       
   201 // -----------------------------------------------------------------------------
       
   202 // HbDeviceMessageBox::setTimeout
       
   203 // -----------------------------------------------------------------------------
       
   204 //
       
   205 void HbDeviceMessageBox::setTimeout( 
       
   206         HbPopup::DefaultTimeout timeout )
       
   207     {
       
   208     SMC_MOCK_METHOD1( void, HbPopup::DefaultTimeout, timeout )
       
   209     }
       
   210 
       
   211 
       
   212 // -----------------------------------------------------------------------------
       
   213 // HbDeviceMessageBox::timeout
       
   214 // -----------------------------------------------------------------------------
       
   215 //
       
   216 int HbDeviceMessageBox::timeout(  ) const
       
   217     {
       
   218     SMC_MOCK_METHOD0( int )
       
   219     }
       
   220 
       
   221 
       
   222 // -----------------------------------------------------------------------------
       
   223 // HbDeviceMessageBox::setDismissPolicy
       
   224 // -----------------------------------------------------------------------------
       
   225 //
       
   226 void HbDeviceMessageBox::setDismissPolicy( 
       
   227         HbPopup::DismissPolicy dismissPolicy )
       
   228     {
       
   229     SMC_MOCK_METHOD1( void, HbPopup::DismissPolicy, dismissPolicy )
       
   230     }
       
   231 
       
   232 
       
   233 // -----------------------------------------------------------------------------
       
   234 // HbDeviceMessageBox::dismissPolicy
       
   235 // -----------------------------------------------------------------------------
       
   236 //
       
   237 HbPopup::DismissPolicy HbDeviceMessageBox::dismissPolicy(  ) const
       
   238     {
       
   239     SMC_MOCK_METHOD0( HbPopup::DismissPolicy )
       
   240     }
       
   241 
       
   242 
       
   243 // -----------------------------------------------------------------------------
       
   244 // HbDeviceMessageBox::aboutToClose
       
   245 // -----------------------------------------------------------------------------
       
   246 //
       
   247 void HbDeviceMessageBox::aboutToClose(  )
       
   248     {
       
   249     SMC_MOCK_METHOD0( void )
       
   250     }
       
   251 
       
   252