author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 23 Jun 2010 18:12:20 +0300 | |
changeset 45 | 6b911d05207e |
parent 37 | ba76fc04e6c2 |
child 46 | bc5a64e5bc3c |
permissions | -rw-r--r-- |
37 | 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 "cpplugincommon.h" |
|
20 |
||
21 |
// ============================ MEMBER FUNCTIONS =============================== |
|
22 |
||
23 |
// ----------------------------------------------------------------------------- |
|
24 |
// CpSettingsWrapper::CpSettingsWrapper |
|
25 |
// ----------------------------------------------------------------------------- |
|
26 |
// |
|
27 |
CpSettingsWrapper::CpSettingsWrapper( |
|
28 |
QObject * parent ) : QObject( parent ) |
|
29 |
{ |
|
30 |
||
31 |
} |
|
32 |
||
33 |
||
34 |
// ----------------------------------------------------------------------------- |
|
35 |
// CpSettingsWrapper::~CpSettingsWrapper |
|
36 |
// ----------------------------------------------------------------------------- |
|
37 |
// |
|
38 |
CpSettingsWrapper::~CpSettingsWrapper( ) |
|
39 |
{ |
|
40 |
||
41 |
} |
|
42 |
||
43 |
||
44 |
// ----------------------------------------------------------------------------- |
|
45 |
// CpSettingsWrapper::showCallDuration |
|
46 |
// ----------------------------------------------------------------------------- |
|
47 |
// |
|
48 |
bool CpSettingsWrapper::showCallDuration( ) |
|
49 |
{ |
|
50 |
SMC_MOCK_METHOD0( bool ) |
|
51 |
} |
|
52 |
||
53 |
||
54 |
// ----------------------------------------------------------------------------- |
|
55 |
// CpSettingsWrapper::setShowCallDuration |
|
56 |
// ----------------------------------------------------------------------------- |
|
57 |
// |
|
58 |
int CpSettingsWrapper::setShowCallDuration( bool value ) |
|
59 |
{ |
|
60 |
SMC_MOCK_METHOD1( int, bool, value ) |
|
61 |
} |
|
62 |
||
63 |
||
64 |
// ----------------------------------------------------------------------------- |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
65 |
// CpSettingsWrapper::readVtVideoSending |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
66 |
// ----------------------------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
67 |
// |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
68 |
int CpSettingsWrapper::readVtVideoSending( ) |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
69 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
70 |
SMC_MOCK_METHOD0( int ) |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
71 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
72 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
73 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
74 |
// ----------------------------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
75 |
// CpSettingsWrapper::writeVtVideoSending |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
76 |
// ----------------------------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
77 |
// |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
78 |
int CpSettingsWrapper::writeVtVideoSending( |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
79 |
int value ) |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
80 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
81 |
SMC_MOCK_METHOD1( int, int, value ) |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
82 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
83 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
84 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
85 |
// ----------------------------------------------------------------------------- |
37 | 86 |
// CpSettingsWrapper::readSoftRejectText |
87 |
// ----------------------------------------------------------------------------- |
|
88 |
// |
|
89 |
void CpSettingsWrapper::readSoftRejectText( |
|
90 |
QString & text, bool & userDefined ) |
|
91 |
{ |
|
92 |
//To improve coverage |
|
93 |
static int i=0; |
|
94 |
if(i==0){ |
|
95 |
text = "Soittelen myöhemmin..."; |
|
96 |
userDefined = true; |
|
97 |
i=1; |
|
98 |
} |
|
99 |
SMC_MOCK_METHOD2( void, QString &, text, bool, userDefined ) |
|
100 |
} |
|
101 |
||
102 |
||
103 |
// ----------------------------------------------------------------------------- |
|
104 |
// CpSettingsWrapper::writeSoftRejectText |
|
105 |
// ----------------------------------------------------------------------------- |
|
106 |
// |
|
107 |
int CpSettingsWrapper::writeSoftRejectText( |
|
108 |
const QString & text, bool userDefined ) |
|
109 |
{ |
|
110 |
SMC_MOCK_METHOD2( int, const QString &, text, bool, userDefined ) |
|
111 |
} |
|
112 |
||
113 |
||
114 |
// ----------------------------------------------------------------------------- |
|
115 |
// CpSettingsWrapper::numberGroupingSupported |
|
116 |
// ----------------------------------------------------------------------------- |
|
117 |
// |
|
118 |
bool CpSettingsWrapper::numberGroupingSupported( ) const |
|
119 |
{ |
|
120 |
SMC_MOCK_METHOD0( bool ) |
|
121 |
} |
|
122 |
||
123 |
||
124 |
// ----------------------------------------------------------------------------- |
|
125 |
// CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled |
|
126 |
// ----------------------------------------------------------------------------- |
|
127 |
// |
|
128 |
bool CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled() |
|
129 |
{ |
|
130 |
SMC_MOCK_METHOD0( bool ) |
|
131 |
} |
|
132 |
||
133 |
// ----------------------------------------------------------------------------- |
|
134 |
// CpSettingsWrapper::isPhoneOffline |
|
135 |
// ----------------------------------------------------------------------------- |
|
136 |
// |
|
137 |
bool CpSettingsWrapper::isPhoneOffline() const |
|
138 |
{ |
|
139 |
SMC_MOCK_METHOD0( bool ) |
|
140 |
} |
|
141 |
||
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
142 |
// ----------------------------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
143 |
// CpSettingsWrapper::isOngoingCall |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
144 |
// ----------------------------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
145 |
// |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
146 |
bool CpSettingsWrapper::isOngoingCall() const |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
147 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
148 |
SMC_MOCK_METHOD0( bool ) |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
149 |
} |
37 | 150 |
|
151 |
// ----------------------------------------------------------------------------- |
|
152 |
// Tools::voipSupported |
|
153 |
// ----------------------------------------------------------------------------- |
|
154 |
// |
|
155 |
bool Tools::voipSupported( ) |
|
156 |
{ |
|
157 |
SMC_MOCK_METHOD0( bool ) |
|
158 |
} |
|
159 |
||
160 |
||
161 |
// ----------------------------------------------------------------------------- |
|
162 |
// Tools::videoSupported |
|
163 |
// ----------------------------------------------------------------------------- |
|
164 |
// |
|
165 |
bool Tools::videoSupported( ) |
|
166 |
{ |
|
167 |
SMC_MOCK_METHOD0( bool ) |
|
168 |
} |
|
169 |
||
170 |
// ----------------------------------------------------------------------------- |
|
171 |
// Tools::errorCodeTextMapping |
|
172 |
// ----------------------------------------------------------------------------- |
|
173 |
// |
|
174 |
bool Tools::errorCodeTextMapping( const int errorcode, QString & errorText ) |
|
175 |
{ |
|
176 |
SMC_MOCK_METHOD2( bool, int, errorcode, QString &, errorText ) |
|
177 |
} |
|
178 |