|
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 aknpictographinterface.h |
|
15 akniconsrvclient.h |
|
16 akniconutils.h |
|
17 akninternaliconutils.h |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 #ifndef C_TESTSDKPICTOGRAPH_H |
|
24 #define C_TESTSDKPICTOGRAPH_H |
|
25 |
|
26 // INCLUDES |
|
27 #include <stiflogger.h> |
|
28 #include <testscripterinternal.h> |
|
29 #include <stiftestmodule.h> |
|
30 #include <testclassassert.h> |
|
31 |
|
32 // MACROS |
|
33 #define TEST_CLASS_VERSION_MAJOR 0 |
|
34 #define TEST_CLASS_VERSION_MINOR 0 |
|
35 #define TEST_CLASS_VERSION_BUILD 0 |
|
36 |
|
37 // Logging path |
|
38 _LIT( KtestsdkpictographLogPath, "\\logs\\testframework\\testsdkpictograph\\" ); |
|
39 // Log file |
|
40 _LIT( KtestsdkpictographLogFile, "testsdkpictograph.txt" ); |
|
41 _LIT( KtestsdkpictographLogFileWithTitle, "testsdkpictograph_[%S].txt" ); |
|
42 |
|
43 /** |
|
44 * CTestSDKPicToGraph test class for STIF Test Framework TestScripter. |
|
45 * @since S60 5.0 |
|
46 */ |
|
47 NONSHARABLE_CLASS( CTestSDKPicToGraph ) : public CScriptBase |
|
48 { |
|
49 public: // Constructors and destructor |
|
50 |
|
51 /** |
|
52 * Two-phased constructor. |
|
53 */ |
|
54 static CTestSDKPicToGraph* NewL( CTestModuleIf& aTestModuleIf ); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 virtual ~CTestSDKPicToGraph(); |
|
60 |
|
61 public: // Functions from base classes |
|
62 |
|
63 /** |
|
64 * From CScriptBase Runs a script line. |
|
65 * @since S60 5.0 |
|
66 * @param aItem Script line containing method name and parameters |
|
67 * @return Symbian OS error code |
|
68 */ |
|
69 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
70 |
|
71 private: |
|
72 |
|
73 /** |
|
74 * C++ default constructor. |
|
75 */ |
|
76 CTestSDKPicToGraph( CTestModuleIf& aTestModuleIf ); |
|
77 |
|
78 /** |
|
79 * By default Symbian 2nd phase constructor is private. |
|
80 */ |
|
81 void ConstructL(); |
|
82 |
|
83 /** |
|
84 * Method used to log version of test class |
|
85 */ |
|
86 void SendTestClassVersion(); |
|
87 |
|
88 /** |
|
89 * Turn off ScreenSaver |
|
90 * @since S60 5.0 |
|
91 * @return Symbian OS error code. |
|
92 */ |
|
93 void TurnOffScreenSaver(); |
|
94 |
|
95 /** |
|
96 * Restore ScreenSaver |
|
97 * @since S60 5.0 |
|
98 * @return Symbian OS error code. |
|
99 */ |
|
100 void RestoreScreenSaver(); |
|
101 |
|
102 private: // test functions in aknpictographinterface.h |
|
103 |
|
104 /** |
|
105 * test NewL method. |
|
106 * @since S60 5.0 |
|
107 * @param aItem never used. |
|
108 * @return Symbian OS error code. |
|
109 */ |
|
110 virtual TInt TestIntfaceNewL( CStifItemParser& aItem ); |
|
111 |
|
112 private: // test functions in akniconsrvclient.h |
|
113 |
|
114 /** |
|
115 * test Connect method. |
|
116 * @since S60 5.0 |
|
117 * @param aItem never used. |
|
118 * @return Symbian OS error code. |
|
119 */ |
|
120 virtual TInt TestSrvConnect( CStifItemParser& aItem ); |
|
121 |
|
122 /** |
|
123 * test Disconnect method. |
|
124 * @since S60 5.0 |
|
125 * @param aItem never used. |
|
126 * @return Symbian OS error code. |
|
127 */ |
|
128 virtual TInt TestSrvDisconnect( CStifItemParser& aItem ); |
|
129 |
|
130 private: // test functions in akniconutils.h |
|
131 |
|
132 /** |
|
133 * test default constructor method of TAknContentDimensions class. |
|
134 * @since S60 5.0 |
|
135 * @param aItem never used. |
|
136 * @return Symbian OS error code. |
|
137 */ |
|
138 virtual TInt TestDimenDefCons( CStifItemParser& aItem ); |
|
139 |
|
140 /** |
|
141 * test constructor method of TAknContentDimensions class. |
|
142 * @since S60 5.0 |
|
143 * @param aItem never used. |
|
144 * @return Symbian OS error code. |
|
145 */ |
|
146 virtual TInt TestDimenConstruct( CStifItemParser& aItem ); |
|
147 |
|
148 /** |
|
149 * test SetDimensions method of TAknContentDimensions class. |
|
150 * @since S60 5.0 |
|
151 * @param aItem never used. |
|
152 * @return Symbian OS error code. |
|
153 */ |
|
154 virtual TInt TestDimenSetDimen( CStifItemParser& aItem ); |
|
155 |
|
156 /** |
|
157 * test NewL method of CAknIcon class. |
|
158 * @since S60 5.0 |
|
159 * @param aItem never used. |
|
160 * @return Symbian OS error code. |
|
161 */ |
|
162 virtual TInt TestIconNewL( CStifItemParser& aItem ); |
|
163 |
|
164 /** |
|
165 * test Bitmap method of CAknIcon class. |
|
166 * @since S60 5.0 |
|
167 * @param aItem never used. |
|
168 * @return Symbian OS error code. |
|
169 */ |
|
170 virtual TInt TestIconBitmapL( CStifItemParser& aItem ); |
|
171 |
|
172 /** |
|
173 * test Mask method of CAknIcon class. |
|
174 * @since S60 5.0 |
|
175 * @param aItem never used. |
|
176 * @return Symbian OS error code. |
|
177 */ |
|
178 virtual TInt TestIconMaskL( CStifItemParser& aItem ); |
|
179 |
|
180 /** |
|
181 * test SetBitmap method of CAknIcon class. |
|
182 * @since S60 5.0 |
|
183 * @param aItem never used. |
|
184 * @return Symbian OS error code. |
|
185 */ |
|
186 virtual TInt TestIconSetBitmapL( CStifItemParser& aItem ); |
|
187 |
|
188 /** |
|
189 * test SetMask method of CAknIcon class. |
|
190 * @since S60 5.0 |
|
191 * @param aItem never used. |
|
192 * @return Symbian OS error code. |
|
193 */ |
|
194 virtual TInt TestIconSetMaskL( CStifItemParser& aItem ); |
|
195 |
|
196 /** |
|
197 * test CreateIconL method of AknIconUtils class. |
|
198 * @since S60 5.0 |
|
199 * @param aItem never used. |
|
200 * @return Symbian OS error code. |
|
201 */ |
|
202 virtual TInt TestUtilCreateIconWithMaskL( CStifItemParser& aItem ); |
|
203 |
|
204 /** |
|
205 * test CreateIconL method of AknIconUtils class. |
|
206 * @since S60 5.0 |
|
207 * @param aItem never used. |
|
208 * @return Symbian OS error code. |
|
209 */ |
|
210 virtual TInt TestUtilCreateIconWithBmpIdL( CStifItemParser& aItem ); |
|
211 |
|
212 /** |
|
213 * test CreateIconL method of AknIconUtils class. |
|
214 * @since S60 5.0 |
|
215 * @param aItem never used. |
|
216 * @return Symbian OS error code. |
|
217 */ |
|
218 virtual TInt TestUtilCreateIconWithProMaskL( CStifItemParser& aItem ); |
|
219 |
|
220 /** |
|
221 * test CreateIconL method of AknIconUtils class. |
|
222 * @since S60 5.0 |
|
223 * @param aItem never used. |
|
224 * @return Symbian OS error code. |
|
225 */ |
|
226 virtual TInt TestUtilCreateIconWithProviderL( CStifItemParser& aItem ); |
|
227 |
|
228 /** |
|
229 * test CreateIconL method of AknIconUtils class. |
|
230 * @since S60 5.0 |
|
231 * @param aItem never used. |
|
232 * @return Symbian OS error code. |
|
233 */ |
|
234 virtual TInt TestUtilCreateIconWithSoIconL( CStifItemParser& aItem ); |
|
235 |
|
236 /** |
|
237 * test CreateIconL method of AknIconUtils class. |
|
238 * @since S60 5.0 |
|
239 * @param aItem never used. |
|
240 * @return Symbian OS error code. |
|
241 */ |
|
242 virtual TInt TestUtilCreateIconWithSoBmpL( CStifItemParser& aItem ); |
|
243 |
|
244 /** |
|
245 * test CreateIconLC method of AknIconUtils class. |
|
246 * @since S60 5.0 |
|
247 * @param aItem never used. |
|
248 * @return Symbian OS error code. |
|
249 */ |
|
250 virtual TInt TestUtilCreateIconLCL( CStifItemParser& aItem ); |
|
251 |
|
252 /** |
|
253 * test PreserveIconData method of AknIconUtils class. |
|
254 * @since S60 5.0 |
|
255 * @param aItem never used. |
|
256 * @return Symbian OS error code. |
|
257 */ |
|
258 virtual TInt TestUtilPreserveIconDataL( CStifItemParser& aItem ); |
|
259 |
|
260 /** |
|
261 * test DestroyIconData method of AknIconUtils class. |
|
262 * @since S60 5.0 |
|
263 * @param aItem never used. |
|
264 * @return Symbian OS error code. |
|
265 */ |
|
266 virtual TInt TestUtilDestroyIconDataL( CStifItemParser& aItem ); |
|
267 |
|
268 /** |
|
269 * test SetSize method of AknIconUtils class. |
|
270 * @since S60 5.0 |
|
271 * @param aItem never used. |
|
272 * @return Symbian OS error code. |
|
273 */ |
|
274 virtual TInt TestUtilSetSizeL( CStifItemParser& aItem ); |
|
275 |
|
276 /** |
|
277 * test SetSizeAndRotation method of AknIconUtils class. |
|
278 * @since S60 5.0 |
|
279 * @param aItem never used. |
|
280 * @return Symbian OS error code. |
|
281 */ |
|
282 virtual TInt TestUtilSetSizeAndRotationL( CStifItemParser& aItem ); |
|
283 |
|
284 /** |
|
285 * test SetObserver method of AknIconUtils class. |
|
286 * @since S60 5.0 |
|
287 * @param aItem never used. |
|
288 * @return Symbian OS error code. |
|
289 */ |
|
290 virtual TInt TestUtilSetObserverL( CStifItemParser& aItem ); |
|
291 |
|
292 /** |
|
293 * test AvkonIconFileName method of AknIconUtils class. |
|
294 * @since S60 5.0 |
|
295 * @param aItem never used. |
|
296 * @return Symbian OS error code. |
|
297 */ |
|
298 virtual TInt TestUtilAvkonIconFileName( CStifItemParser& aItem ); |
|
299 |
|
300 /** |
|
301 * test ValidateLogicalAppIconId method of AknIconUtils class. |
|
302 * @since S60 5.0 |
|
303 * @param aItem never used. |
|
304 * @return Symbian OS error code. |
|
305 */ |
|
306 virtual TInt TestUtilValidateLogicalAppIconId( CStifItemParser& aItem ); |
|
307 |
|
308 /** |
|
309 * test IsMifFile method of AknIconUtils class. |
|
310 * @since S60 5.0 |
|
311 * @param aItem never used. |
|
312 * @return Symbian OS error code. |
|
313 */ |
|
314 virtual TInt TestUtilIsMifFile( CStifItemParser& aItem ); |
|
315 |
|
316 /** |
|
317 * test IsMifIcon method of AknIconUtils class. |
|
318 * @since S60 5.0 |
|
319 * @param aItem never used. |
|
320 * @return Symbian OS error code. |
|
321 */ |
|
322 virtual TInt TestUtilIsMifIconL( CStifItemParser& aItem ); |
|
323 |
|
324 /** |
|
325 * test GetContentDimensions method of AknIconUtils class. |
|
326 * @since S60 5.0 |
|
327 * @param aItem never used. |
|
328 * @return Symbian OS error code. |
|
329 */ |
|
330 virtual TInt TestUtilGetContentDimensionsL( CStifItemParser& aItem ); |
|
331 |
|
332 /** |
|
333 * test SetIconColor method of AknIconUtils class. |
|
334 * @since S60 5.0 |
|
335 * @param aItem never used. |
|
336 * @return Symbian OS error code. |
|
337 */ |
|
338 virtual TInt TestUtilSetIconColorL( CStifItemParser& aItem ); |
|
339 |
|
340 /** |
|
341 * test ExcludeFromCache method of AknIconUtils class. |
|
342 * @since S60 5.0 |
|
343 * @param aItem never used. |
|
344 * @return Symbian OS error code. |
|
345 */ |
|
346 virtual TInt TestUtilExcludeFromCacheL( CStifItemParser& aItem ); |
|
347 |
|
348 /** |
|
349 * test DisableCompression method of AknIconUtils class. |
|
350 * @since S60 5.0 |
|
351 * @param aItem never used. |
|
352 * @return Symbian OS error code. |
|
353 */ |
|
354 virtual TInt TestUtilDisableCompressionL( CStifItemParser& aItem ); |
|
355 |
|
356 /** |
|
357 * test ScaleBitmapL method of AknIconUtils class. |
|
358 * @since S60 5.0 |
|
359 * @param aItem never used. |
|
360 * @return Symbian OS error code. |
|
361 */ |
|
362 virtual TInt TestUtilScaleBitmapL( CStifItemParser& aItem ); |
|
363 |
|
364 private: // test functions in akninternaliconutils.h |
|
365 |
|
366 /** |
|
367 * test SetAppIcon method. |
|
368 * @since S60 5.0 |
|
369 * @param aItem never used. |
|
370 * @return Symbian OS error code. |
|
371 */ |
|
372 virtual TInt TestIntUtilSetAppIconL( CStifItemParser& aItem ); |
|
373 |
|
374 private: // Data |
|
375 |
|
376 /** |
|
377 * ScreenSaver Property |
|
378 */ |
|
379 TInt iOldScreenSaverProperty; |
|
380 |
|
381 }; |
|
382 |
|
383 #endif // C_TESTSDKPICTOGRAPH_H |
|
384 |
|
385 // End of File |