74
|
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 "phoneaction.h"
|
|
19 |
|
|
20 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
21 |
|
|
22 |
// -----------------------------------------------------------------------------
|
|
23 |
// PhoneAction::PhoneAction
|
|
24 |
// -----------------------------------------------------------------------------
|
|
25 |
//
|
|
26 |
PhoneAction::PhoneAction( )
|
|
27 |
{
|
|
28 |
|
|
29 |
}
|
|
30 |
|
|
31 |
|
|
32 |
// -----------------------------------------------------------------------------
|
|
33 |
// PhoneAction::~PhoneAction
|
|
34 |
// -----------------------------------------------------------------------------
|
|
35 |
//
|
|
36 |
PhoneAction::~PhoneAction( )
|
|
37 |
{
|
|
38 |
|
|
39 |
}
|
|
40 |
|
|
41 |
|
|
42 |
// -----------------------------------------------------------------------------
|
|
43 |
// PhoneAction::setText
|
|
44 |
// -----------------------------------------------------------------------------
|
|
45 |
//
|
|
46 |
void PhoneAction::setText(
|
|
47 |
QString text )
|
|
48 |
{
|
|
49 |
SMC_MOCK_METHOD1( void, QString, text )
|
|
50 |
}
|
|
51 |
|
|
52 |
|
|
53 |
// -----------------------------------------------------------------------------
|
|
54 |
// PhoneAction::text
|
|
55 |
// -----------------------------------------------------------------------------
|
|
56 |
//
|
|
57 |
QString PhoneAction::text( ) const
|
|
58 |
{
|
|
59 |
SMC_MOCK_METHOD0( QString )
|
|
60 |
}
|
|
61 |
|
|
62 |
|
|
63 |
// -----------------------------------------------------------------------------
|
|
64 |
// PhoneAction::setCommand
|
|
65 |
// -----------------------------------------------------------------------------
|
|
66 |
//
|
|
67 |
void PhoneAction::setCommand(
|
|
68 |
int command )
|
|
69 |
{
|
|
70 |
SMC_MOCK_METHOD1( void, int, command )
|
|
71 |
}
|
|
72 |
|
|
73 |
|
|
74 |
// -----------------------------------------------------------------------------
|
|
75 |
// PhoneAction::command
|
|
76 |
// -----------------------------------------------------------------------------
|
|
77 |
//
|
|
78 |
int PhoneAction::command( ) const
|
|
79 |
{
|
|
80 |
SMC_MOCK_METHOD0( int )
|
|
81 |
}
|
|
82 |
|
|
83 |
|
|
84 |
// -----------------------------------------------------------------------------
|
|
85 |
// PhoneAction::icon
|
|
86 |
// -----------------------------------------------------------------------------
|
|
87 |
//
|
|
88 |
HbIcon PhoneAction::icon( ) const
|
|
89 |
{
|
|
90 |
SMC_MOCK_METHOD0( HbIcon )
|
|
91 |
}
|
|
92 |
|
|
93 |
|
|
94 |
// -----------------------------------------------------------------------------
|
|
95 |
// PhoneAction::setIcon
|
|
96 |
// -----------------------------------------------------------------------------
|
|
97 |
//
|
|
98 |
void PhoneAction::setIcon(
|
|
99 |
HbIcon icon )
|
|
100 |
{
|
|
101 |
SMC_MOCK_METHOD1( void, HbIcon, icon )
|
|
102 |
}
|
|
103 |
|
|
104 |
|
|
105 |
// -----------------------------------------------------------------------------
|
|
106 |
// PhoneAction::setDisabled
|
|
107 |
// -----------------------------------------------------------------------------
|
|
108 |
//
|
|
109 |
void PhoneAction::setDisabled(
|
|
110 |
bool disabled )
|
|
111 |
{
|
|
112 |
SMC_MOCK_METHOD1( void, bool, disabled )
|
|
113 |
}
|
|
114 |
|
|
115 |
|
|
116 |
// -----------------------------------------------------------------------------
|
|
117 |
// PhoneAction::isDisabled
|
|
118 |
// -----------------------------------------------------------------------------
|
|
119 |
//
|
|
120 |
bool PhoneAction::isDisabled( ) const
|
|
121 |
{
|
|
122 |
SMC_MOCK_METHOD0( bool )
|
|
123 |
}
|
|
124 |
|
|
125 |
|
|
126 |
// -----------------------------------------------------------------------------
|
|
127 |
// PhoneAction::setActionRole
|
|
128 |
// -----------------------------------------------------------------------------
|
|
129 |
//
|
|
130 |
void PhoneAction::setActionRole(
|
|
131 |
ActionRole role )
|
|
132 |
{
|
|
133 |
SMC_MOCK_METHOD1( void, ActionRole, role )
|
|
134 |
}
|
|
135 |
|
|
136 |
|
|
137 |
// -----------------------------------------------------------------------------
|
|
138 |
// PhoneAction::actionRole
|
|
139 |
// -----------------------------------------------------------------------------
|
|
140 |
//
|
|
141 |
PhoneAction::ActionRole PhoneAction::actionRole( ) const
|
|
142 |
{
|
|
143 |
SMC_MOCK_METHOD0( ActionRole )
|
|
144 |
}
|
|
145 |
|
|
146 |
|