|
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 <smcmockclassincludes.h> |
|
18 #include <etelmm.h> |
|
19 #include <e32math.h> |
|
20 #include <e32svr.h> |
|
21 #include <badesca.h> |
|
22 #include <centralrepository.h> |
|
23 #include <SettingsInternalCRKeys.h> |
|
24 #include <mpsetrequestobs.h> |
|
25 #include <mpsetdivertobs.h> |
|
26 #include "PsetCallDiverting.h" |
|
27 |
|
28 // ============================ MEMBER FUNCTIONS =============================== |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // CPsetCallDiverting::CPsetCallDiverting |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 CPsetCallDiverting::CPsetCallDiverting( |
|
35 RMobilePhone & aPhone ) : iPhone(aPhone) |
|
36 { |
|
37 |
|
38 } |
|
39 |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // CPsetCallDiverting::ConstructL |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 void CPsetCallDiverting::ConstructL( |
|
46 MPsetDivertObserver & /*aObserver*/ ) |
|
47 { |
|
48 |
|
49 } |
|
50 |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // CPsetCallDiverting::NewL |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 CPsetCallDiverting * CPsetCallDiverting::NewL( |
|
57 MPsetDivertObserver & aObserver, |
|
58 RMobilePhone & aPhone ) |
|
59 { |
|
60 SMC_MOCK_NEWL2( CPsetCallDiverting *, MPsetDivertObserver &, aObserver, |
|
61 RMobilePhone &, aPhone ) |
|
62 |
|
63 CPsetCallDiverting* self = new( ELeave ) CPsetCallDiverting( aPhone ); |
|
64 CleanupStack::PushL( self ); |
|
65 //self->ConstructL() |
|
66 CleanupStack::Pop( self ); |
|
67 return self; |
|
68 } |
|
69 |
|
70 |
|
71 // ----------------------------------------------------------------------------- |
|
72 // CPsetCallDiverting::~CPsetCallDiverting |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 CPsetCallDiverting::~CPsetCallDiverting( ) |
|
76 { |
|
77 |
|
78 } |
|
79 |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // CPsetCallDiverting::SetDivertingL |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 void CPsetCallDiverting::SetDivertingL( |
|
86 const TCallDivertSetting & aDivert, |
|
87 TBasicServiceGroups aBsc, |
|
88 TBool aVmbx ) |
|
89 { |
|
90 SMC_MOCK_METHOD3( void, const TCallDivertSetting &, aDivert, |
|
91 TBasicServiceGroups, aBsc, |
|
92 TBool, aVmbx ) |
|
93 } |
|
94 |
|
95 |
|
96 // ----------------------------------------------------------------------------- |
|
97 // CPsetCallDiverting::GetDivertingStatusL |
|
98 // ----------------------------------------------------------------------------- |
|
99 // |
|
100 void CPsetCallDiverting::GetDivertingStatusL( |
|
101 const TServiceGroup aServiceGroup, |
|
102 const TCallDivertingCondition aCondition, |
|
103 TBasicServiceGroups aBsc ) |
|
104 { |
|
105 SMC_MOCK_METHOD3( void, const TServiceGroup, aServiceGroup, |
|
106 const TCallDivertingCondition, aCondition, |
|
107 TBasicServiceGroups, aBsc ) |
|
108 } |
|
109 |
|
110 |
|
111 // ----------------------------------------------------------------------------- |
|
112 // CPsetCallDiverting::CancelCurrentRequest |
|
113 // ----------------------------------------------------------------------------- |
|
114 // |
|
115 TInt CPsetCallDiverting::CancelCurrentRequest( ) |
|
116 { |
|
117 SMC_MOCK_METHOD0( TInt ) |
|
118 } |
|
119 |
|
120 |
|
121 // ----------------------------------------------------------------------------- |
|
122 // CPsetCallDiverting::GetTimerValueL |
|
123 // ----------------------------------------------------------------------------- |
|
124 // |
|
125 TInt CPsetCallDiverting::GetTimerValueL( ) |
|
126 { |
|
127 SMC_MOCK_METHOD0( TInt ) |
|
128 } |
|
129 |
|
130 |
|
131 // ----------------------------------------------------------------------------- |
|
132 // CPsetCallDiverting::SetTimerValueL |
|
133 // ----------------------------------------------------------------------------- |
|
134 // |
|
135 TInt CPsetCallDiverting::SetTimerValueL( |
|
136 const TInt & aIndex ) |
|
137 { |
|
138 SMC_MOCK_METHOD1( TInt, const TInt &, aIndex ) |
|
139 } |
|
140 |
|
141 |
|
142 // ----------------------------------------------------------------------------- |
|
143 // CPsetCallDiverting::GetDefaultNumbersL |
|
144 // ----------------------------------------------------------------------------- |
|
145 // |
|
146 TInt CPsetCallDiverting::GetDefaultNumbersL( |
|
147 CDesC16ArrayFlat & aDefNumbers ) |
|
148 { |
|
149 _LIT( KNumber1,"111111" ); |
|
150 _LIT( KNumber2,"222222" ); |
|
151 |
|
152 aDefNumbers.AppendL(KNumber1()); |
|
153 aDefNumbers.AppendL(KNumber2()); |
|
154 |
|
155 SMC_MOCK_METHOD1( TInt, CDesC16ArrayFlat &, aDefNumbers ) |
|
156 } |
|
157 |
|
158 |
|
159 // ----------------------------------------------------------------------------- |
|
160 // CPsetCallDiverting::SetNewDefaultNumberL |
|
161 // ----------------------------------------------------------------------------- |
|
162 // |
|
163 TInt CPsetCallDiverting::SetNewDefaultNumberL( |
|
164 TDes & aNumber ) |
|
165 { |
|
166 SMC_MOCK_METHOD1( TInt, TDes &, aNumber ) |
|
167 } |
|
168 |
|
169 |
|
170 // ----------------------------------------------------------------------------- |
|
171 // CPsetCallDiverting::SwapDefaultNumberL |
|
172 // ----------------------------------------------------------------------------- |
|
173 // |
|
174 void CPsetCallDiverting::SwapDefaultNumberL( |
|
175 const TInt & aLocation ) |
|
176 { |
|
177 SMC_MOCK_METHOD1( void, const TInt &, aLocation ) |
|
178 } |
|
179 |
|
180 |
|
181 // ----------------------------------------------------------------------------- |
|
182 // CPsetCallDiverting::SetUsedDataNumberL |
|
183 // ----------------------------------------------------------------------------- |
|
184 // |
|
185 TInt CPsetCallDiverting::SetUsedDataNumberL( |
|
186 TTelNumber & aNumber ) |
|
187 { |
|
188 SMC_MOCK_METHOD1( TInt, TTelNumber &, aNumber ) |
|
189 } |
|
190 |
|
191 |
|
192 // ----------------------------------------------------------------------------- |
|
193 // CPsetCallDiverting::SetUsedFaxNumberL |
|
194 // ----------------------------------------------------------------------------- |
|
195 // |
|
196 TInt CPsetCallDiverting::SetUsedFaxNumberL( |
|
197 TTelNumber & aNumber ) |
|
198 { |
|
199 SMC_MOCK_METHOD1( TInt, TTelNumber &, aNumber ) |
|
200 } |
|
201 |
|
202 |
|
203 // ----------------------------------------------------------------------------- |
|
204 // CPsetCallDiverting::GetUsedFaxNumberLC |
|
205 // ----------------------------------------------------------------------------- |
|
206 // |
|
207 HBufC * CPsetCallDiverting::GetUsedFaxNumberLC( ) |
|
208 { |
|
209 SMC_MOCK_METHOD0( HBufC * ) |
|
210 } |
|
211 |
|
212 |
|
213 // ----------------------------------------------------------------------------- |
|
214 // CPsetCallDiverting::GetUsedDataNumberLC |
|
215 // ----------------------------------------------------------------------------- |
|
216 // |
|
217 HBufC * CPsetCallDiverting::GetUsedDataNumberLC( ) |
|
218 { |
|
219 SMC_MOCK_METHOD0( HBufC * ) |
|
220 } |
|
221 |
|
222 |
|
223 // ----------------------------------------------------------------------------- |
|
224 // CPsetCallDiverting::SetRequestObserver |
|
225 // ----------------------------------------------------------------------------- |
|
226 // |
|
227 void CPsetCallDiverting::SetRequestObserver( |
|
228 MPsetRequestObserver * aObs ) |
|
229 { |
|
230 SMC_MOCK_METHOD1( void, MPsetRequestObserver *, aObs ) |
|
231 } |
|
232 |
|
233 |
|
234 // ----------------------------------------------------------------------------- |
|
235 // CPsetCallDiverting::VoiceMailQueryL |
|
236 // ----------------------------------------------------------------------------- |
|
237 // |
|
238 void CPsetCallDiverting::VoiceMailQueryL( |
|
239 TDes & aTelNumber ) |
|
240 { |
|
241 SMC_MOCK_METHOD1( void, TDes &, aTelNumber ) |
|
242 } |
|
243 |
|
244 |
|
245 // ----------------------------------------------------------------------------- |
|
246 // CPsetCallDiverting::VideoMailQueryL |
|
247 // ----------------------------------------------------------------------------- |
|
248 // |
|
249 void CPsetCallDiverting::VideoMailQueryL( |
|
250 TDes & aTelNumber ) |
|
251 { |
|
252 SMC_MOCK_METHOD1( void, TDes &, aTelNumber ) |
|
253 } |
|
254 |
|
255 |