1 /* |
|
2 * Copyright (c) 2002 - 2007 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: Test number_grouping_api |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_TESTDOMNUMBERGROUPING_H |
|
21 #define C_TESTDOMNUMBERGROUPING_H |
|
22 |
|
23 /* |
|
24 * INCLUDES |
|
25 */ |
|
26 #include <stiflogger.h> |
|
27 #include <testscripterinternal.h> |
|
28 #include <stiftestmodule.h> |
|
29 #include <testclassassert.h> |
|
30 |
|
31 /* |
|
32 * Declare class |
|
33 */ |
|
34 class CAknPhoneNumberGrouping; |
|
35 class CPNGNumberGrouping; |
|
36 // MACROS |
|
37 #define TEST_CLASS_VERSION_MAJOR 0 |
|
38 #define TEST_CLASS_VERSION_MINOR 0 |
|
39 #define TEST_CLASS_VERSION_BUILD 0 |
|
40 |
|
41 /* |
|
42 * Logging path |
|
43 */ |
|
44 _LIT( KtestdomnumbergroupingLogPath, "\\logs\\testframework\\testdomnumbergrouping\\" ); |
|
45 /* |
|
46 * Log file |
|
47 */ |
|
48 _LIT( KtestdomnumbergroupingLogFile, "testdomnumbergrouping.txt" ); |
|
49 _LIT( KtestdomnumbergroupingLogFileWithTitle, "testdomnumbergrouping_[%S].txt" ); |
|
50 |
|
51 /** |
|
52 * CTestDOMNUMBERGROUPING test class for STIF Test Framework TestScripter. |
|
53 * @since S60 5.0 |
|
54 */ |
|
55 NONSHARABLE_CLASS(CTestDOMNUMBERGROUPING) : public CScriptBase |
|
56 { |
|
57 public: |
|
58 |
|
59 /** |
|
60 * Two-phased constructor. |
|
61 */ |
|
62 static CTestDOMNUMBERGROUPING* NewL( CTestModuleIf& aTestModuleIf ); |
|
63 |
|
64 /** |
|
65 * Destructor. |
|
66 */ |
|
67 virtual ~CTestDOMNUMBERGROUPING(); |
|
68 |
|
69 public: |
|
70 |
|
71 /** |
|
72 * From CScriptBase Runs a script line. |
|
73 * @since S60 5.0 |
|
74 * @param aItem Script line containing method name and parameters |
|
75 * @return Symbian OS error code |
|
76 */ |
|
77 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
78 |
|
79 private: |
|
80 |
|
81 /** |
|
82 * C++ default constructor. |
|
83 */ |
|
84 CTestDOMNUMBERGROUPING( CTestModuleIf& aTestModuleIf ); |
|
85 |
|
86 /** |
|
87 * By default Symbian 2nd phase constructor is private. |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 /** |
|
92 * Frees all resources allocated from test methods. |
|
93 * @since S60 5.0 |
|
94 */ |
|
95 void Delete(); |
|
96 /** |
|
97 * TestPHONENUMGRPINGNewLCL test function for testing the NewLC function |
|
98 * @since S60 5.0 |
|
99 * @param aItem never used |
|
100 * @return Symbian OS error code. |
|
101 */ |
|
102 virtual TInt TestPHONENUMGRPINGNewLCL( CStifItemParser& /*aItem*/ ); |
|
103 /** |
|
104 * TestPHONENUMGRPINGNewLL test function for testing the NewL function |
|
105 * @since S60 5.0 |
|
106 * @param aItem never used |
|
107 * @return Symbian OS error code. |
|
108 */ |
|
109 virtual TInt TestPHONENUMGRPINGNewLL( CStifItemParser& /*aItem*/ ); |
|
110 /** |
|
111 * TestPHONENUMGRPINGSetL test function for testing the Set function |
|
112 * @since S60 5.0 |
|
113 * @param aItem never used |
|
114 * @return Symbian OS error code. |
|
115 */ |
|
116 virtual TInt TestPHONENUMGRPINGSetL( CStifItemParser& /*aItem*/ ); |
|
117 /** |
|
118 * TestPHONENUMGRPINGFormattedNumberL test function for testing the |
|
119 * FormattedNumber function |
|
120 * @since S60 5.0 |
|
121 * @param aItem never used |
|
122 * @return Symbian OS error code. |
|
123 */ |
|
124 virtual TInt TestPHONENUMGRPINGFormattedNumberL( CStifItemParser& /*aItem*/ ); |
|
125 /** |
|
126 * TestPHONENUMGRPINGCopyFormattedNumberL test function for testing the |
|
127 * FormattedNumber function |
|
128 * @since S60 5.0 |
|
129 * @param aItem never used |
|
130 * @return Symbian OS error code. |
|
131 */ |
|
132 virtual TInt TestPHONENUMGRPINGCopyFormattedNumberL( CStifItemParser& /*aItem*/ ); |
|
133 /** |
|
134 * TestPHONENUMGRPINGCreateGroupedPhoneNumberL test function for testing the |
|
135 * CreateGroupedPhoneNumber function |
|
136 * @since S60 5.0 |
|
137 * @param aItem never used |
|
138 * @return Symbian OS error code. |
|
139 */ |
|
140 virtual TInt TestPHONENUMGRPINGCreateGroupedPhoneNumberL( CStifItemParser& /*aItem*/ ); |
|
141 /** |
|
142 * TestPHONENUMGRPINGGroupPhoneNumberGroupL test function for testing the |
|
143 * GroupPhoneNumberGroup function |
|
144 * @since S60 5.0 |
|
145 * @param aItem never used |
|
146 * @return Symbian OS error code. |
|
147 */ |
|
148 virtual TInt TestPHONENUMGRPINGGroupPhoneNumberGroupL( CStifItemParser& /*aItem*/ ); |
|
149 /** |
|
150 * TestPHONENUMGRPINGGroupPhoneNumberPhoneL test function for testing the |
|
151 * GroupPhoneNumberPhone function |
|
152 * @since S60 5.0 |
|
153 * @param aItem never used |
|
154 * @return Symbian OS error code. |
|
155 */ |
|
156 virtual TInt TestPHONENUMGRPINGGroupPhoneNumberPhoneL( CStifItemParser& /*aItem*/ ); |
|
157 /** |
|
158 * TestNUMGRPINGNewLL test function for testing the NewL function |
|
159 * @since S60 5.0 |
|
160 * @param aItem never used |
|
161 * @return Symbian OS error code. |
|
162 */ |
|
163 virtual TInt TestNUMGRPINGNewLL( CStifItemParser& /*aItem*/ ); |
|
164 /** |
|
165 * TestNUMGRPINGNewLCL test function for testing the NewLC function |
|
166 * @since S60 5.0 |
|
167 * @param aItem never used |
|
168 * @return Symbian OS error code. |
|
169 */ |
|
170 virtual TInt TestNUMGRPINGNewLCL( CStifItemParser& /*aItem*/ ); |
|
171 /** |
|
172 * TestNUMGRPINGDestructorL test function for testing the Destructor function |
|
173 * @since S60 5.0 |
|
174 * @param aItem never used |
|
175 * @return Symbian OS error code. |
|
176 */ |
|
177 virtual TInt TestNUMGRPINGDestructorL( CStifItemParser& /*aItem*/ ); |
|
178 /** |
|
179 * TestNUMGRPINGInsertL test function for testing the Insert function |
|
180 * @since S60 5.0 |
|
181 * @param aItem never used |
|
182 * @return Symbian OS error code. |
|
183 */ |
|
184 virtual TInt TestNUMGRPINGInsertL( CStifItemParser& /*aItem*/ ); |
|
185 /** |
|
186 * TestNUMGRPINGDeleteL test function for testing the Delete function |
|
187 * @since S60 5.0 |
|
188 * @param aItem never used |
|
189 * @return Symbian OS error code. |
|
190 */ |
|
191 virtual TInt TestNUMGRPINGDeleteL( CStifItemParser& /*aItem*/ ); |
|
192 /** |
|
193 * TestNUMGRPINGAppendL test function for testing the Append function |
|
194 * @since S60 5.0 |
|
195 * @param aItem never used |
|
196 * @return Symbian OS error code. |
|
197 */ |
|
198 virtual TInt TestNUMGRPINGAppendL( CStifItemParser& /*aItem*/ ); |
|
199 /** |
|
200 * TestNUMGRPINGSetL test function for testing the Set function |
|
201 * @since S60 5.0 |
|
202 * @param aItem never used |
|
203 * @return Symbian OS error code. |
|
204 */ |
|
205 virtual TInt TestNUMGRPINGSetL( CStifItemParser& /*aItem*/ ); |
|
206 /** |
|
207 * TestNUMGRPINGLengthL test function for testing the Length function |
|
208 * @since S60 5.0 |
|
209 * @param aItem never used |
|
210 * @return Symbian OS error code. |
|
211 */ |
|
212 virtual TInt TestNUMGRPINGLengthL( CStifItemParser& /*aItem*/ ); |
|
213 /** |
|
214 * TestNUMGRPINGUnFormattedLengthL test function for testing the |
|
215 * UnFormattedLength function |
|
216 * @since S60 5.0 |
|
217 * @param aItem never used |
|
218 * @return Symbian OS error code. |
|
219 */ |
|
220 virtual TInt TestNUMGRPINGUnFormattedLengthL( CStifItemParser& /*aItem*/ ); |
|
221 /** |
|
222 * TestNUMGRPINGMaxDisplayLengthL test function for testing the |
|
223 * MaxDisplayLength function |
|
224 * @since S60 5.0 |
|
225 * @param aItem never used |
|
226 * @return Symbian OS error code. |
|
227 */ |
|
228 virtual TInt TestNUMGRPINGMaxDisplayLengthL( CStifItemParser& /*aItem*/ ); |
|
229 /** |
|
230 * TestNUMGRPINGIsSpaceL test function for testing the IsSpace function |
|
231 * @since S60 5.0 |
|
232 * @param aItem never used |
|
233 * @return Symbian OS error code. |
|
234 */ |
|
235 virtual TInt TestNUMGRPINGIsSpaceL( CStifItemParser& /*aItem*/ ); |
|
236 /** |
|
237 * TestNUMGRPINGFormattedNumberL test function for testing the |
|
238 * FormattedNumber function |
|
239 * @since S60 5.0 |
|
240 * @param aItem never used |
|
241 * @return Symbian OS error code. |
|
242 */ |
|
243 virtual TInt TestNUMGRPINGFormattedNumberL( CStifItemParser& /*aItem*/ ); |
|
244 /** |
|
245 * TestNUMGRPINGFormattedNumberNullL test function for testing the |
|
246 * FormattedNumber function |
|
247 * @since S60 5.0 |
|
248 * @param aItem never used |
|
249 * @return Symbian OS error code. |
|
250 */ |
|
251 virtual TInt TestNUMGRPINGFormattedNumberNullL( CStifItemParser& /*aItem*/ ); |
|
252 /** |
|
253 * TestNUMGRPINGReverseFormattedNumberL test function for testing the |
|
254 * ReverseFormattedNumber function |
|
255 * @since S60 5.0 |
|
256 * @param aItem never used |
|
257 * @return Symbian OS error code. |
|
258 */ |
|
259 virtual TInt TestNUMGRPINGReverseFormattedNumberL( CStifItemParser& /*aItem*/ ); |
|
260 /** |
|
261 * TestNUMGRPINGReverseFormattedNumberNullL test function for testing the |
|
262 * ReverseFormattedNumber function |
|
263 * @since S60 5.0 |
|
264 * @param aItem never used |
|
265 * @return Symbian OS error code. |
|
266 */ |
|
267 virtual TInt TestNUMGRPINGReverseFormattedNumberNullL( CStifItemParser& /*aItem*/ ); |
|
268 /** |
|
269 * TestNUMGRPINGSelectionL test function for testing the Selection function |
|
270 * @since S60 5.0 |
|
271 * @param aItem never used |
|
272 * @return Symbian OS error code. |
|
273 */ |
|
274 virtual TInt TestNUMGRPINGSelectionL( CStifItemParser& /*aItem*/ ); |
|
275 /** |
|
276 * TestNUMGRPINGUnFormattedNumberL test function for testing the UnFormattedNumber |
|
277 * function |
|
278 * @since S60 5.0 |
|
279 * @param aItem never used |
|
280 * @return Symbian OS error code. |
|
281 */ |
|
282 virtual TInt TestNUMGRPINGUnFormattedNumberL( CStifItemParser& /*aItem*/ ); |
|
283 /** |
|
284 * TestNUMGRPINGUnFormattedNumberNullL test function for testing the |
|
285 * UnFormattedNumber function |
|
286 * @since S60 5.0 |
|
287 * @param aItem never used |
|
288 * @return Symbian OS error code. |
|
289 */ |
|
290 virtual TInt TestNUMGRPINGUnFormattedNumberNullL( CStifItemParser& /*aItem*/ ); |
|
291 /** |
|
292 * TestNUMGRPINGIsCharacterInsertedByNumberGroupingL test function for testing |
|
293 * the IsCharacterInsertedByNumberGrouping function |
|
294 * @since S60 5.0 |
|
295 * @param aItem never used |
|
296 * @return Symbian OS error code. |
|
297 */ |
|
298 virtual TInt TestNUMGRPINGIsCharacterInsertedByNumberGroupingL( |
|
299 CStifItemParser& /*aItem*/ ); |
|
300 /** |
|
301 * TestNUMGRPINGIsChangedByGroupingL test function for testing the |
|
302 * IsChangedByGrouping function |
|
303 * @since S60 5.0 |
|
304 * @param aItem never used |
|
305 * @return Symbian OS error code. |
|
306 */ |
|
307 virtual TInt TestNUMGRPINGIsChangedByGroupingL( CStifItemParser& /*aItem*/ ); |
|
308 |
|
309 /** |
|
310 * Method used to log version of test class |
|
311 */ |
|
312 void SendTestClassVersion(); |
|
313 |
|
314 private: |
|
315 |
|
316 /** |
|
317 * ScreenSaver Property |
|
318 */ |
|
319 TInt iOldScreenSaverProperty; |
|
320 |
|
321 |
|
322 |
|
323 }; |
|
324 |
|
325 #endif |
|
326 |
|
327 /* |
|
328 * |
|
329 * End of File |
|
330 */ |
|