24
|
1 |
// Copyright (c) 2000-2009 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 "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 |
/**
|
|
17 |
@file
|
|
18 |
@internalComponent
|
|
19 |
*/
|
|
20 |
|
|
21 |
#ifndef _TE_MMPHONE_H_
|
|
22 |
#define _TE_MMPHONE_H_
|
|
23 |
|
|
24 |
#include <etelmm.h>
|
|
25 |
#include <e32base.h>
|
|
26 |
#include <mmretrieve.h>
|
|
27 |
#include "TE_mmcanceller.h"
|
|
28 |
#include "TE_mmcall.h"
|
|
29 |
|
|
30 |
class CTestPhone : public CEtelMMTestStepBase
|
|
31 |
{
|
|
32 |
public:
|
|
33 |
TInt iTestCount;
|
|
34 |
CTestPhone() ;
|
|
35 |
~CTestPhone(){} ;
|
|
36 |
virtual enum TVerdict doTestStepL();
|
|
37 |
/*static*/ void ValidatePhoneStoreInfo(const RMobilePhoneStore::TMobilePhoneStoreInfoV1 &aSyncStoreInfo, TInt aSlot);
|
|
38 |
/*static*/ void ValidateCustomerServiceProfile(const RMobilePhone::TMobilePhoneCspFileV1 &aSyncCspFile);
|
|
39 |
/*static*/ void ValidateServiceTable(const RMobilePhone::TMobilePhoneServiceTableV1 &aSyncServiceTable);
|
|
40 |
/*static*/ void ValidateServiceTable(const RMobilePhone::TMobilePhoneServiceTableV2 &aSyncServiceTable);
|
|
41 |
/*static*/ void ValidatePhoneId(const RMobilePhone::TMobilePhoneIdentityV1 &aSyncPhoneId);
|
|
42 |
/*static*/ void ValidateHomeNetwork(const RMobilePhone::TMobilePhoneNetworkInfoV1 &aSyncHomeNetwork);
|
|
43 |
/*static*/ void ValidateCurrentNetwork(const RMobilePhone::TMobilePhoneNetworkInfoV1 &aSyncCurrentNetwork,
|
|
44 |
const RMobilePhone::TMobilePhoneLocationAreaV1 &aSyncLocArea, TBool aValidateArea = ETrue);
|
|
45 |
|
|
46 |
/*static*/ void TestHSUPAMobileNetworkL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
47 |
/*static*/ void TestTMobilePhoneNetworkInfoV8(TRequestStatus &aReqStatus);
|
|
48 |
|
|
49 |
|
|
50 |
/*static*/ void ValidateCurrentNetworkforHSUPA(const RMobilePhone::TMobilePhoneNetworkInfoV8 &aSyncCurrentNetwork,
|
|
51 |
const RMobilePhone::TMobilePhoneLocationAreaV1 &aSyncLocArea);
|
|
52 |
|
|
53 |
/*static*/ void ValidateHomeNetworkforHSUPA(const RMobilePhone::TMobilePhoneNetworkInfoV8 &aSyncHomeNetwork);
|
|
54 |
|
|
55 |
/*static*/ void ValidateNotifyCurrentNetworkChangeforHSUPA(const RMobilePhone::TMobilePhoneNetworkInfoV8 &aSyncCurrentNetwork,const RMobilePhone::TMobilePhoneLocationAreaV1 &aSyncLocArea);
|
|
56 |
/*static*/ void TestCRetrievePhoneDetectedNetworksL(RMobilePhone& aPhone,TRequestStatus &aReqStatus);
|
|
57 |
|
|
58 |
/*static*/ void ValidateNotifyCurrentNetworkChange(const RMobilePhone::TMobilePhoneNetworkInfoV1 &aSyncCurrentNetwork , const RMobilePhone::TMobilePhoneLocationAreaV1 &aSyncLocArea, TBool aValidateArea = ETrue);
|
|
59 |
|
|
60 |
/*static*/ void ValidateCurrentNetworkISV(const RMobilePhone::TEtel3rdPartyMobileNetworkInfoV1 &aSyncCurrentNetworkISV,
|
|
61 |
const RMobilePhone::TMobilePhoneLocationAreaV1 &aSyncLocArea);
|
|
62 |
/*static*/ void ValidateNotifyCurrentNetworkISVChange(const RMobilePhone::TEtel3rdPartyMobileNetworkInfoV1 &aSyncCurrentNetworkISV,
|
|
63 |
const RMobilePhone::TMobilePhoneLocationAreaV1 &aSyncLocArea);
|
|
64 |
/*static*/ void ValidateNITZInfo(const RMobilePhone::TMobilePhoneNITZ &aNITZInfo);
|
|
65 |
/*static*/ void ValidateCostInfo(const RMobilePhone::TMobilePhoneCostInfoV1 &aInfo);
|
|
66 |
/*static*/ void ValidateMulticallParams(const RMobilePhone::TMobilePhoneMulticallSettingsV1 &aSettings, TInt aCount);
|
|
67 |
/*static*/ void ValidateSPName(const RMobilePhone::TMobilePhoneServiceProviderNameV2 &aName);
|
|
68 |
|
|
69 |
/*static*/ void TestCapabilityL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
70 |
/*static*/ void TestSimAccessL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
71 |
/*static*/ void TestMobilePowerL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
72 |
/*static*/ void TestMobileSignalL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
73 |
/*static*/ void TestMobileIndicatorL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
74 |
/*static*/ void TestMobileIdentityL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
75 |
/*static*/ void TestMobileDTMFL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
76 |
/*static*/ void TestMobileNetworkL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
77 |
/*static*/ void TestMobileNetworkISVL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
78 |
/*static*/ void TestMobileCallServiceCapsL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
79 |
/*static*/ void TestMobilePrivacyL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
80 |
/*static*/ void TestMobileUserNetworkL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
81 |
/*static*/ void TestMobileCallForwardingL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
82 |
/*static*/ void TestMobileIdentityServiceL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
83 |
/*static*/ void TestMobileCallBarringL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
84 |
/*static*/ void TestMobileCallWaitingL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
85 |
/*static*/ void TestMobileCallCompletionL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
86 |
/*static*/ void TestMobileAlternatingCallL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
87 |
/*static*/ void TestMobileAlternateLineServiceL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
88 |
/*static*/ void TestMobileCallCostL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
89 |
/*static*/ void TestMobileSecurityL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
90 |
/*static*/ void TestMobileMessageWaitingL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
91 |
/*static*/ void TestMobileFixedDiallingNumbersL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
92 |
/*static*/ void TestMobileMulticallSettings(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
93 |
/*static*/ void TestMobileIncomingCallTypes(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
94 |
/*static*/ void TestMobileUUSSetting(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
95 |
/*static*/ void TestMultimediaCallSettings(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
96 |
/*static*/ void TestNetworkSecurity(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
97 |
/*static*/ void TestUSimHandling(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
98 |
void TestMobileMailboxNumbersFunctionality(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
99 |
void TestMobileMmsFunctionality(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
100 |
void TestMobileAPNControlList(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
101 |
void TestMobileAPNControlListServiceStatus(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
102 |
void TestMobileAirTime(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
103 |
void TestTerminateAllCalls(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
104 |
void TestTerminateActiveCalls(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
105 |
void TestMobileAutoRedial(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
106 |
void TestMobilePersonalisation(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
107 |
void TestSmartCardHandling(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
108 |
void TestGBAAuthenticationL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
109 |
void TestMBMSAuthenticationL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
110 |
void TestWlanParametersL(RMobilePhone& aPhone, TRequestStatus &aReqStatus);
|
|
111 |
void TestMobileCellInfoL(RMobilePhone& aPhone, TRequestStatus& aReqStatus);
|
|
112 |
|
|
113 |
/*private:*/
|
|
114 |
class CTestGetDetectedNetworks : public CActive
|
|
115 |
{
|
|
116 |
public:
|
|
117 |
enum TTestVersion
|
|
118 |
{
|
|
119 |
ETestV1,
|
|
120 |
ETestV2,
|
|
121 |
ETestV5,
|
|
122 |
ETestV8
|
|
123 |
};
|
|
124 |
|
|
125 |
static CTestGetDetectedNetworks* NewLC(RMobilePhone& aPhone, CTestPhone* aTestPhone);
|
|
126 |
~CTestGetDetectedNetworks();
|
|
127 |
void SetTestVersion(TTestVersion aVersion);
|
|
128 |
void TestRetrieve();
|
|
129 |
void TestCancel();
|
|
130 |
protected:
|
|
131 |
CTestGetDetectedNetworks(RMobilePhone& aPhone, CTestPhone* aTestPhone);
|
|
132 |
void ConstructL();
|
|
133 |
void RunL();
|
|
134 |
void DoCancel();
|
|
135 |
void Start();
|
|
136 |
CTestCanceller* RetrieveCancelPtr();
|
|
137 |
TInt CheckResults();
|
|
138 |
TInt CheckResultsV2();
|
|
139 |
TInt CheckResultsV5();
|
|
140 |
TInt CheckResultsV8();
|
|
141 |
protected:
|
|
142 |
CRetrieveMobilePhoneDetectedNetworks* iRetrieve;
|
|
143 |
CTestCanceller* iCanceller;
|
|
144 |
RMobilePhone& iPhone;
|
|
145 |
CTestPhone* iTestPhone;
|
|
146 |
private:
|
|
147 |
TTestVersion iTestVersion; //Used to determine whether to run the test for V1,
|
|
148 |
//V2 or V5 list class and retrieval method.
|
|
149 |
};
|
|
150 |
|
|
151 |
class CTestGetCFStatus : public CActive
|
|
152 |
{
|
|
153 |
public:
|
|
154 |
static CTestGetCFStatus* NewLC(RMobilePhone& aPhone, CTestPhone* aTestPhone);
|
|
155 |
~CTestGetCFStatus();
|
|
156 |
void Start();
|
|
157 |
void StartSingleServiceGroup();
|
|
158 |
CTestCanceller* RetrieveCancelPtr();
|
|
159 |
protected:
|
|
160 |
CTestGetCFStatus(RMobilePhone& aPhone, CTestPhone* aTestPhone);
|
|
161 |
void ConstructL();
|
|
162 |
void RunL();
|
|
163 |
void DoCancel();
|
|
164 |
TInt CheckResults();
|
|
165 |
TInt CheckSingleServiceGroupResults();
|
|
166 |
protected:
|
|
167 |
CRetrieveMobilePhoneCFList* iRetrieve;
|
|
168 |
CTestCanceller* iCanceller;
|
|
169 |
RMobilePhone& iPhone;
|
|
170 |
CTestPhone* iTestPhone;
|
|
171 |
TBool iSingleServiceGroupTest;
|
|
172 |
};
|
|
173 |
|
|
174 |
class CTestGetCB : public CActive
|
|
175 |
{
|
|
176 |
public:
|
|
177 |
static CTestGetCB* NewLC(RMobilePhone& aPhone, CTestPhone* aTestPhone);
|
|
178 |
~CTestGetCB();
|
|
179 |
void Start();
|
|
180 |
CTestCanceller* RetrieveCancelPtr();
|
|
181 |
protected:
|
|
182 |
CTestGetCB(RMobilePhone& aPhone, CTestPhone* aTestPhone);
|
|
183 |
void ConstructL();
|
|
184 |
void RunL();
|
|
185 |
void DoCancel();
|
|
186 |
TInt CheckResults();
|
|
187 |
protected:
|
|
188 |
CRetrieveMobilePhoneCBList* iRetrieve;
|
|
189 |
CTestCanceller* iCanceller;
|
|
190 |
RMobilePhone& iPhone;
|
|
191 |
CTestPhone* iTestPhone;
|
|
192 |
};
|
|
193 |
|
|
194 |
|
|
195 |
class CTestGetCW : public CActive
|
|
196 |
{
|
|
197 |
public:
|
|
198 |
static CTestGetCW* NewLC(RMobilePhone& aPhone, CTestPhone* aTestPhone);
|
|
199 |
~CTestGetCW();
|
|
200 |
void Start();
|
|
201 |
CTestCanceller* RetrieveCancelPtr();
|
|
202 |
protected:
|
|
203 |
CTestGetCW(RMobilePhone& aPhone, CTestPhone* aTestPhone);
|
|
204 |
void ConstructL();
|
|
205 |
void RunL();
|
|
206 |
void DoCancel();
|
|
207 |
TInt CheckResults();
|
|
208 |
protected:
|
|
209 |
CRetrieveMobilePhoneCWList* iRetrieve;
|
|
210 |
CTestCanceller* iCanceller;
|
|
211 |
RMobilePhone& iPhone;
|
|
212 |
CTestPhone* iTestPhone;
|
|
213 |
};
|
|
214 |
|
|
215 |
class CTestGetCcbs : public CActive
|
|
216 |
{
|
|
217 |
public:
|
|
218 |
static CTestGetCcbs* NewLC(RMobilePhone& aPhone, CTestPhone* aTestPhone);
|
|
219 |
~CTestGetCcbs();
|
|
220 |
void Start();
|
|
221 |
CTestCanceller* RetrieveCancelPtr();
|
|
222 |
protected:
|
|
223 |
CTestGetCcbs(RMobilePhone& aPhone, CTestPhone* aTestPhone);
|
|
224 |
void ConstructL();
|
|
225 |
void RunL();
|
|
226 |
void DoCancel();
|
|
227 |
TInt CheckResults();
|
|
228 |
protected:
|
|
229 |
CRetrieveMobilePhoneCcbsList* iRetrieve;
|
|
230 |
CTestCanceller* iCanceller;
|
|
231 |
RMobilePhone& iPhone;
|
|
232 |
CTestPhone* iTestPhone;
|
|
233 |
};
|
|
234 |
|
|
235 |
class CTestGetPreferredNetworks : public CActive
|
|
236 |
{
|
|
237 |
public:
|
|
238 |
static CTestGetPreferredNetworks* NewLC(RMobilePhone& aPhone, CTestPhone* aTestPhone);
|
|
239 |
~CTestGetPreferredNetworks();
|
|
240 |
void Start();
|
|
241 |
CTestCanceller* RetrieveCancelPtr();
|
|
242 |
protected:
|
|
243 |
CTestGetPreferredNetworks(RMobilePhone& aPhone, CTestPhone* aTestPhone);
|
|
244 |
void ConstructL();
|
|
245 |
void RunL();
|
|
246 |
void DoCancel();
|
|
247 |
TInt CheckResults();
|
|
248 |
TInt CheckPrefNetworksErrorResultsL();
|
|
249 |
protected:
|
|
250 |
CRetrieveMobilePhonePreferredNetworks* iRetrieve;
|
|
251 |
CTestCanceller* iCanceller;
|
|
252 |
RMobilePhone& iPhone;
|
|
253 |
CTestPhone* iTestPhone;
|
|
254 |
};
|
|
255 |
|
|
256 |
class CTestRetrieveMobilePhoneAuthenticationIds : public CActive
|
|
257 |
{
|
|
258 |
public:
|
|
259 |
enum TTypeOfAuth
|
|
260 |
{
|
|
261 |
EGba,
|
|
262 |
EMbms
|
|
263 |
};
|
|
264 |
|
|
265 |
static CTestRetrieveMobilePhoneAuthenticationIds* NewLC(RMobilePhone& aPhone,CTestPhone* aTestPhone);
|
|
266 |
~CTestRetrieveMobilePhoneAuthenticationIds();
|
|
267 |
void SetAuthType(TTypeOfAuth aVersion);
|
|
268 |
void TestRetrieve(RMobilePhone::TAuthData aAuthData,TBool aStartReqd);
|
|
269 |
void TestCancel(RMobilePhone::TAuthData aAuthData);
|
|
270 |
protected:
|
|
271 |
CTestRetrieveMobilePhoneAuthenticationIds(RMobilePhone& aPhone,CTestPhone* aTestPhone);
|
|
272 |
void ConstructL();
|
|
273 |
void RunL();
|
|
274 |
void DoCancel();
|
|
275 |
void Start(RMobilePhone::TAuthData aAuthData);
|
|
276 |
CTestCanceller* RetrieveCancelPtr();
|
|
277 |
TInt CheckGBAResults();
|
|
278 |
TInt CheckMBMSResults();
|
|
279 |
TInt CheckGBAErrorResults();
|
|
280 |
TInt CheckMBMSErrorResults();
|
|
281 |
protected:
|
|
282 |
CRetrieveMobilePhoneAuthenticationIds* iRetrieveAuthId;
|
|
283 |
CTestCanceller* iCanceller;
|
|
284 |
RMobilePhone& iPhone;
|
|
285 |
CTestPhone* iTestPhone;
|
|
286 |
RMobilePhone::TAuthData iListType;
|
|
287 |
private:
|
|
288 |
TTypeOfAuth iAuthType; //Used to determine whether to run the test for Gba or Mbms,
|
|
289 |
};
|
|
290 |
|
|
291 |
class CTestRetrieveMobilePhonePreferredWlanSIDs : public CActive
|
|
292 |
{
|
|
293 |
public:
|
|
294 |
static CTestRetrieveMobilePhonePreferredWlanSIDs* NewLC(RMobilePhone& aPhone,CTestPhone* aTestPhone);
|
|
295 |
~CTestRetrieveMobilePhonePreferredWlanSIDs();
|
|
296 |
void TestRetrieve(TBool aStartReqd);
|
|
297 |
void TestCancel();
|
|
298 |
protected:
|
|
299 |
CTestRetrieveMobilePhonePreferredWlanSIDs(RMobilePhone& aPhone,CTestPhone* aTestPhone);
|
|
300 |
void ConstructL();
|
|
301 |
void RunL();
|
|
302 |
void DoCancel();
|
|
303 |
void Start();
|
|
304 |
CTestCanceller* RetrieveCancelPtr();
|
|
305 |
TInt CheckWLANResults();
|
|
306 |
TInt CheckWLANErrorResultsL();
|
|
307 |
protected:
|
|
308 |
CRetrieveMobilePhonePreferredWlanSIDs* iRetrieve;
|
|
309 |
CTestCanceller* iCanceller;
|
|
310 |
RMobilePhone& iPhone;
|
|
311 |
CTestPhone* iTestPhone;
|
|
312 |
};
|
|
313 |
|
|
314 |
friend class CTestGetDetectedNetworks;
|
|
315 |
friend class CTestGetCFStatus;
|
|
316 |
friend class CTestGetCB;
|
|
317 |
friend class CTestGetCW;
|
|
318 |
friend class CTestGetCcbs;
|
|
319 |
friend class CTestGetPreferredNetworks;
|
|
320 |
|
|
321 |
};
|
|
322 |
|
|
323 |
#endif
|