24
|
1 |
// Copyright (c) 2003-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 |
#ifndef __TE_ETELISVPHONESETTINGS_H_
|
|
18 |
#define __TE_ETELISVPHONESETTINGS_H_
|
|
19 |
|
|
20 |
/**
|
|
21 |
* This class implements a state machine that executes a series of asynchronous
|
|
22 |
* requests.
|
|
23 |
*/
|
|
24 |
|
|
25 |
class CTestGetPhoneId : public CEtelIsvTestStep
|
|
26 |
{
|
|
27 |
public:
|
|
28 |
CTestGetPhoneId() ;
|
|
29 |
~CTestGetPhoneId(){} ;
|
|
30 |
virtual enum TVerdict doTestStepL();
|
|
31 |
};
|
|
32 |
|
|
33 |
class CTestGetPhoneIdError : public CEtelIsvTestStep
|
|
34 |
{
|
|
35 |
public:
|
|
36 |
CTestGetPhoneIdError() ;
|
|
37 |
~CTestGetPhoneIdError(){} ;
|
|
38 |
virtual enum TVerdict doTestStepL();
|
|
39 |
};
|
|
40 |
|
|
41 |
class CTestGetPhoneIdAct : public CEtelIsvActBase
|
|
42 |
{
|
|
43 |
public: // functions
|
|
44 |
static CTestGetPhoneIdAct* NewLC(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, TBool aUseMacros = ETrue);
|
|
45 |
void ConstructL();
|
|
46 |
~CTestGetPhoneIdAct();
|
|
47 |
void GetPhoneId(TDes8& aExpectedPhoneIdPckg, TRequestStatus aExpStat, TBool aCheckConcurrency = EFalse);
|
|
48 |
void DoCancel();
|
|
49 |
void RunL();
|
|
50 |
protected:
|
|
51 |
CTestGetPhoneIdAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, TBool aUseMacros);
|
|
52 |
public:
|
|
53 |
CTelephony::TPhoneIdV1 iPhoneId;
|
|
54 |
private: // data
|
|
55 |
TDes8* iExpectedPhoneIdPckg;
|
|
56 |
TBool iUseMacros;
|
|
57 |
TPckgBuf<CTelephony::TPhoneIdV1> iPhoneIdBuff;
|
|
58 |
CTelephony::TPhoneIdV1Pckg iPhoneIdPckg;
|
|
59 |
};
|
|
60 |
|
|
61 |
class CTestGetSubscriberId : public CEtelIsvTestStep
|
|
62 |
{
|
|
63 |
public:
|
|
64 |
CTestGetSubscriberId() ;
|
|
65 |
~CTestGetSubscriberId(){} ;
|
|
66 |
virtual enum TVerdict doTestStepL();
|
|
67 |
};
|
|
68 |
|
|
69 |
class CTestGetSubscriberIdError : public CEtelIsvTestStep
|
|
70 |
{
|
|
71 |
public:
|
|
72 |
CTestGetSubscriberIdError() ;
|
|
73 |
~CTestGetSubscriberIdError(){} ;
|
|
74 |
virtual enum TVerdict doTestStepL();
|
|
75 |
};
|
|
76 |
|
|
77 |
class CTestGetSubscriberIdAct : public CEtelIsvActBase
|
|
78 |
{
|
|
79 |
public: // functions
|
|
80 |
static CTestGetSubscriberIdAct* NewLC(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony);
|
|
81 |
void ConstructL();
|
|
82 |
~CTestGetSubscriberIdAct();
|
|
83 |
void GetSubscriberId(TDes8& aExpSubscriberId, TRequestStatus aExpStat, TBool aCheckConcurrency = EFalse);
|
|
84 |
void DoCancel();
|
|
85 |
void RunL();
|
|
86 |
protected:
|
|
87 |
CTestGetSubscriberIdAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony);
|
|
88 |
private: // data
|
|
89 |
CTelephony::TSubscriberIdV1 iSubscriberId;
|
|
90 |
TDes8* iExpSubscriberIdPckg;
|
|
91 |
|
|
92 |
TPckgBuf<CTelephony::TSubscriberIdV1> iSubscriberIdBuff;
|
|
93 |
CTelephony::TSubscriberIdV1Pckg iSubscriberIdPckg;
|
|
94 |
};
|
|
95 |
|
|
96 |
class CTestGetIndicator : public CEtelIsvTestStep
|
|
97 |
{
|
|
98 |
public:
|
|
99 |
CTestGetIndicator() ;
|
|
100 |
~CTestGetIndicator(){} ;
|
|
101 |
virtual enum TVerdict doTestStepL();
|
|
102 |
};
|
|
103 |
|
|
104 |
class CTestGetIndicatorAct : public CEtelIsvActBase
|
|
105 |
{
|
|
106 |
public: // functions
|
|
107 |
static CTestGetIndicatorAct* NewLC(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony);
|
|
108 |
void ConstructL();
|
|
109 |
~CTestGetIndicatorAct();
|
|
110 |
void GetPhoneIndicator(TUint32 aExpIndCaps, TUint32 aExpInd,TRequestStatus aExpStat, TBool aCheckConcurrency = EFalse);
|
|
111 |
void DoCancel();
|
|
112 |
void RunL();
|
|
113 |
protected:
|
|
114 |
CTestGetIndicatorAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony);
|
|
115 |
private: // data
|
|
116 |
CTelephony::TIndicatorV1 iIndicator;
|
|
117 |
TUint32 iExpIndCaps;
|
|
118 |
TUint32 iExpInd;
|
|
119 |
TRequestStatus iExpStat;
|
|
120 |
TPckgBuf<CTelephony::TIndicatorV1> iIndicatorBuff;
|
|
121 |
CTelephony::TIndicatorV1Pckg iIndicatorPckg;
|
|
122 |
};
|
|
123 |
|
|
124 |
class CTestGetBatteryInfo : public CEtelIsvTestStep
|
|
125 |
{
|
|
126 |
public:
|
|
127 |
CTestGetBatteryInfo() ;
|
|
128 |
~CTestGetBatteryInfo(){} ;
|
|
129 |
virtual enum TVerdict doTestStepL();
|
|
130 |
};
|
|
131 |
|
|
132 |
class CTestGetBatteryInfoAct : public CEtelIsvActBase
|
|
133 |
{
|
|
134 |
public: // functions
|
|
135 |
static CTestGetBatteryInfoAct* NewLC(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony);
|
|
136 |
void ConstructL();
|
|
137 |
~CTestGetBatteryInfoAct();
|
|
138 |
void GetBatteryInfo(TDes8& aBatteryExpInfoPckg, TRequestStatus aExpStat, TBool aCheckConcurrency = EFalse);
|
|
139 |
void DoCancel();
|
|
140 |
void RunL();
|
|
141 |
protected:
|
|
142 |
CTestGetBatteryInfoAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony);
|
|
143 |
private: // data
|
|
144 |
CTelephony::TBatteryInfoV1 iBatteryInfo;
|
|
145 |
TDes8* iBatteryExpInfoPckg;
|
|
146 |
|
|
147 |
TPckgBuf<CTelephony::TBatteryInfoV1> iBatteryInfoBuff;
|
|
148 |
CTelephony::TBatteryInfoV1Pckg iBatteryInfoPckg;
|
|
149 |
};
|
|
150 |
|
|
151 |
class CTestGetSignalStrength : public CEtelIsvTestStep
|
|
152 |
{
|
|
153 |
public:
|
|
154 |
CTestGetSignalStrength() ;
|
|
155 |
~CTestGetSignalStrength(){} ;
|
|
156 |
virtual enum TVerdict doTestStepL();
|
|
157 |
};
|
|
158 |
|
|
159 |
class CTestGetSignalStrengthAct : public CEtelIsvActBase
|
|
160 |
{
|
|
161 |
public: // functions
|
|
162 |
static CTestGetSignalStrengthAct* NewLC(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, TBool aUseMacros = ETrue);
|
|
163 |
void ConstructL();
|
|
164 |
~CTestGetSignalStrengthAct();
|
|
165 |
void GetSignalStrength(TDes8& aExpSignalStrengthPckg, TRequestStatus aExpStat, TBool aCheckConcurrency = EFalse);
|
|
166 |
void DoCancel();
|
|
167 |
void RunL();
|
|
168 |
protected:
|
|
169 |
CTestGetSignalStrengthAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, TBool aUseMacros);
|
|
170 |
public:
|
|
171 |
CTelephony::TSignalStrengthV1 iSignalStrength;
|
|
172 |
private: // data
|
|
173 |
TDes8* iExpSignalStrengthPckg;
|
|
174 |
TBool iUseMacros;
|
|
175 |
|
|
176 |
TPckgBuf<CTelephony::TSignalStrengthV1> iSignalStrengthBuff;
|
|
177 |
CTelephony::TSignalStrengthV1Pckg iSignalStrengthPckg;
|
|
178 |
};
|
|
179 |
|
|
180 |
class CTestGetLockInfo : public CEtelIsvTestStep
|
|
181 |
{
|
|
182 |
public:
|
|
183 |
CTestGetLockInfo() ;
|
|
184 |
~CTestGetLockInfo(){} ;
|
|
185 |
virtual enum TVerdict doTestStepL();
|
|
186 |
};
|
|
187 |
|
|
188 |
class CTestGetLockInfoAct : public CEtelIsvActBase
|
|
189 |
{
|
|
190 |
public: // functions
|
|
191 |
static CTestGetLockInfoAct* NewLC(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony);
|
|
192 |
void ConstructL();
|
|
193 |
~CTestGetLockInfoAct();
|
|
194 |
void GetLockInfo(CTelephony::TIccLock aLock, TDes8& aExpLockInfoPckg, TRequestStatus aExpStat, TBool aCheckConcurrency = EFalse);
|
|
195 |
void DoCancel();
|
|
196 |
void RunL();
|
|
197 |
protected:
|
|
198 |
CTestGetLockInfoAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony);
|
|
199 |
private: // data
|
|
200 |
CTelephony::TIccLockInfoV1 iLockInfo;
|
|
201 |
TDes8* iExpLockInfoPckg;
|
|
202 |
CTelephony::TIccLock iLock;
|
|
203 |
|
|
204 |
TPckgBuf<CTelephony::TIccLockInfoV1> iLockInfoBuff;
|
|
205 |
CTelephony::TIccLockInfoV1Pckg iLockInfoPckg;
|
|
206 |
};
|
|
207 |
|
|
208 |
class CTestSendDTMFTones : public CEtelIsvTestStep
|
|
209 |
{
|
|
210 |
public:
|
|
211 |
CTestSendDTMFTones() ;
|
|
212 |
~CTestSendDTMFTones(){} ;
|
|
213 |
virtual enum TVerdict doTestStepL();
|
|
214 |
};
|
|
215 |
|
|
216 |
class CTestSendDTMFTonesAct : public CEtelIsvActBase
|
|
217 |
{
|
|
218 |
public: // functions
|
|
219 |
static CTestSendDTMFTonesAct* NewLC(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony);
|
|
220 |
void ConstructL();
|
|
221 |
~CTestSendDTMFTonesAct();
|
|
222 |
void SendDTMFTone(const TDesC& aTones, TRequestStatus aExpStat, TBool aCheckConcurrency = EFalse);
|
|
223 |
void DoCancel();
|
|
224 |
void RunL();
|
|
225 |
protected:
|
|
226 |
CTestSendDTMFTonesAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony);
|
|
227 |
private:
|
|
228 |
CTelephony::TCallId iCallId;
|
|
229 |
};
|
|
230 |
|
|
231 |
class CTestFlightModeWithPublishSubscribe : public CEtelIsvTestStep
|
|
232 |
{
|
|
233 |
public:
|
|
234 |
CTestFlightModeWithPublishSubscribe() ;
|
|
235 |
~CTestFlightModeWithPublishSubscribe(){} ;
|
|
236 |
virtual enum TVerdict doTestStepL();
|
|
237 |
};
|
|
238 |
|
|
239 |
class CTestPhoneFuncFlightModeOnWithPublishSubscribe : public CEtelIsvTestStep
|
|
240 |
{
|
|
241 |
public:
|
|
242 |
CTestPhoneFuncFlightModeOnWithPublishSubscribe() ;
|
|
243 |
~CTestPhoneFuncFlightModeOnWithPublishSubscribe(){} ;
|
|
244 |
virtual enum TVerdict doTestStepL();
|
|
245 |
};
|
|
246 |
|
|
247 |
#endif
|