|
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 <qtimer.h> |
|
19 |
|
20 #include <QTimerEvent> |
|
21 |
|
22 // ============================ MEMBER FUNCTIONS =============================== |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // QTimer::QTimer |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 QTimer::QTimer( |
|
29 QObject * parent ) |
|
30 //: |
|
31 //QObject( /*parent*/ ) |
|
32 { |
|
33 |
|
34 } |
|
35 |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // QTimer::~QTimer |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 QTimer::~QTimer( ) |
|
42 { |
|
43 |
|
44 } |
|
45 |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // QTimer::setInterval |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 void QTimer::setInterval( |
|
52 int msec ) |
|
53 { |
|
54 SMC_MOCK_METHOD1( void, int, msec ) |
|
55 } |
|
56 |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // QTimer::singleShot |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 void QTimer::singleShot( |
|
63 int msec, |
|
64 QObject * receiver, |
|
65 const char * member ) |
|
66 { |
|
67 SMC_MOCK_METHOD3( void, int, msec, |
|
68 QObject *, receiver, |
|
69 const char *, member ) |
|
70 } |
|
71 |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // QTimer::start |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 void QTimer::start( |
|
78 int msec ) |
|
79 { |
|
80 SMC_MOCK_METHOD1( void, int, msec ) |
|
81 } |
|
82 |
|
83 |
|
84 // ----------------------------------------------------------------------------- |
|
85 // QTimer::start |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 void QTimer::start( ) |
|
89 { |
|
90 SMC_MOCK_METHOD0( void ) |
|
91 } |
|
92 |
|
93 |
|
94 // ----------------------------------------------------------------------------- |
|
95 // QTimer::stop |
|
96 // ----------------------------------------------------------------------------- |
|
97 // |
|
98 void QTimer::stop( ) |
|
99 { |
|
100 SMC_MOCK_METHOD0( void ) |
|
101 } |
|
102 |
|
103 |
|
104 // ----------------------------------------------------------------------------- |
|
105 // QTimer::timerEvent |
|
106 // ----------------------------------------------------------------------------- |
|
107 // |
|
108 void QTimer::timerEvent( |
|
109 QTimerEvent * ev) |
|
110 { |
|
111 SMC_MOCK_METHOD1( void, QTimerEvent *, ev ) |
|
112 } |
|
113 |
|
114 |