phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbmessagebox.cpp
changeset 76 cfea66083b62
equal deleted inserted replaced
74:d1c62c765e48 76:cfea66083b62
       
     1 /** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 * All rights reserved.
       
     3 * This component and the accompanying materials are made available
       
     4 * under the terms of the License "Eclipse Public License v1.0"
       
     5 * which accompanies this distribution, and is available
       
     6 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 *
       
     8 * Initial Contributors:
       
     9 * Nokia Corporation - initial contribution.
       
    10 *
       
    11 * Contributors:
       
    12 *
       
    13 * Description:
       
    14 *
       
    15 */
       
    16 #include <QDebug>
       
    17 #include <smcmockclassincludes.h>
       
    18 #include "hbmessagebox.h"
       
    19 #include <HbStylePrimitiveData>
       
    20 #include <QGraphicsScene>
       
    21 
       
    22 // NOTE! The following header include requires
       
    23 //       INCLUDEPATH += /sf/mw/hb/include/hbcore/private
       
    24 #include <hbstyleoptionmessagebox_p.h>
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // HbMessageBox::HbMessageBox
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 HbMessageBox::HbMessageBox( 
       
    33         MessageBoxType type,
       
    34         QGraphicsItem * parent )
       
    35     //:
       
    36     //HbDialog( /*type, parent*/ )
       
    37     {
       
    38     
       
    39     }
       
    40 
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // HbMessageBox::HbMessageBox
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 HbMessageBox::HbMessageBox( 
       
    47         const QString & text,
       
    48         MessageBoxType type,
       
    49         QGraphicsItem * parent )
       
    50     //:
       
    51     //HbDialog( /*text, type, parent*/ )
       
    52     {
       
    53     
       
    54     }
       
    55 
       
    56 
       
    57 // -----------------------------------------------------------------------------
       
    58 // HbMessageBox::~HbMessageBox
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 HbMessageBox::~HbMessageBox(  )
       
    62     {
       
    63     
       
    64     }
       
    65 
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 // HbMessageBox::setText
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 void HbMessageBox::setText( 
       
    72         const QString & text )
       
    73     {
       
    74     SMC_MOCK_METHOD1( void, const QString &, text )
       
    75     }
       
    76 
       
    77 
       
    78 // -----------------------------------------------------------------------------
       
    79 // HbMessageBox::text
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 QString HbMessageBox::text(  ) const
       
    83     {
       
    84     SMC_MOCK_METHOD0( QString )
       
    85     }
       
    86 
       
    87 
       
    88 // -----------------------------------------------------------------------------
       
    89 // HbMessageBox::setIcon
       
    90 // -----------------------------------------------------------------------------
       
    91 //
       
    92 void HbMessageBox::setIcon( 
       
    93         const HbIcon & icon )
       
    94     {
       
    95     SMC_MOCK_METHOD1( void, const HbIcon &, icon )
       
    96     }
       
    97 
       
    98 
       
    99 // -----------------------------------------------------------------------------
       
   100 // HbMessageBox::icon
       
   101 // -----------------------------------------------------------------------------
       
   102 //
       
   103 HbIcon HbMessageBox::icon(  ) const
       
   104     {
       
   105     SMC_MOCK_METHOD0( HbIcon )
       
   106     }
       
   107 
       
   108 
       
   109 // -----------------------------------------------------------------------------
       
   110 // HbMessageBox::setIconVisible
       
   111 // -----------------------------------------------------------------------------
       
   112 //
       
   113 void HbMessageBox::setIconVisible( 
       
   114         bool visible )
       
   115     {
       
   116     SMC_MOCK_METHOD1( void, bool, visible )
       
   117     }
       
   118 
       
   119 
       
   120 // -----------------------------------------------------------------------------
       
   121 // HbMessageBox::iconVisible
       
   122 // -----------------------------------------------------------------------------
       
   123 //
       
   124 bool HbMessageBox::iconVisible(  ) const
       
   125     {
       
   126     SMC_MOCK_METHOD0( bool )
       
   127     }
       
   128 
       
   129 
       
   130 // -----------------------------------------------------------------------------
       
   131 // HbMessageBox::setStandardButtons
       
   132 // -----------------------------------------------------------------------------
       
   133 //
       
   134 void HbMessageBox::setStandardButtons( 
       
   135         StandardButtons buttons )
       
   136     {
       
   137     //SMC_MOCK_METHOD1( void, StandardButtons, buttons )
       
   138     }
       
   139 
       
   140 
       
   141 // -----------------------------------------------------------------------------
       
   142 // HbMessageBox::standardButtons
       
   143 // -----------------------------------------------------------------------------
       
   144 //
       
   145 HbMessageBox::StandardButtons HbMessageBox::standardButtons(  ) const
       
   146     {
       
   147     SMC_MOCK_METHOD0( HbMessageBox::StandardButtons )
       
   148     }
       
   149 
       
   150 
       
   151 // -----------------------------------------------------------------------------
       
   152 // HbMessageBox::primitive
       
   153 // -----------------------------------------------------------------------------
       
   154 //
       
   155 QGraphicsItem * HbMessageBox::primitive( 
       
   156         HbStyle::Primitive primitive ) const
       
   157     {
       
   158     SMC_MOCK_METHOD1( QGraphicsItem *, HbStyle::Primitive, primitive )
       
   159     }
       
   160 
       
   161 
       
   162 // -----------------------------------------------------------------------------
       
   163 // HbMessageBox::question
       
   164 // -----------------------------------------------------------------------------
       
   165 //
       
   166 void HbMessageBox::question( 
       
   167         const QString & questionText,
       
   168         QObject * receiver,
       
   169         const char * member,
       
   170         const QString & primaryButtonText,
       
   171         const QString & secondaryButtonText,
       
   172         QGraphicsWidget * headWidget,
       
   173         QGraphicsScene * scene,
       
   174         QGraphicsItem * parent )
       
   175     {
       
   176     SMC_MOCK_METHOD8( void, const QString &, questionText, 
       
   177         QObject *, receiver, 
       
   178         const char *, member, 
       
   179         const QString &, primaryButtonText, 
       
   180         const QString &, secondaryButtonText, 
       
   181         QGraphicsWidget *, headWidget, 
       
   182         QGraphicsScene *, scene, 
       
   183         QGraphicsItem *, parent )
       
   184     }
       
   185 
       
   186 
       
   187 // -----------------------------------------------------------------------------
       
   188 // HbMessageBox::information
       
   189 // -----------------------------------------------------------------------------
       
   190 //
       
   191 void HbMessageBox::information( 
       
   192         const QString & informationText,
       
   193         QObject * receiver,
       
   194         const char * member,
       
   195         QGraphicsWidget * headWidget,
       
   196         QGraphicsScene * scene,
       
   197         QGraphicsItem * parent )
       
   198     {
       
   199     SMC_MOCK_METHOD6( void, const QString &, informationText, 
       
   200         QObject *, receiver, 
       
   201         const char *, member, 
       
   202         QGraphicsWidget *, headWidget, 
       
   203         QGraphicsScene *, scene, 
       
   204         QGraphicsItem *, parent )
       
   205     }
       
   206 
       
   207 
       
   208 // -----------------------------------------------------------------------------
       
   209 // HbMessageBox::warning
       
   210 // -----------------------------------------------------------------------------
       
   211 //
       
   212 void HbMessageBox::warning( 
       
   213         const QString & warningText,
       
   214         QObject * receiver,
       
   215         const char * member,
       
   216         QGraphicsWidget * headWidget,
       
   217         QGraphicsScene * scene,
       
   218         QGraphicsItem * parent )
       
   219     {
       
   220     SMC_MOCK_METHOD6( void, const QString &, warningText, 
       
   221         QObject *, receiver, 
       
   222         const char *, member, 
       
   223         QGraphicsWidget *, headWidget, 
       
   224         QGraphicsScene *, scene, 
       
   225         QGraphicsItem *, parent )
       
   226     }
       
   227 
       
   228 
       
   229 // -----------------------------------------------------------------------------
       
   230 // HbMessageBox::question
       
   231 // -----------------------------------------------------------------------------
       
   232 //
       
   233 void HbMessageBox::question( 
       
   234         const QString & questionText,
       
   235         QObject * receiver,
       
   236         const char * member,
       
   237         HbMessageBox::StandardButtons buttons,
       
   238         QGraphicsWidget * headingWidget,
       
   239         QGraphicsScene * scene,
       
   240         QGraphicsItem * parent )
       
   241     {
       
   242     /*SMC_MOCK_METHOD7( void, const QString &, questionText, 
       
   243         QObject *, receiver, 
       
   244         const char *, member, 
       
   245         HbMessageBox::StandardButtons, buttons, 
       
   246         QGraphicsWidget *, headingWidget, 
       
   247         QGraphicsScene *, scene, 
       
   248         QGraphicsItem *, parent )*/
       
   249     }
       
   250 
       
   251 
       
   252 // -----------------------------------------------------------------------------
       
   253 // HbMessageBox::information
       
   254 // -----------------------------------------------------------------------------
       
   255 //
       
   256 void HbMessageBox::information( 
       
   257         const QString & informationText,
       
   258         QObject * receiver,
       
   259         const char * member,
       
   260         HbMessageBox::StandardButtons buttons,
       
   261         QGraphicsWidget * headingWidget,
       
   262         QGraphicsScene * scene,
       
   263         QGraphicsItem * parent )
       
   264     {
       
   265     /*SMC_MOCK_METHOD7( void, const QString &, informationText, 
       
   266         QObject *, receiver, 
       
   267         const char *, member, 
       
   268         HbMessageBox::StandardButtons, buttons, 
       
   269         QGraphicsWidget *, headingWidget, 
       
   270         QGraphicsScene *, scene, 
       
   271         QGraphicsItem *, parent )*/
       
   272     }
       
   273 
       
   274 
       
   275 // -----------------------------------------------------------------------------
       
   276 // HbMessageBox::warning
       
   277 // -----------------------------------------------------------------------------
       
   278 //
       
   279 void HbMessageBox::warning( 
       
   280         const QString & warningText,
       
   281         QObject * receiver,
       
   282         const char * member,
       
   283         HbMessageBox::StandardButtons buttons,
       
   284         QGraphicsWidget * headingWidget,
       
   285         QGraphicsScene * scene,
       
   286         QGraphicsItem * parent )
       
   287     {
       
   288     /*SMC_MOCK_METHOD7( void, const QString &, warningText, 
       
   289         QObject *, receiver, 
       
   290         const char *, member, 
       
   291         HbMessageBox::StandardButtons, buttons, 
       
   292         QGraphicsWidget *, headingWidget, 
       
   293         QGraphicsScene *, scene, 
       
   294         QGraphicsItem *, parent )*/
       
   295     }
       
   296 
       
   297 
       
   298 // -----------------------------------------------------------------------------
       
   299 // HbMessageBox::recreatePrimitives
       
   300 // -----------------------------------------------------------------------------
       
   301 //
       
   302 void HbMessageBox::recreatePrimitives(  )
       
   303     {
       
   304     SMC_MOCK_METHOD0( void )
       
   305     }
       
   306 
       
   307 
       
   308 // -----------------------------------------------------------------------------
       
   309 // HbMessageBox::updatePrimitives
       
   310 // -----------------------------------------------------------------------------
       
   311 //
       
   312 void HbMessageBox::updatePrimitives(  )
       
   313     {
       
   314     SMC_MOCK_METHOD0( void )
       
   315     }
       
   316 
       
   317 
       
   318 // -----------------------------------------------------------------------------
       
   319 // HbMessageBox::showEvent
       
   320 // -----------------------------------------------------------------------------
       
   321 //
       
   322 void HbMessageBox::showEvent( 
       
   323         QShowEvent * event )
       
   324     {
       
   325     SMC_MOCK_METHOD1( void, QShowEvent *, event )
       
   326     }
       
   327 
       
   328 
       
   329 // -----------------------------------------------------------------------------
       
   330 // HbMessageBox::HbMessageBox
       
   331 // -----------------------------------------------------------------------------
       
   332 //
       
   333 HbMessageBox::HbMessageBox( 
       
   334         HbMessageBoxPrivate & dd,
       
   335         QGraphicsItem * parent )
       
   336     //:
       
   337     //HbDialog( /*dd, parent*/ )
       
   338     {
       
   339     
       
   340     }
       
   341 
       
   342 
       
   343 // -----------------------------------------------------------------------------
       
   344 // HbMessageBox::initStyleOption
       
   345 // -----------------------------------------------------------------------------
       
   346 //
       
   347 void HbMessageBox::initStyleOption( 
       
   348         HbStyleOptionMessageBox * option ) const
       
   349     {
       
   350     SMC_MOCK_METHOD1( void, HbStyleOptionMessageBox *, option )
       
   351     }
       
   352 
       
   353 
       
   354 // -----------------------------------------------------------------------------
       
   355 // HbMessageBox::initPrimitiveData
       
   356 // -----------------------------------------------------------------------------
       
   357 //
       
   358 void HbMessageBox::initPrimitiveData( 
       
   359         HbStylePrimitiveData * primitiveData,
       
   360         const QGraphicsObject * primitive )
       
   361     {
       
   362     SMC_MOCK_METHOD2( void, HbStylePrimitiveData *, primitiveData, 
       
   363         const QGraphicsObject *, primitive )
       
   364     }
       
   365 
       
   366