|
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 // ----------------------------------------------------------------------------- |
|
65 // CpSettingsWrapper::readSoftRejectText |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 void CpSettingsWrapper::readSoftRejectText( |
|
69 QString & text, bool & userDefined ) |
|
70 { |
|
71 //To improve coverage |
|
72 static int i=0; |
|
73 if(i==0){ |
|
74 text = "Soittelen myöhemmin..."; |
|
75 userDefined = true; |
|
76 i=1; |
|
77 } |
|
78 SMC_MOCK_METHOD2( void, QString &, text, bool, userDefined ) |
|
79 } |
|
80 |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // CpSettingsWrapper::writeSoftRejectText |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 int CpSettingsWrapper::writeSoftRejectText( |
|
87 const QString & text, bool userDefined ) |
|
88 { |
|
89 SMC_MOCK_METHOD2( int, const QString &, text, bool, userDefined ) |
|
90 } |
|
91 |
|
92 |
|
93 // ----------------------------------------------------------------------------- |
|
94 // CpSettingsWrapper::numberGroupingSupported |
|
95 // ----------------------------------------------------------------------------- |
|
96 // |
|
97 bool CpSettingsWrapper::numberGroupingSupported( ) const |
|
98 { |
|
99 SMC_MOCK_METHOD0( bool ) |
|
100 } |
|
101 |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 bool CpSettingsWrapper::isFeatureCallWaitingDistiquishNotProvisionedEnabled() |
|
108 { |
|
109 SMC_MOCK_METHOD0( bool ) |
|
110 } |
|
111 |
|
112 // ----------------------------------------------------------------------------- |
|
113 // CpSettingsWrapper::isPhoneOffline |
|
114 // ----------------------------------------------------------------------------- |
|
115 // |
|
116 bool CpSettingsWrapper::isPhoneOffline() const |
|
117 { |
|
118 SMC_MOCK_METHOD0( bool ) |
|
119 } |
|
120 |
|
121 |
|
122 // ----------------------------------------------------------------------------- |
|
123 // Tools::voipSupported |
|
124 // ----------------------------------------------------------------------------- |
|
125 // |
|
126 bool Tools::voipSupported( ) |
|
127 { |
|
128 SMC_MOCK_METHOD0( bool ) |
|
129 } |
|
130 |
|
131 |
|
132 // ----------------------------------------------------------------------------- |
|
133 // Tools::videoSupported |
|
134 // ----------------------------------------------------------------------------- |
|
135 // |
|
136 bool Tools::videoSupported( ) |
|
137 { |
|
138 SMC_MOCK_METHOD0( bool ) |
|
139 } |
|
140 |
|
141 // ----------------------------------------------------------------------------- |
|
142 // Tools::errorCodeTextMapping |
|
143 // ----------------------------------------------------------------------------- |
|
144 // |
|
145 bool Tools::errorCodeTextMapping( const int errorcode, QString & errorText ) |
|
146 { |
|
147 SMC_MOCK_METHOD2( bool, int, errorcode, QString &, errorText ) |
|
148 } |
|
149 |