telutils/dialpad/tsrc/unit/shared/mock_qtimer.cpp
author hgs
Mon, 04 Oct 2010 15:57:13 +0300
changeset 51 12bc758d6a02
permissions -rw-r--r--
201039
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
51
hgs
parents:
diff changeset
     1
/** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     2
* All rights reserved.
hgs
parents:
diff changeset
     3
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     4
* under the terms of the License "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     5
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     6
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     7
*
hgs
parents:
diff changeset
     8
* Initial Contributors:
hgs
parents:
diff changeset
     9
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    10
*
hgs
parents:
diff changeset
    11
* Contributors:
hgs
parents:
diff changeset
    12
*
hgs
parents:
diff changeset
    13
* Description:
hgs
parents:
diff changeset
    14
*
hgs
parents:
diff changeset
    15
*/
hgs
parents:
diff changeset
    16
#include <QDebug>
hgs
parents:
diff changeset
    17
#include <smcmockclassincludes.h>
hgs
parents:
diff changeset
    18
#include <qtimer.h>
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
#include <QTimerEvent>
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
// ============================ MEMBER FUNCTIONS ===============================
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    25
// QTimer::QTimer
hgs
parents:
diff changeset
    26
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    27
//
hgs
parents:
diff changeset
    28
QTimer::QTimer( 
hgs
parents:
diff changeset
    29
        QObject * parent )
hgs
parents:
diff changeset
    30
    //:
hgs
parents:
diff changeset
    31
    //QObject( /*parent*/ )
hgs
parents:
diff changeset
    32
    {
hgs
parents:
diff changeset
    33
    
hgs
parents:
diff changeset
    34
    }
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
hgs
parents:
diff changeset
    37
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    38
// QTimer::~QTimer
hgs
parents:
diff changeset
    39
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    40
//
hgs
parents:
diff changeset
    41
QTimer::~QTimer(  )
hgs
parents:
diff changeset
    42
    {
hgs
parents:
diff changeset
    43
    
hgs
parents:
diff changeset
    44
    }
hgs
parents:
diff changeset
    45
hgs
parents:
diff changeset
    46
hgs
parents:
diff changeset
    47
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    48
// QTimer::setInterval
hgs
parents:
diff changeset
    49
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    50
//
hgs
parents:
diff changeset
    51
void QTimer::setInterval( 
hgs
parents:
diff changeset
    52
        int msec )
hgs
parents:
diff changeset
    53
    {
hgs
parents:
diff changeset
    54
    SMC_MOCK_METHOD1( void, int, msec )
hgs
parents:
diff changeset
    55
    }
hgs
parents:
diff changeset
    56
hgs
parents:
diff changeset
    57
hgs
parents:
diff changeset
    58
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    59
// QTimer::singleShot
hgs
parents:
diff changeset
    60
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    61
//
hgs
parents:
diff changeset
    62
void QTimer::singleShot( 
hgs
parents:
diff changeset
    63
        int msec,
hgs
parents:
diff changeset
    64
        QObject * receiver,
hgs
parents:
diff changeset
    65
        const char * member )
hgs
parents:
diff changeset
    66
    {
hgs
parents:
diff changeset
    67
    SMC_MOCK_METHOD3( void, int, msec, 
hgs
parents:
diff changeset
    68
        QObject *, receiver, 
hgs
parents:
diff changeset
    69
        const char *, member )
hgs
parents:
diff changeset
    70
    }
hgs
parents:
diff changeset
    71
hgs
parents:
diff changeset
    72
hgs
parents:
diff changeset
    73
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    74
// QTimer::start
hgs
parents:
diff changeset
    75
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    76
//
hgs
parents:
diff changeset
    77
void QTimer::start( 
hgs
parents:
diff changeset
    78
        int msec )
hgs
parents:
diff changeset
    79
    {
hgs
parents:
diff changeset
    80
    SMC_MOCK_METHOD1( void, int, msec )
hgs
parents:
diff changeset
    81
    }
hgs
parents:
diff changeset
    82
hgs
parents:
diff changeset
    83
hgs
parents:
diff changeset
    84
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    85
// QTimer::start
hgs
parents:
diff changeset
    86
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    87
//
hgs
parents:
diff changeset
    88
void QTimer::start(  )
hgs
parents:
diff changeset
    89
    {
hgs
parents:
diff changeset
    90
    SMC_MOCK_METHOD0( void )
hgs
parents:
diff changeset
    91
    }
hgs
parents:
diff changeset
    92
hgs
parents:
diff changeset
    93
hgs
parents:
diff changeset
    94
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    95
// QTimer::stop
hgs
parents:
diff changeset
    96
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    97
//
hgs
parents:
diff changeset
    98
void QTimer::stop(  )
hgs
parents:
diff changeset
    99
    {
hgs
parents:
diff changeset
   100
    SMC_MOCK_METHOD0( void )
hgs
parents:
diff changeset
   101
    }
hgs
parents:
diff changeset
   102
hgs
parents:
diff changeset
   103
hgs
parents:
diff changeset
   104
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   105
// QTimer::timerEvent
hgs
parents:
diff changeset
   106
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   107
//
hgs
parents:
diff changeset
   108
void QTimer::timerEvent( 
hgs
parents:
diff changeset
   109
        QTimerEvent * ev)
hgs
parents:
diff changeset
   110
    {
hgs
parents:
diff changeset
   111
    SMC_MOCK_METHOD1( void, QTimerEvent *, ev )
hgs
parents:
diff changeset
   112
    }
hgs
parents:
diff changeset
   113
hgs
parents:
diff changeset
   114