cellular/psuinotes/tsrc/mocks/mock_qobject.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 <QObject>
       
    20 #include <QVariant>
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // QObjectUserData::~QObjectUserData
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 QObjectUserData::~QObjectUserData(  )
       
    29     {
       
    30     
       
    31     }
       
    32 
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 // QObjectData::~QObjectData
       
    36 // -----------------------------------------------------------------------------
       
    37 //
       
    38 QObjectData::~QObjectData(  )
       
    39     {
       
    40     
       
    41     }
       
    42 
       
    43 #ifdef QT3_SUPPORT
       
    44 // -----------------------------------------------------------------------------
       
    45 // QObject::QObject
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 QT3_SUPPORT_CONSTRUCTOR QObject::QObject( 
       
    49         QObject * parent,
       
    50         const char * name )
       
    51     {
       
    52     
       
    53     }
       
    54 #endif
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // QObject::~QObject
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 QObject::~QObject(  )
       
    61     {
       
    62     
       
    63     }
       
    64 
       
    65 
       
    66 // -----------------------------------------------------------------------------
       
    67 // QObject::event
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 bool QObject::event( 
       
    71         QEvent * )
       
    72     {
       
    73  //   SMC_MOCK_METHOD1( bool, QEvent, * )
       
    74     }
       
    75 
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // QObject::eventFilter
       
    79 // -----------------------------------------------------------------------------
       
    80 //
       
    81 bool QObject::eventFilter( 
       
    82         QObject *,
       
    83         QEvent * )
       
    84     {
       
    85  //   SMC_MOCK_METHOD2( bool, QObject, *, 
       
    86 //        QEvent, * )
       
    87     }
       
    88 
       
    89 #ifdef qdoc
       
    90 // -----------------------------------------------------------------------------
       
    91 // QObject::tr
       
    92 // -----------------------------------------------------------------------------
       
    93 //
       
    94 QString QObject::tr( 
       
    95         const char * sourceText,
       
    96         const char * comment,
       
    97         int n )
       
    98     {
       
    99     SMC_MOCK_METHOD3( QString, const char *, sourceText, 
       
   100         const char *, comment, 
       
   101         int, n )
       
   102     }
       
   103 
       
   104 
       
   105 // -----------------------------------------------------------------------------
       
   106 // QObject::trUtf8
       
   107 // -----------------------------------------------------------------------------
       
   108 //
       
   109 QString QObject::trUtf8( 
       
   110         const char * sourceText,
       
   111         const char * comment,
       
   112         int n )
       
   113     {
       
   114     SMC_MOCK_METHOD3( QString, const char *, sourceText, 
       
   115         const char *, comment, 
       
   116         int, n )
       
   117     }
       
   118 
       
   119 
       
   120 // -----------------------------------------------------------------------------
       
   121 // QObject::metaObject
       
   122 // -----------------------------------------------------------------------------
       
   123 //
       
   124 const QMetaObject * QObject::metaObject(  ) const
       
   125     {
       
   126  //   SMC_MOCK_METHOD0( const QMetaObject * )
       
   127     }
       
   128 
       
   129 #endif
       
   130 #ifdef QT_NO_TRANSLATION
       
   131 // -----------------------------------------------------------------------------
       
   132 // QObject::tr
       
   133 // -----------------------------------------------------------------------------
       
   134 //
       
   135 QString QObject::tr( 
       
   136         const char * sourceText,
       
   137         const char * )
       
   138     {
       
   139     SMC_MOCK_METHOD2( QString, const char *, sourceText, 
       
   140         const char, * )
       
   141     }
       
   142 
       
   143 
       
   144 // -----------------------------------------------------------------------------
       
   145 // QObject::tr
       
   146 // -----------------------------------------------------------------------------
       
   147 //
       
   148 QString QObject::tr( 
       
   149         const char * sourceText,
       
   150         const char * )
       
   151     {
       
   152     SMC_MOCK_METHOD2( QString, const char *, sourceText, 
       
   153         const char, * )
       
   154     }
       
   155 #ifndef QT_NO_TEXTCODEC
       
   156 
       
   157 // -----------------------------------------------------------------------------
       
   158 // QObject::trUtf8
       
   159 // -----------------------------------------------------------------------------
       
   160 //
       
   161 QString QObject::trUtf8( 
       
   162         const char * sourceText,
       
   163         const char * )
       
   164     {
       
   165     SMC_MOCK_METHOD2( QString, const char *, sourceText, 
       
   166         const char, * )
       
   167     }
       
   168 
       
   169 
       
   170 // -----------------------------------------------------------------------------
       
   171 // QObject::trUtf8
       
   172 // -----------------------------------------------------------------------------
       
   173 //
       
   174 QString QObject::trUtf8( 
       
   175         const char * sourceText,
       
   176         const char * )
       
   177     {
       
   178     SMC_MOCK_METHOD2( QString, const char *, sourceText, 
       
   179         const char, * )
       
   180     }
       
   181 #endif
       
   182 #endif //QT_NO_TRANSLATION
       
   183 
       
   184 // -----------------------------------------------------------------------------
       
   185 // QObject::objectName
       
   186 // -----------------------------------------------------------------------------
       
   187 //
       
   188 QString QObject::objectName(  ) const
       
   189     {
       
   190     SMC_MOCK_METHOD0( QString )
       
   191     }
       
   192 
       
   193 
       
   194 // -----------------------------------------------------------------------------
       
   195 // QObject::setObjectName
       
   196 // -----------------------------------------------------------------------------
       
   197 //
       
   198 void QObject::setObjectName( 
       
   199         const QString & name )
       
   200     {
       
   201     SMC_MOCK_METHOD1( void, const QString &, name )
       
   202     }
       
   203 
       
   204 
       
   205 // -----------------------------------------------------------------------------
       
   206 // QObject::blockSignals
       
   207 // -----------------------------------------------------------------------------
       
   208 //
       
   209 bool QObject::blockSignals( 
       
   210         bool b )
       
   211     {
       
   212     SMC_MOCK_METHOD1( bool, bool, b )
       
   213     }
       
   214 
       
   215 
       
   216 // -----------------------------------------------------------------------------
       
   217 // QObject::thread
       
   218 // -----------------------------------------------------------------------------
       
   219 //
       
   220 QThread * QObject::thread(  ) const
       
   221     {
       
   222 //    SMC_MOCK_METHOD0( QThread * )
       
   223     }
       
   224 
       
   225 
       
   226 // -----------------------------------------------------------------------------
       
   227 // QObject::moveToThread
       
   228 // -----------------------------------------------------------------------------
       
   229 //
       
   230 void QObject::moveToThread( 
       
   231         QThread * thread )
       
   232     {
       
   233  //   SMC_MOCK_METHOD1( void, QThread *, thread )
       
   234     }
       
   235 
       
   236 
       
   237 // -----------------------------------------------------------------------------
       
   238 // QObject::startTimer
       
   239 // -----------------------------------------------------------------------------
       
   240 //
       
   241 int QObject::startTimer( 
       
   242         int interval )
       
   243     {
       
   244     SMC_MOCK_METHOD1( int, int, interval )
       
   245     }
       
   246 
       
   247 
       
   248 // -----------------------------------------------------------------------------
       
   249 // QObject::killTimer
       
   250 // -----------------------------------------------------------------------------
       
   251 //
       
   252 void QObject::killTimer( 
       
   253         int id )
       
   254     {
       
   255     SMC_MOCK_METHOD1( void, int, id )
       
   256     }
       
   257 
       
   258 #ifdef QT3_SUPPORT
       
   259 // -----------------------------------------------------------------------------
       
   260 // QObject::child
       
   261 // -----------------------------------------------------------------------------
       
   262 //
       
   263 QT3_SUPPORT QObject * QObject::child( 
       
   264         const char * objName,
       
   265         const char * inheritsClass,
       
   266         bool recursiveSearch ) const
       
   267     {
       
   268     SMC_MOCK_METHOD3( QT3_SUPPORT QObject *, const char *, objName, 
       
   269         const char *, inheritsClass, 
       
   270         bool, recursiveSearch )
       
   271     }
       
   272 
       
   273 
       
   274 // -----------------------------------------------------------------------------
       
   275 // QObject::queryList
       
   276 // -----------------------------------------------------------------------------
       
   277 //
       
   278 QT3_SUPPORT QObjectList QObject::queryList( 
       
   279         const char * inheritsClass,
       
   280         const char * objName,
       
   281         bool regexpMatch,
       
   282         bool recursiveSearch ) const
       
   283     {
       
   284     SMC_MOCK_METHOD4( QT3_SUPPORT QObjectList, const char *, inheritsClass, 
       
   285         const char *, objName, 
       
   286         bool, regexpMatch, 
       
   287         bool, recursiveSearch )
       
   288     }
       
   289 #endif
       
   290 
       
   291 // -----------------------------------------------------------------------------
       
   292 // QObject::setParent
       
   293 // -----------------------------------------------------------------------------
       
   294 //
       
   295 void QObject::setParent( 
       
   296         QObject * )
       
   297     {
       
   298  //   SMC_MOCK_METHOD1( void, QObject, * )
       
   299     }
       
   300 
       
   301 
       
   302 // -----------------------------------------------------------------------------
       
   303 // QObject::installEventFilter
       
   304 // -----------------------------------------------------------------------------
       
   305 //
       
   306 void QObject::installEventFilter( 
       
   307         QObject * )
       
   308     {
       
   309  //   SMC_MOCK_METHOD1( void, QObject, * )
       
   310     }
       
   311 
       
   312 
       
   313 // -----------------------------------------------------------------------------
       
   314 // QObject::removeEventFilter
       
   315 // -----------------------------------------------------------------------------
       
   316 //
       
   317 void QObject::removeEventFilter( 
       
   318         QObject * )
       
   319     {
       
   320  //   SMC_MOCK_METHOD1( void, QObject, * )
       
   321     }
       
   322 
       
   323 
       
   324 // -----------------------------------------------------------------------------
       
   325 // QObject::connect
       
   326 // -----------------------------------------------------------------------------
       
   327 //
       
   328 bool QObject::connect( 
       
   329         const QObject * sender,
       
   330         const char * signal,
       
   331         const QObject * receiver,
       
   332         const char * member,
       
   333         Qt::ConnectionType ConnectionType )
       
   334     {
       
   335     SMC_MOCK_METHOD5( bool, const QObject *, sender, 
       
   336         const char *, signal, 
       
   337         const QObject *, receiver, 
       
   338         const char *, member, 
       
   339         Qt::ConnectionType, ConnectionType )
       
   340     }
       
   341 
       
   342 
       
   343 // -----------------------------------------------------------------------------
       
   344 // QObject::disconnect
       
   345 // -----------------------------------------------------------------------------
       
   346 //
       
   347 bool QObject::disconnect( 
       
   348         const QObject * sender,
       
   349         const char * signal,
       
   350         const QObject * receiver,
       
   351         const char * member )
       
   352     {
       
   353 //    SMC_MOCK_METHOD4( bool, const QObject *, sender, 
       
   354 //        const char *, signal, 
       
   355 //        const QObject *, receiver, 
       
   356 //        const char *, member )
       
   357     }
       
   358 
       
   359 
       
   360 // -----------------------------------------------------------------------------
       
   361 // QObject::dumpObjectTree
       
   362 // -----------------------------------------------------------------------------
       
   363 //
       
   364 void QObject::dumpObjectTree(  )
       
   365     {
       
   366     SMC_MOCK_METHOD0( void )
       
   367     }
       
   368 
       
   369 
       
   370 // -----------------------------------------------------------------------------
       
   371 // QObject::dumpObjectInfo
       
   372 // -----------------------------------------------------------------------------
       
   373 //
       
   374 void QObject::dumpObjectInfo(  )
       
   375     {
       
   376     SMC_MOCK_METHOD0( void )
       
   377     }
       
   378 
       
   379 #ifndef QT_NO_PROPERTIES
       
   380 // -----------------------------------------------------------------------------
       
   381 // QObject::setProperty
       
   382 // -----------------------------------------------------------------------------
       
   383 //
       
   384 bool QObject::setProperty( 
       
   385         const char * name,
       
   386         const QVariant & value )
       
   387     {
       
   388 //    SMC_MOCK_METHOD2( bool, const char *, name, 
       
   389 //        const QVariant &, value )
       
   390     }
       
   391 
       
   392 
       
   393 // -----------------------------------------------------------------------------
       
   394 // QObject::property
       
   395 // -----------------------------------------------------------------------------
       
   396 //
       
   397 QVariant QObject::property( 
       
   398         const char * name ) const
       
   399     {
       
   400 //    SMC_MOCK_METHOD1( QVariant, const char *, name )
       
   401     }
       
   402 
       
   403 
       
   404 // -----------------------------------------------------------------------------
       
   405 // QObject::dynamicPropertyNames
       
   406 // -----------------------------------------------------------------------------
       
   407 //
       
   408 QList <QByteArray > QObject::dynamicPropertyNames(  ) const
       
   409     {
       
   410 //    SMC_MOCK_METHOD0( QList <QByteArray > )
       
   411     }
       
   412 #endif // QT_NO_PROPERTIES
       
   413 #ifndef QT_NO_USERDATA
       
   414 // -----------------------------------------------------------------------------
       
   415 // QObject::registerUserData
       
   416 // -----------------------------------------------------------------------------
       
   417 //
       
   418 uint QObject::registerUserData(  )
       
   419     {
       
   420     SMC_MOCK_METHOD0( uint )
       
   421     }
       
   422 
       
   423 
       
   424 // -----------------------------------------------------------------------------
       
   425 // QObject::setUserData
       
   426 // -----------------------------------------------------------------------------
       
   427 //
       
   428 void QObject::setUserData( 
       
   429         uint id,
       
   430         QObjectUserData * data )
       
   431     {
       
   432 //    SMC_MOCK_METHOD2( void, uint, id, 
       
   433 //        QObjectUserData *, data )
       
   434     }
       
   435 
       
   436 
       
   437 // -----------------------------------------------------------------------------
       
   438 // QObject::userData
       
   439 // -----------------------------------------------------------------------------
       
   440 //
       
   441 QObjectUserData * QObject::userData( 
       
   442         uint id ) const
       
   443     {
       
   444 //    SMC_MOCK_METHOD1( QObjectUserData *, uint, id )
       
   445     }
       
   446 #endif // QT_NO_USERDATA
       
   447 
       
   448 // -----------------------------------------------------------------------------
       
   449 // QObject::destroyed
       
   450 // -----------------------------------------------------------------------------
       
   451 //
       
   452 /*
       
   453 Q_SIGNALS : void QObject::destroyed( 
       
   454         QObject * )
       
   455     {
       
   456     SMC_MOCK_METHOD1( Q_SIGNALS : void, QObject, * )
       
   457     }*/
       
   458 
       
   459 
       
   460 // -----------------------------------------------------------------------------
       
   461 // QObject::deleteLater
       
   462 // -----------------------------------------------------------------------------
       
   463 //
       
   464 void QObject::deleteLater(  )
       
   465     {
       
   466   //  SMC_MOCK_METHOD0( Q_SLOTS : void )
       
   467     }
       
   468 
       
   469 
       
   470 // -----------------------------------------------------------------------------
       
   471 // QObject::sender
       
   472 // -----------------------------------------------------------------------------
       
   473 //
       
   474 QObject * QObject::sender(  ) const
       
   475     {
       
   476  //   SMC_MOCK_METHOD0( QObject * )
       
   477     }
       
   478 
       
   479 
       
   480 // -----------------------------------------------------------------------------
       
   481 // QObject::receivers
       
   482 // -----------------------------------------------------------------------------
       
   483 //
       
   484 int QObject::receivers( 
       
   485         const char * signal ) const
       
   486     {
       
   487     SMC_MOCK_METHOD1( int, const char *, signal )
       
   488     }
       
   489 
       
   490 
       
   491 // -----------------------------------------------------------------------------
       
   492 // QObject::timerEvent
       
   493 // -----------------------------------------------------------------------------
       
   494 //
       
   495 void QObject::timerEvent( 
       
   496         QTimerEvent * )
       
   497     {
       
   498  //   SMC_MOCK_METHOD1( void, QTimerEvent, * )
       
   499     }
       
   500 
       
   501 
       
   502 // -----------------------------------------------------------------------------
       
   503 // QObject::childEvent
       
   504 // -----------------------------------------------------------------------------
       
   505 //
       
   506 void QObject::childEvent( 
       
   507         QChildEvent * )
       
   508     {
       
   509  //   SMC_MOCK_METHOD1( void, QChildEvent, * )
       
   510     }
       
   511 
       
   512 
       
   513 // -----------------------------------------------------------------------------
       
   514 // QObject::customEvent
       
   515 // -----------------------------------------------------------------------------
       
   516 //
       
   517 void QObject::customEvent( 
       
   518         QEvent * )
       
   519     {
       
   520  //   SMC_MOCK_METHOD1( void, QEvent, * )
       
   521     }
       
   522 
       
   523 
       
   524 // -----------------------------------------------------------------------------
       
   525 // QObject::connectNotify
       
   526 // -----------------------------------------------------------------------------
       
   527 //
       
   528 void QObject::connectNotify( 
       
   529         const char * signal )
       
   530     {
       
   531  //   SMC_MOCK_METHOD1( void, const char *, signal )
       
   532     }
       
   533 
       
   534 
       
   535 // -----------------------------------------------------------------------------
       
   536 // QObject::disconnectNotify
       
   537 // -----------------------------------------------------------------------------
       
   538 //
       
   539 void QObject::disconnectNotify( 
       
   540         const char * signal )
       
   541     {
       
   542   //  SMC_MOCK_METHOD1( void, const char *, signal )
       
   543     }
       
   544 
       
   545 
       
   546 // -----------------------------------------------------------------------------
       
   547 // QObject::QObject
       
   548 // -----------------------------------------------------------------------------
       
   549 //
       
   550 QObject::QObject( 
       
   551         QObjectPrivate & dd,
       
   552         QObject * parent )
       
   553     {
       
   554     
       
   555     }
       
   556 
       
   557