|
1 // Copyright (c) 2007-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 // Test step declarations for the CallBarring functional unit. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @internalTechnology |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef __CCTSYINTEGRATIONTESTCALLBARRING_H__ |
|
24 #define __CCTSYINTEGRATIONTESTCALLBARRING_H__ |
|
25 |
|
26 |
|
27 #include <test/testexecutestepbase.h> |
|
28 #include "cctsyintegrationtestsuitebase.h" |
|
29 #include "listretrievalhelpers.h" |
|
30 #include "tsupplementaltsytesthelper.h" |
|
31 #include "tcallcontroltsytesthelper.h" |
|
32 #include "tnetworktsytesthelper.h" |
|
33 |
|
34 class CEtelSessionMgr; |
|
35 |
|
36 |
|
37 class CCTSYIntegrationTestCallBarringBase : public CCTSYIntegrationTestSuiteStepBase |
|
38 { |
|
39 public: |
|
40 |
|
41 CCTSYIntegrationTestCallBarringBase(CEtelSessionMgr& aEtelSessionMgr); |
|
42 virtual ~CCTSYIntegrationTestCallBarringBase(); |
|
43 |
|
44 protected: |
|
45 void CheckCBPasswordL( RMobilePhone &aPhone, RMobilePhone::TMobilePassword& aPassword ); |
|
46 |
|
47 TInt DeactivateCallBarringL( RMobilePhone &aPhone, const RMobilePhone::TMobilePassword& aPassword ); |
|
48 |
|
49 TInt SetCBStatusL( RMobilePhone& aPhone, |
|
50 RMobilePhone::TMobilePhoneCBChangeV1& aInfo, |
|
51 RMobilePhone::TMobilePhoneCBCondition aCondition ); |
|
52 |
|
53 TBool SearchCBStatusListL( CMobilePhoneCBList* aList, |
|
54 RMobilePhone::TMobilePhoneCBCondition aCondition, |
|
55 RMobilePhone::TMobileService aService, |
|
56 RMobilePhone::TMobilePhoneCBStatus aStatus ); |
|
57 |
|
58 |
|
59 |
|
60 protected: |
|
61 |
|
62 TSupplementalTsyTestHelper iSupplementalTsyTestHelper; |
|
63 TCallControlTsyTestHelper iCallControlTsyTestHelper; |
|
64 TNetworkTsyTestHelper iNetworkTsyTestHelper; |
|
65 |
|
66 |
|
67 |
|
68 }; // class CCTSYIntegrationTestCallBarringBase |
|
69 |
|
70 |
|
71 class CCTSYIntegrationTestCallBarring0001 : public CCTSYIntegrationTestCallBarringBase |
|
72 { |
|
73 public: |
|
74 |
|
75 CCTSYIntegrationTestCallBarring0001(CEtelSessionMgr& aEtelSessionMgr); |
|
76 ~CCTSYIntegrationTestCallBarring0001(); |
|
77 virtual TVerdict doTestStepL(); |
|
78 static TPtrC GetTestStepName(); |
|
79 |
|
80 private: |
|
81 |
|
82 }; // class CCTSYIntegrationTestCallBarring0001 |
|
83 |
|
84 |
|
85 class CCTSYIntegrationTestCallBarring0002 : public CCTSYIntegrationTestCallBarringBase |
|
86 { |
|
87 public: |
|
88 |
|
89 CCTSYIntegrationTestCallBarring0002(CEtelSessionMgr& aEtelSessionMgr); |
|
90 ~CCTSYIntegrationTestCallBarring0002(); |
|
91 virtual TVerdict doTestStepL(); |
|
92 static TPtrC GetTestStepName(); |
|
93 |
|
94 private: |
|
95 |
|
96 }; // class CCTSYIntegrationTestCallBarring0002 |
|
97 |
|
98 |
|
99 class CCTSYIntegrationTestCallBarring0003 : public CCTSYIntegrationTestCallBarringBase |
|
100 { |
|
101 public: |
|
102 |
|
103 CCTSYIntegrationTestCallBarring0003(CEtelSessionMgr& aEtelSessionMgr); |
|
104 ~CCTSYIntegrationTestCallBarring0003(); |
|
105 virtual TVerdict doTestStepL(); |
|
106 static TPtrC GetTestStepName(); |
|
107 |
|
108 private: |
|
109 |
|
110 }; // class CCTSYIntegrationTestCallBarring0003 |
|
111 |
|
112 |
|
113 class CCTSYIntegrationTestCallBarring0004 : public CCTSYIntegrationTestCallBarringBase |
|
114 { |
|
115 public: |
|
116 |
|
117 CCTSYIntegrationTestCallBarring0004(CEtelSessionMgr& aEtelSessionMgr); |
|
118 ~CCTSYIntegrationTestCallBarring0004(); |
|
119 virtual TVerdict doTestStepL(); |
|
120 static TPtrC GetTestStepName(); |
|
121 |
|
122 private: |
|
123 |
|
124 }; // class CCTSYIntegrationTestCallBarring0004 |
|
125 |
|
126 |
|
127 class CCTSYIntegrationTestCallBarring0005 : public CCTSYIntegrationTestCallBarringBase |
|
128 { |
|
129 public: |
|
130 |
|
131 CCTSYIntegrationTestCallBarring0005(CEtelSessionMgr& aEtelSessionMgr); |
|
132 ~CCTSYIntegrationTestCallBarring0005(); |
|
133 virtual TVerdict doTestStepL(); |
|
134 static TPtrC GetTestStepName(); |
|
135 |
|
136 private: |
|
137 |
|
138 }; // class CCTSYIntegrationTestCallBarring0005 |
|
139 |
|
140 |
|
141 class CCTSYIntegrationTestCallBarring0006 : public CCTSYIntegrationTestCallBarringBase |
|
142 { |
|
143 public: |
|
144 |
|
145 CCTSYIntegrationTestCallBarring0006(CEtelSessionMgr& aEtelSessionMgr); |
|
146 ~CCTSYIntegrationTestCallBarring0006(); |
|
147 virtual TVerdict doTestStepL(); |
|
148 static TPtrC GetTestStepName(); |
|
149 |
|
150 private: |
|
151 |
|
152 }; // class CCTSYIntegrationTestCallBarring0006 |
|
153 |
|
154 |
|
155 class CCTSYIntegrationTestCallBarring0007 : public CCTSYIntegrationTestCallBarringBase |
|
156 { |
|
157 public: |
|
158 |
|
159 CCTSYIntegrationTestCallBarring0007(CEtelSessionMgr& aEtelSessionMgr); |
|
160 ~CCTSYIntegrationTestCallBarring0007(); |
|
161 virtual TVerdict doTestStepL(); |
|
162 static TPtrC GetTestStepName(); |
|
163 |
|
164 private: |
|
165 |
|
166 }; // class CCTSYIntegrationTestCallBarring0007 |
|
167 |
|
168 |
|
169 class CCTSYIntegrationTestCallBarring0008 : public CCTSYIntegrationTestCallBarringBase |
|
170 { |
|
171 public: |
|
172 |
|
173 CCTSYIntegrationTestCallBarring0008(CEtelSessionMgr& aEtelSessionMgr); |
|
174 ~CCTSYIntegrationTestCallBarring0008(); |
|
175 virtual TVerdict doTestStepL(); |
|
176 static TPtrC GetTestStepName(); |
|
177 |
|
178 private: |
|
179 |
|
180 }; // class CCTSYIntegrationTestCallBarring0008 |
|
181 |
|
182 |
|
183 class CCTSYIntegrationTestCallBarring0009 : public CCTSYIntegrationTestCallBarringBase |
|
184 { |
|
185 public: |
|
186 |
|
187 CCTSYIntegrationTestCallBarring0009(CEtelSessionMgr& aEtelSessionMgr); |
|
188 ~CCTSYIntegrationTestCallBarring0009(); |
|
189 virtual TVerdict doTestStepL(); |
|
190 static TPtrC GetTestStepName(); |
|
191 |
|
192 private: |
|
193 |
|
194 void TestActivateAndDeactivateCallBarringL( RMobilePhone &aPhone, const RMobilePhone::TMobilePassword& aPassword, |
|
195 RMobilePhone::TMobilePhoneCBCondition aCondition |
|
196 ); |
|
197 |
|
198 }; // class CCTSYIntegrationTestCallBarring0009 |
|
199 |
|
200 |
|
201 class CCTSYIntegrationTestCallBarring0010 : public CCTSYIntegrationTestCallBarringBase |
|
202 { |
|
203 public: |
|
204 |
|
205 CCTSYIntegrationTestCallBarring0010(CEtelSessionMgr& aEtelSessionMgr); |
|
206 ~CCTSYIntegrationTestCallBarring0010(); |
|
207 virtual TVerdict doTestStepL(); |
|
208 static TPtrC GetTestStepName(); |
|
209 |
|
210 private: |
|
211 |
|
212 }; // class CCTSYIntegrationTestCallBarring0010 |
|
213 |
|
214 |
|
215 class CCTSYIntegrationTestCallBarring0011 : public CCTSYIntegrationTestCallBarringBase |
|
216 { |
|
217 public: |
|
218 |
|
219 CCTSYIntegrationTestCallBarring0011(CEtelSessionMgr& aEtelSessionMgr); |
|
220 ~CCTSYIntegrationTestCallBarring0011(); |
|
221 virtual TVerdict doTestStepL(); |
|
222 static TPtrC GetTestStepName(); |
|
223 |
|
224 private: |
|
225 |
|
226 }; // class CCTSYIntegrationTestCallBarring0011 |
|
227 |
|
228 |
|
229 class CCTSYIntegrationTestCallBarring0012 : public CCTSYIntegrationTestCallBarringBase |
|
230 { |
|
231 public: |
|
232 |
|
233 CCTSYIntegrationTestCallBarring0012(CEtelSessionMgr& aEtelSessionMgr); |
|
234 ~CCTSYIntegrationTestCallBarring0012(); |
|
235 virtual TVerdict doTestStepL(); |
|
236 static TPtrC GetTestStepName(); |
|
237 |
|
238 private: |
|
239 |
|
240 }; // class CCTSYIntegrationTestCallBarring0012 |
|
241 |
|
242 |
|
243 class CCTSYIntegrationTestCallBarring0013 : public CCTSYIntegrationTestCallBarringBase |
|
244 { |
|
245 public: |
|
246 |
|
247 CCTSYIntegrationTestCallBarring0013(CEtelSessionMgr& aEtelSessionMgr); |
|
248 ~CCTSYIntegrationTestCallBarring0013(); |
|
249 virtual TVerdict doTestStepL(); |
|
250 static TPtrC GetTestStepName(); |
|
251 |
|
252 private: |
|
253 |
|
254 }; // class CCTSYIntegrationTestCallBarring0013 |
|
255 |
|
256 |
|
257 class CCTSYIntegrationTestCallBarring0014 : public CCTSYIntegrationTestCallBarringBase |
|
258 { |
|
259 public: |
|
260 |
|
261 CCTSYIntegrationTestCallBarring0014(CEtelSessionMgr& aEtelSessionMgr); |
|
262 ~CCTSYIntegrationTestCallBarring0014(); |
|
263 virtual TVerdict doTestStepL(); |
|
264 static TPtrC GetTestStepName(); |
|
265 |
|
266 private: |
|
267 |
|
268 }; // class CCTSYIntegrationTestCallBarring0014 |
|
269 |
|
270 |
|
271 class CCTSYIntegrationTestCallBarring0015 : public CCTSYIntegrationTestCallBarringBase |
|
272 { |
|
273 public: |
|
274 |
|
275 CCTSYIntegrationTestCallBarring0015(CEtelSessionMgr& aEtelSessionMgr); |
|
276 ~CCTSYIntegrationTestCallBarring0015(); |
|
277 virtual TVerdict doTestStepL(); |
|
278 static TPtrC GetTestStepName(); |
|
279 |
|
280 private: |
|
281 |
|
282 }; // class CCTSYIntegrationTestCallBarring0015 |
|
283 |
|
284 |
|
285 class CCTSYIntegrationTestCallBarring0016 : public CCTSYIntegrationTestCallBarringBase |
|
286 { |
|
287 public: |
|
288 |
|
289 CCTSYIntegrationTestCallBarring0016(CEtelSessionMgr& aEtelSessionMgr); |
|
290 ~CCTSYIntegrationTestCallBarring0016(); |
|
291 virtual TVerdict doTestStepL(); |
|
292 static TPtrC GetTestStepName(); |
|
293 |
|
294 private: |
|
295 |
|
296 }; // class CCTSYIntegrationTestCallBarring0016 |
|
297 |
|
298 |
|
299 |
|
300 #endif // __CCTSYINTEGRATIONTESTCALLBARRING_H__ |