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: For test alf core toolkit api modules |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // [INCLUDE FILES] |
|
21 #include <e32svr.h> |
|
22 #include <stifparser.h> |
|
23 #include <stiftestinterface.h> |
|
24 #include <uiacceltk/huienv.h> |
|
25 #include <uiacceltk/huicontrol.h> |
|
26 #include <uiacceltk/huicontrolgroup.h> |
|
27 #include "uiacceltk/huivisual.h" |
|
28 #include <uiacceltk/huianchorlayout.h> |
|
29 #include <uiacceltk/huievent.h> |
|
30 #include <uiacceltk/huicommand.h> |
|
31 #include <uiacceltk/huiimagevisual.h> |
|
32 #include <uiacceltk/huitextvisual.h> |
|
33 #include <uiacceltk/huitimedvalue.h> |
|
34 #include <uiacceltk/huitransformation.h> |
|
35 #include <eikenv.h> |
|
36 #include <e32err.h> |
|
37 |
|
38 #include "testuiaifcoretoolkit.h" |
|
39 #include "testuiaifblockshuiactioncommandchild.h" |
|
40 #include "testuiaifblockshuigroupcommandchild.h" |
|
41 #include "testuiaifblockshuicontrolcommandchild.h" |
|
42 #include "testuiaifblockshuivisualcommandchild.h" |
|
43 #include "testuiaifblockshuiimagecommandchild.h" |
|
44 #include "testuiaifblockshuitextcommandchild.h" |
|
45 #include "testuiaifblockshuivaluecommandchild.h" |
|
46 #include "testuiaifblockshuipointcommandchild.h" |
|
47 #include "testuiaifblockshuitranscommandchild.h" |
|
48 #include "testuiaifblockshuimarkercommandchild.h" |
|
49 #include "testuiaifblockshuicustomeventcommandchild.h" |
|
50 // |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // CTestUiAifCoreToolkit::TestCHuiCommandDestructL |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 TInt CTestUiAifCoreToolkit::TestCHuiCommandDestructL( CStifItemParser& /*aItem*/ ) |
|
57 { |
|
58 |
|
59 // Print to UI |
|
60 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
61 _LIT( KTestCHuiCommandDestructL, "In TestCHuiCommandDestructL" ); |
|
62 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiCommandDestructL ); |
|
63 // Print to log file |
|
64 iLog->Log( KTestCHuiCommandDestructL ); |
|
65 |
|
66 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
67 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
68 CleanupStack::PushL( actionCommand ); |
|
69 CleanupStack::Pop( 1 ); |
|
70 if( actionCommand ) |
|
71 { |
|
72 delete actionCommand; |
|
73 actionCommand = NULL; |
|
74 } |
|
75 |
|
76 return KErrNone; |
|
77 |
|
78 } |
|
79 // ----------------------------------------------------------------------------- |
|
80 // CTestUiAifCoreToolkit::TestCHuiCommandObjectCommandL |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 TInt CTestUiAifCoreToolkit::TestCHuiCommandObjectCommandL( CStifItemParser& /*aItem*/ ) |
|
84 { |
|
85 |
|
86 // Print to UI |
|
87 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
88 _LIT( KTestCHuiCommandObjectCommandL, "In TestCHuiCommandObjectCommandL" ); |
|
89 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiCommandObjectCommandL ); |
|
90 // Print to log file |
|
91 iLog->Log( KTestCHuiCommandObjectCommandL ); |
|
92 |
|
93 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
94 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
95 CleanupStack::PushL( actionCommand ); |
|
96 actionCommand->ObjectCommand(); |
|
97 CleanupStack::Pop( 1 ); |
|
98 if( actionCommand ) |
|
99 { |
|
100 delete actionCommand; |
|
101 actionCommand = NULL; |
|
102 } |
|
103 |
|
104 return KErrNone; |
|
105 |
|
106 } |
|
107 // ----------------------------------------------------------------------------- |
|
108 // CTestUiAifCoreToolkit::TestCHuiCommandSetSenderL |
|
109 // ----------------------------------------------------------------------------- |
|
110 // |
|
111 TInt CTestUiAifCoreToolkit::TestCHuiCommandSetSenderL( CStifItemParser& /*aItem*/ ) |
|
112 { |
|
113 |
|
114 // Print to UI |
|
115 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
116 _LIT( KTestCHuiCommandSetSenderL, "In TestCHuiCommandSetSenderL" ); |
|
117 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiCommandSetSenderL ); |
|
118 // Print to log file |
|
119 iLog->Log( KTestCHuiCommandSetSenderL ); |
|
120 |
|
121 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
122 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
123 CleanupStack::PushL( actionCommand ); |
|
124 actionCommand->SetSender( EHuiCommandObjectTypeNone, iHuiControl ); |
|
125 CleanupStack::Pop( 1 ); |
|
126 if( actionCommand ) |
|
127 { |
|
128 delete actionCommand; |
|
129 actionCommand = NULL; |
|
130 } |
|
131 |
|
132 return KErrNone; |
|
133 |
|
134 } |
|
135 // ----------------------------------------------------------------------------- |
|
136 // CTestUiAifCoreToolkit::TestCHuiCommandTypeL |
|
137 // ----------------------------------------------------------------------------- |
|
138 // |
|
139 TInt CTestUiAifCoreToolkit::TestCHuiCommandTypeL( CStifItemParser& /*aItem*/ ) |
|
140 { |
|
141 |
|
142 // Print to UI |
|
143 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
144 _LIT( KTestCHuiCommandTypeL, "In TestCHuiCommandTypeL" ); |
|
145 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiCommandTypeL ); |
|
146 // Print to log file |
|
147 iLog->Log( KTestCHuiCommandTypeL ); |
|
148 |
|
149 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
150 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
151 CleanupStack::PushL( actionCommand ); |
|
152 actionCommand->SetSender( EHuiCommandObjectTypeNone, iHuiControl ); |
|
153 actionCommand->Type(); |
|
154 CleanupStack::Pop( 1 ); |
|
155 if( actionCommand ) |
|
156 { |
|
157 delete actionCommand; |
|
158 actionCommand = NULL; |
|
159 } |
|
160 |
|
161 return KErrNone; |
|
162 |
|
163 } |
|
164 // ----------------------------------------------------------------------------- |
|
165 // CTestUiAifCoreToolkit::TestCHuiSenderTypeL |
|
166 // ----------------------------------------------------------------------------- |
|
167 // |
|
168 TInt CTestUiAifCoreToolkit::TestCHuiSenderTypeL( CStifItemParser& /*aItem*/ ) |
|
169 { |
|
170 |
|
171 // Print to UI |
|
172 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
173 _LIT( KTestCHuiSenderTypeL, "In TestCHuiSenderTypeL" ); |
|
174 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiSenderTypeL ); |
|
175 // Print to log file |
|
176 iLog->Log( KTestCHuiSenderTypeL ); |
|
177 |
|
178 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
179 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
180 CleanupStack::PushL( actionCommand ); |
|
181 actionCommand->SetSender( EHuiCommandObjectTypeNone, iHuiControl ); |
|
182 actionCommand->Type(); |
|
183 actionCommand->SenderType(); |
|
184 CleanupStack::Pop( 1 ); |
|
185 if( actionCommand ) |
|
186 { |
|
187 delete actionCommand; |
|
188 actionCommand = NULL; |
|
189 } |
|
190 |
|
191 return KErrNone; |
|
192 |
|
193 } |
|
194 // ----------------------------------------------------------------------------- |
|
195 // CTestUiAifCoreToolkit::TestCHuiSenderL |
|
196 // ----------------------------------------------------------------------------- |
|
197 // |
|
198 TInt CTestUiAifCoreToolkit::TestCHuiSenderL( CStifItemParser& /*aItem*/ ) |
|
199 { |
|
200 |
|
201 // Print to UI |
|
202 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
203 _LIT( KTestCHuiSenderL, "In TestCHuiSenderL" ); |
|
204 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiSenderL ); |
|
205 // Print to log file |
|
206 iLog->Log( KTestCHuiSenderL ); |
|
207 |
|
208 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
209 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
210 CleanupStack::PushL( actionCommand ); |
|
211 actionCommand->SetSender( EHuiCommandObjectTypeNone, iHuiControl ); |
|
212 actionCommand->Type(); |
|
213 actionCommand->SenderType(); |
|
214 actionCommand->Sender(); |
|
215 CleanupStack::Pop( 1 ); |
|
216 if( actionCommand ) |
|
217 { |
|
218 delete actionCommand; |
|
219 actionCommand = NULL; |
|
220 } |
|
221 |
|
222 return KErrNone; |
|
223 |
|
224 } |
|
225 // ----------------------------------------------------------------------------- |
|
226 // CTestUiAifCoreToolkit::TestCHuiSenderVisualL |
|
227 // ----------------------------------------------------------------------------- |
|
228 // |
|
229 TInt CTestUiAifCoreToolkit::TestCHuiSenderVisualL( CStifItemParser& /*aItem*/ ) |
|
230 { |
|
231 |
|
232 // Print to UI |
|
233 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
234 _LIT( KTestCHuiSenderVisualL, "In TestCHuiSenderVisualL" ); |
|
235 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiSenderVisualL ); |
|
236 // Print to log file |
|
237 iLog->Log( KTestCHuiSenderVisualL ); |
|
238 |
|
239 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
240 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
241 CleanupStack::PushL( actionCommand ); |
|
242 actionCommand->SetSender( EHuiCommandObjectTypeNone, iHuiControl ); |
|
243 actionCommand->Type(); |
|
244 actionCommand->SenderType(); |
|
245 actionCommand->Sender(); |
|
246 actionCommand->SenderVisual(); |
|
247 CleanupStack::Pop( 1 ); |
|
248 if( actionCommand ) |
|
249 { |
|
250 delete actionCommand; |
|
251 actionCommand = NULL; |
|
252 } |
|
253 |
|
254 return KErrNone; |
|
255 |
|
256 } |
|
257 // ----------------------------------------------------------------------------- |
|
258 // CTestUiAifCoreToolkit::TestCHuiSenderControlL |
|
259 // ----------------------------------------------------------------------------- |
|
260 // |
|
261 TInt CTestUiAifCoreToolkit::TestCHuiSenderControlL( CStifItemParser& /*aItem*/ ) |
|
262 { |
|
263 |
|
264 // Print to UI |
|
265 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
266 _LIT( KTestCHuiSenderControlL, "In TestCHuiSenderControlL" ); |
|
267 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiSenderControlL ); |
|
268 // Print to log file |
|
269 iLog->Log( KTestCHuiSenderControlL ); |
|
270 |
|
271 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
272 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
273 CleanupStack::PushL( actionCommand ); |
|
274 actionCommand->SetSender( EHuiCommandObjectTypeNone, iHuiControl ); |
|
275 actionCommand->Type(); |
|
276 actionCommand->SenderType(); |
|
277 actionCommand->Sender(); |
|
278 actionCommand->SenderVisual(); |
|
279 actionCommand->SenderControl(); |
|
280 CleanupStack::Pop( 1 ); |
|
281 if( actionCommand ) |
|
282 { |
|
283 delete actionCommand; |
|
284 actionCommand = NULL; |
|
285 } |
|
286 |
|
287 return KErrNone; |
|
288 |
|
289 } |
|
290 // ----------------------------------------------------------------------------- |
|
291 // CTestUiAifCoreToolkit::TestCHuiSenderControlGroupL |
|
292 // ----------------------------------------------------------------------------- |
|
293 // |
|
294 TInt CTestUiAifCoreToolkit::TestCHuiSenderControlGroupL( CStifItemParser& /*aItem*/ ) |
|
295 { |
|
296 |
|
297 // Print to UI |
|
298 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
299 _LIT( KTestCHuiSenderControlGroupL, "In TestCHuiSenderControlGroupL" ); |
|
300 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiSenderControlGroupL ); |
|
301 // Print to log file |
|
302 iLog->Log( KTestCHuiSenderControlGroupL ); |
|
303 |
|
304 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
305 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
306 CleanupStack::PushL( actionCommand ); |
|
307 actionCommand->SetSender( EHuiCommandObjectTypeNone, iHuiControl ); |
|
308 actionCommand->Type(); |
|
309 actionCommand->SenderType(); |
|
310 actionCommand->Sender(); |
|
311 actionCommand->SenderVisual(); |
|
312 actionCommand->SenderControl(); |
|
313 actionCommand->SenderControlGroup(); |
|
314 CleanupStack::Pop( 1 ); |
|
315 if( actionCommand ) |
|
316 { |
|
317 delete actionCommand; |
|
318 actionCommand = NULL; |
|
319 } |
|
320 |
|
321 return KErrNone; |
|
322 |
|
323 } |
|
324 // ----------------------------------------------------------------------------- |
|
325 // CTestUiAifCoreToolkit::TestCHuiCommandConstructL |
|
326 // ----------------------------------------------------------------------------- |
|
327 // |
|
328 TInt CTestUiAifCoreToolkit::TestCHuiCommandConstructL( CStifItemParser& /*aItem*/ ) |
|
329 { |
|
330 |
|
331 // Print to UI |
|
332 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
333 _LIT( KTestCHuiCommandConstructL, "In TestCHuiCommandConstructL" ); |
|
334 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiCommandConstructL ); |
|
335 // Print to log file |
|
336 iLog->Log( KTestCHuiCommandConstructL ); |
|
337 |
|
338 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
339 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
340 CleanupStack::PushL( actionCommand ); |
|
341 actionCommand->SetSender( EHuiCommandObjectTypeNone, iHuiControl ); |
|
342 actionCommand->Type(); |
|
343 actionCommand->SenderType(); |
|
344 actionCommand->Sender(); |
|
345 actionCommand->SenderVisual(); |
|
346 actionCommand->SenderControl(); |
|
347 actionCommand->SenderControlGroup(); |
|
348 CleanupStack::Pop( 1 ); |
|
349 if( actionCommand ) |
|
350 { |
|
351 delete actionCommand; |
|
352 actionCommand = NULL; |
|
353 } |
|
354 |
|
355 return KErrNone; |
|
356 |
|
357 } |
|
358 // ----------------------------------------------------------------------------- |
|
359 // CTestUiAifCoreToolkit::TestCHuiCommandExtensionL |
|
360 // ----------------------------------------------------------------------------- |
|
361 // |
|
362 TInt CTestUiAifCoreToolkit::TestCHuiCommandExtensionL( CStifItemParser& /*aItem*/ ) |
|
363 { |
|
364 |
|
365 // Print to UI |
|
366 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
367 _LIT( KTestCHuiCommandExtensionL, "In TestCHuiCommandExtensionL" ); |
|
368 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiCommandExtensionL ); |
|
369 // Print to log file |
|
370 iLog->Log( KTestCHuiCommandExtensionL ); |
|
371 |
|
372 TTestUiAifBlocksHuiActionCommandChild* actionCommandChild = |
|
373 new ( ELeave ) TTestUiAifBlocksHuiActionCommandChild( 1 ); |
|
374 STIF_ASSERT_NOT_NULL( actionCommandChild ); |
|
375 CleanupStack::PushL( actionCommandChild ); |
|
376 const TUid aExtensionUid = TUid::Null(); |
|
377 TAny** aExtensionParams = NULL; |
|
378 actionCommandChild->SetCommandExtension( aExtensionUid, aExtensionParams ); |
|
379 CleanupStack::Pop( 1 ); |
|
380 if( actionCommandChild ) |
|
381 { |
|
382 delete actionCommandChild; |
|
383 actionCommandChild = NULL; |
|
384 } |
|
385 |
|
386 return KErrNone; |
|
387 |
|
388 } |
|
389 // ----------------------------------------------------------------------------- |
|
390 // CTestUiAifCoreToolkit::TestCHuiCommandTActionCommandL |
|
391 // ----------------------------------------------------------------------------- |
|
392 // |
|
393 TInt CTestUiAifCoreToolkit::TestCHuiCommandTActionCommandL( CStifItemParser& /*aItem*/ ) |
|
394 { |
|
395 |
|
396 // Print to UI |
|
397 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
398 _LIT( KTestCHuiCommandTActionCommandL, "In TestCHuiCommandTActionCommandL" ); |
|
399 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiCommandTActionCommandL ); |
|
400 // Print to log file |
|
401 iLog->Log( KTestCHuiCommandTActionCommandL ); |
|
402 |
|
403 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
404 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
405 CleanupStack::PushL( actionCommand ); |
|
406 CleanupStack::Pop( 1 ); |
|
407 if( actionCommand ) |
|
408 { |
|
409 delete actionCommand; |
|
410 actionCommand = NULL; |
|
411 } |
|
412 |
|
413 return KErrNone; |
|
414 |
|
415 } |
|
416 // ----------------------------------------------------------------------------- |
|
417 // CTestUiAifCoreToolkit::TestCHuiCommandExecuteL |
|
418 // ----------------------------------------------------------------------------- |
|
419 // |
|
420 TInt CTestUiAifCoreToolkit::TestCHuiCommandExecuteL( CStifItemParser& /*aItem*/ ) |
|
421 { |
|
422 |
|
423 // Print to UI |
|
424 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
425 _LIT( KTestCHuiCommandExecuteL, "In TestCHuiCommandExecuteL" ); |
|
426 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiCommandExecuteL ); |
|
427 // Print to log file |
|
428 iLog->Log( KTestCHuiCommandExecuteL ); |
|
429 |
|
430 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
431 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
432 CleanupStack::PushL( actionCommand ); |
|
433 actionCommand->ExecuteL( *iHuiEnv ); |
|
434 CleanupStack::Pop( 1 ); |
|
435 if( actionCommand ) |
|
436 { |
|
437 delete actionCommand; |
|
438 actionCommand = NULL; |
|
439 } |
|
440 |
|
441 return KErrNone; |
|
442 |
|
443 } |
|
444 // ----------------------------------------------------------------------------- |
|
445 // CTestUiAifCoreToolkit::TestCHuiCommandSizeL |
|
446 // ----------------------------------------------------------------------------- |
|
447 // |
|
448 TInt CTestUiAifCoreToolkit::TestCHuiCommandSizeL( CStifItemParser& /*aItem*/ ) |
|
449 { |
|
450 |
|
451 // Print to UI |
|
452 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
453 _LIT( KTestCHuiCommandSizeL, "In TestCHuiCommandSizeL" ); |
|
454 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiCommandSizeL ); |
|
455 // Print to log file |
|
456 iLog->Log( KTestCHuiCommandSizeL ); |
|
457 |
|
458 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
459 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
460 CleanupStack::PushL( actionCommand ); |
|
461 actionCommand->ExecuteL( *iHuiEnv ); |
|
462 actionCommand->Size(); |
|
463 CleanupStack::Pop( 1 ); |
|
464 if( actionCommand ) |
|
465 { |
|
466 delete actionCommand; |
|
467 actionCommand = NULL; |
|
468 } |
|
469 |
|
470 return KErrNone; |
|
471 |
|
472 } |
|
473 // ----------------------------------------------------------------------------- |
|
474 // CTestUiAifCoreToolkit::TestCHuiCommandIdL |
|
475 // ----------------------------------------------------------------------------- |
|
476 // |
|
477 TInt CTestUiAifCoreToolkit::TestCHuiCommandIdL( CStifItemParser& /*aItem*/ ) |
|
478 { |
|
479 |
|
480 // Print to UI |
|
481 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
482 _LIT( KTestCHuiCommandIdL, "In TestCHuiCommandIdL" ); |
|
483 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiCommandIdL ); |
|
484 // Print to log file |
|
485 iLog->Log( KTestCHuiCommandIdL ); |
|
486 |
|
487 THuiActionCommand* actionCommand = new ( ELeave )THuiActionCommand( 1 ); |
|
488 STIF_ASSERT_NOT_NULL( actionCommand ); |
|
489 CleanupStack::PushL( actionCommand ); |
|
490 actionCommand->ExecuteL( *iHuiEnv ); |
|
491 actionCommand->Size(); |
|
492 actionCommand->Id(); |
|
493 CleanupStack::Pop( 1 ); |
|
494 if( actionCommand ) |
|
495 { |
|
496 delete actionCommand; |
|
497 actionCommand = NULL; |
|
498 } |
|
499 |
|
500 return KErrNone; |
|
501 |
|
502 } |
|
503 // ----------------------------------------------------------------------------- |
|
504 // CTestUiAifCoreToolkit::TestCHuiActionCommandExtensionL |
|
505 // ----------------------------------------------------------------------------- |
|
506 // |
|
507 TInt CTestUiAifCoreToolkit::TestCHuiActionCommandExtensionL( CStifItemParser& /*aItem*/ ) |
|
508 { |
|
509 |
|
510 // Print to UI |
|
511 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
512 _LIT( KTestCHuiActionCommandExtensionL, "In TestCHuiActionCommandExtensionL" ); |
|
513 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiActionCommandExtensionL ); |
|
514 // Print to log file |
|
515 iLog->Log( KTestCHuiActionCommandExtensionL ); |
|
516 |
|
517 TTestUiAifBlocksHuiActionCommandChild* actionCommandChild = |
|
518 new ( ELeave ) TTestUiAifBlocksHuiActionCommandChild( 1 ); |
|
519 STIF_ASSERT_NOT_NULL( actionCommandChild ); |
|
520 CleanupStack::PushL( actionCommandChild ); |
|
521 const TUid aExtensionUid = TUid::Null(); |
|
522 TAny** aExtensionParams = NULL; |
|
523 actionCommandChild->SetCommandExtension( aExtensionUid, aExtensionParams ); |
|
524 CleanupStack::Pop( 1 ); |
|
525 if( actionCommandChild ) |
|
526 { |
|
527 delete actionCommandChild; |
|
528 actionCommandChild = NULL; |
|
529 } |
|
530 |
|
531 return KErrNone; |
|
532 |
|
533 } |
|
534 // ----------------------------------------------------------------------------- |
|
535 // CTestUiAifCoreToolkit::TestCHuiObjectCommandL |
|
536 // ----------------------------------------------------------------------------- |
|
537 // |
|
538 TInt CTestUiAifCoreToolkit::TestCHuiObjectCommandL( CStifItemParser& /*aItem*/ ) |
|
539 { |
|
540 |
|
541 // Print to UI |
|
542 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
543 _LIT( KTestCHuiObjectCommandL, "In TestCHuiObjectCommandL" ); |
|
544 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiObjectCommandL ); |
|
545 // Print to log file |
|
546 iLog->Log( KTestCHuiObjectCommandL ); |
|
547 |
|
548 THuiOp aOperation = EHuiOpHide; |
|
549 THuiGroupCommand* groupCommand = new ( ELeave ) THuiGroupCommand( |
|
550 *iHuiControlGroup, aOperation, iHuiDisplay ); |
|
551 STIF_ASSERT_NOT_NULL( groupCommand ); |
|
552 CleanupStack::PushL( groupCommand ); |
|
553 groupCommand->ObjectCommand(); |
|
554 CleanupStack::Pop( 1 ); |
|
555 |
|
556 return KErrNone; |
|
557 |
|
558 } |
|
559 // ----------------------------------------------------------------------------- |
|
560 // CTestUiAifCoreToolkit::TestCHuiObjectCommandExecuteL |
|
561 // ----------------------------------------------------------------------------- |
|
562 // |
|
563 TInt CTestUiAifCoreToolkit::TestCHuiObjectCommandExecuteL( CStifItemParser& /*aItem*/ ) |
|
564 { |
|
565 |
|
566 // Print to UI |
|
567 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
568 _LIT( KTestCHuiObjectCommandExecuteL, "In TestCHuiObjectCommandExecuteL" ); |
|
569 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiObjectCommandExecuteL ); |
|
570 // Print to log file |
|
571 iLog->Log( KTestCHuiObjectCommandExecuteL ); |
|
572 |
|
573 THuiOp aOperation = EHuiOpHide; |
|
574 THuiGroupCommand* groupCommand = new ( ELeave ) THuiGroupCommand( |
|
575 *iHuiControlGroup, aOperation, iHuiDisplay ); |
|
576 STIF_ASSERT_NOT_NULL( groupCommand ); |
|
577 CleanupStack::PushL( groupCommand ); |
|
578 groupCommand->ObjectCommand(); |
|
579 groupCommand->ExecuteL( *iHuiEnv ); |
|
580 CleanupStack::Pop( 1 ); |
|
581 |
|
582 return KErrNone; |
|
583 |
|
584 } |
|
585 // ----------------------------------------------------------------------------- |
|
586 // CTestUiAifCoreToolkit::TestCHuiObjectCommandSizeL |
|
587 // ----------------------------------------------------------------------------- |
|
588 // |
|
589 TInt CTestUiAifCoreToolkit::TestCHuiObjectCommandSizeL( CStifItemParser& /*aItem*/ ) |
|
590 { |
|
591 |
|
592 // Print to UI |
|
593 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
594 _LIT( KTestCHuiObjectCommandSizeL, "In TestCHuiObjectCommandSizeL" ); |
|
595 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiObjectCommandSizeL ); |
|
596 // Print to log file |
|
597 iLog->Log( KTestCHuiObjectCommandSizeL ); |
|
598 |
|
599 THuiOp aOperation = EHuiOpHide; |
|
600 THuiGroupCommand* groupCommand = new ( ELeave ) THuiGroupCommand( |
|
601 *iHuiControlGroup, aOperation, iHuiDisplay ); |
|
602 STIF_ASSERT_NOT_NULL( groupCommand ); |
|
603 CleanupStack::PushL( groupCommand ); |
|
604 groupCommand->ObjectCommand(); |
|
605 groupCommand->ExecuteL( *iHuiEnv ); |
|
606 groupCommand->Size(); |
|
607 CleanupStack::Pop( 1 ); |
|
608 |
|
609 return KErrNone; |
|
610 |
|
611 } |
|
612 // ----------------------------------------------------------------------------- |
|
613 // CTestUiAifCoreToolkit::TestCHuiObjectCommandObjectL |
|
614 // ----------------------------------------------------------------------------- |
|
615 // |
|
616 TInt CTestUiAifCoreToolkit::TestCHuiObjectCommandObjectL( CStifItemParser& /*aItem*/ ) |
|
617 { |
|
618 |
|
619 // Print to UI |
|
620 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
621 _LIT( KTestCHuiObjectCommandObjectL, "In TestCHuiObjectCommandObjectL" ); |
|
622 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiObjectCommandObjectL ); |
|
623 // Print to log file |
|
624 iLog->Log( KTestCHuiObjectCommandObjectL ); |
|
625 |
|
626 THuiOp aOperation = EHuiOpHide; |
|
627 THuiGroupCommand* groupCommand = new ( ELeave ) THuiGroupCommand( |
|
628 *iHuiControlGroup, aOperation, iHuiDisplay ); |
|
629 STIF_ASSERT_NOT_NULL( groupCommand ); |
|
630 CleanupStack::PushL( groupCommand ); |
|
631 groupCommand->ObjectCommand(); |
|
632 groupCommand->ExecuteL( *iHuiEnv ); |
|
633 groupCommand->Size(); |
|
634 groupCommand->Object(); |
|
635 CleanupStack::Pop( 1 ); |
|
636 |
|
637 return KErrNone; |
|
638 |
|
639 } |
|
640 // ----------------------------------------------------------------------------- |
|
641 // CTestUiAifCoreToolkit::TestCHuiObjectCommandOperationL |
|
642 // ----------------------------------------------------------------------------- |
|
643 // |
|
644 TInt CTestUiAifCoreToolkit::TestCHuiObjectCommandOperationL( CStifItemParser& /*aItem*/ ) |
|
645 { |
|
646 |
|
647 // Print to UI |
|
648 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
649 _LIT( KTestCHuiObjectCommandOperationL, "In TestCHuiObjectCommandOperationL" ); |
|
650 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiObjectCommandOperationL ); |
|
651 // Print to log file |
|
652 iLog->Log( KTestCHuiObjectCommandOperationL ); |
|
653 |
|
654 THuiOp aOperation = EHuiOpHide; |
|
655 THuiGroupCommand* groupCommand = new ( ELeave ) THuiGroupCommand( |
|
656 *iHuiControlGroup, aOperation, iHuiDisplay ); |
|
657 STIF_ASSERT_NOT_NULL( groupCommand ); |
|
658 CleanupStack::PushL( groupCommand ); |
|
659 groupCommand->ObjectCommand(); |
|
660 groupCommand->ExecuteL( *iHuiEnv ); |
|
661 groupCommand->Size(); |
|
662 groupCommand->Object(); |
|
663 groupCommand->Operation(); |
|
664 CleanupStack::Pop( 1 ); |
|
665 |
|
666 return KErrNone; |
|
667 |
|
668 } |
|
669 // ----------------------------------------------------------------------------- |
|
670 // CTestUiAifCoreToolkit::TestCHuiObjectCommandConstructL |
|
671 // ----------------------------------------------------------------------------- |
|
672 // |
|
673 TInt CTestUiAifCoreToolkit::TestCHuiObjectCommandConstructL( CStifItemParser& /*aItem*/ ) |
|
674 { |
|
675 |
|
676 // Print to UI |
|
677 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
678 _LIT( KTestCHuiObjectCommandConstructL, "In TestCHuiObjectCommandConstructL" ); |
|
679 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiObjectCommandConstructL ); |
|
680 // Print to log file |
|
681 iLog->Log( KTestCHuiObjectCommandConstructL ); |
|
682 |
|
683 THuiOp aOperation = EHuiOpHide; |
|
684 THuiGroupCommand* groupCommand = new ( ELeave ) THuiGroupCommand( |
|
685 *iHuiControlGroup, aOperation, iHuiDisplay ); |
|
686 STIF_ASSERT_NOT_NULL( groupCommand ); |
|
687 CleanupStack::PushL( groupCommand ); |
|
688 CleanupStack::Pop( 1 ); |
|
689 |
|
690 return KErrNone; |
|
691 |
|
692 } |
|
693 // ----------------------------------------------------------------------------- |
|
694 // CTestUiAifCoreToolkit::TestCHuiObjectCommandExtensionL |
|
695 // ----------------------------------------------------------------------------- |
|
696 // |
|
697 TInt CTestUiAifCoreToolkit::TestCHuiObjectCommandExtensionL( CStifItemParser& /*aItem*/ ) |
|
698 { |
|
699 |
|
700 // Print to UI |
|
701 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
702 _LIT( KTestCHuiObjectCommandExtensionL, "In TestCHuiObjectCommandExtensionL" ); |
|
703 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestCHuiObjectCommandExtensionL ); |
|
704 // Print to log file |
|
705 iLog->Log( KTestCHuiObjectCommandExtensionL ); |
|
706 |
|
707 THuiOp aOperation = EHuiOpHide; |
|
708 TTestUiAifBlocksHuiGroupCommandChild* groupCommandChild = new ( ELeave ) |
|
709 TTestUiAifBlocksHuiGroupCommandChild( *iHuiControlGroup, aOperation, iHuiDisplay ); |
|
710 STIF_ASSERT_NOT_NULL( groupCommandChild ); |
|
711 CleanupStack::PushL( groupCommandChild ); |
|
712 const TUid aExtensionUid = TUid::Null(); |
|
713 TAny** aExtensionParams = NULL; |
|
714 groupCommandChild->SetCommandExtension( aExtensionUid, aExtensionParams ); |
|
715 CleanupStack::Pop( 1 ); |
|
716 |
|
717 return KErrNone; |
|
718 |
|
719 } |
|
720 // ----------------------------------------------------------------------------- |
|
721 // CTestUiAifCoreToolkit::TestTHuiGroupCommandL |
|
722 // ----------------------------------------------------------------------------- |
|
723 // |
|
724 TInt CTestUiAifCoreToolkit::TestTHuiGroupCommandL( CStifItemParser& /*aItem*/ ) |
|
725 { |
|
726 |
|
727 // Print to UI |
|
728 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
729 _LIT( KTestTHuiGroupCommandL, "In TestTHuiGroupCommandL" ); |
|
730 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiGroupCommandL ); |
|
731 // Print to log file |
|
732 iLog->Log( KTestTHuiGroupCommandL ); |
|
733 |
|
734 THuiOp aOperation = EHuiOpHide; |
|
735 THuiGroupCommand* groupCommand = new ( ELeave ) THuiGroupCommand( |
|
736 *iHuiControlGroup, aOperation, iHuiDisplay ); |
|
737 STIF_ASSERT_NOT_NULL( groupCommand ); |
|
738 CleanupStack::PushL( groupCommand ); |
|
739 CleanupStack::Pop( 1 ); |
|
740 |
|
741 return KErrNone; |
|
742 |
|
743 } |
|
744 // ----------------------------------------------------------------------------- |
|
745 // CTestUiAifCoreToolkit::TestTHuiGroupCommandExecuteL |
|
746 // ----------------------------------------------------------------------------- |
|
747 // |
|
748 TInt CTestUiAifCoreToolkit::TestTHuiGroupCommandExecuteL( CStifItemParser& /*aItem*/ ) |
|
749 { |
|
750 |
|
751 // Print to UI |
|
752 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
753 _LIT( KTestTHuiGroupCommandExecuteL, "In TestTHuiGroupCommandExecuteL" ); |
|
754 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiGroupCommandExecuteL ); |
|
755 // Print to log file |
|
756 iLog->Log( KTestTHuiGroupCommandExecuteL ); |
|
757 |
|
758 THuiOp aOperation = EHuiOpHide; |
|
759 THuiGroupCommand* groupCommand = new ( ELeave ) THuiGroupCommand( |
|
760 *iHuiControlGroup, aOperation, iHuiDisplay ); |
|
761 STIF_ASSERT_NOT_NULL( groupCommand ); |
|
762 CleanupStack::PushL( groupCommand ); |
|
763 groupCommand->ExecuteL( *iHuiEnv ); |
|
764 CleanupStack::Pop( 1 ); |
|
765 |
|
766 return KErrNone; |
|
767 |
|
768 } |
|
769 // ----------------------------------------------------------------------------- |
|
770 // CTestUiAifCoreToolkit::TestTHuiGroupCommandSizeL |
|
771 // ----------------------------------------------------------------------------- |
|
772 // |
|
773 TInt CTestUiAifCoreToolkit::TestTHuiGroupCommandSizeL( CStifItemParser& /*aItem*/ ) |
|
774 { |
|
775 |
|
776 // Print to UI |
|
777 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
778 _LIT( KTestTHuiGroupCommandSizeL, "In TestTHuiGroupCommandSizeL" ); |
|
779 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiGroupCommandSizeL ); |
|
780 // Print to log file |
|
781 iLog->Log( KTestTHuiGroupCommandSizeL ); |
|
782 |
|
783 THuiOp aOperation = EHuiOpHide; |
|
784 THuiGroupCommand* groupCommand = new ( ELeave ) THuiGroupCommand( |
|
785 *iHuiControlGroup, aOperation, iHuiDisplay ); |
|
786 STIF_ASSERT_NOT_NULL( groupCommand ); |
|
787 CleanupStack::PushL( groupCommand ); |
|
788 groupCommand->ExecuteL( *iHuiEnv ); |
|
789 groupCommand->Size(); |
|
790 CleanupStack::Pop( 1 ); |
|
791 |
|
792 return KErrNone; |
|
793 |
|
794 } |
|
795 // ----------------------------------------------------------------------------- |
|
796 // CTestUiAifCoreToolkit::TestTHuiGroupCommandControlGroupL |
|
797 // ----------------------------------------------------------------------------- |
|
798 // |
|
799 TInt CTestUiAifCoreToolkit::TestTHuiGroupCommandControlGroupL( CStifItemParser& /*aItem*/ ) |
|
800 { |
|
801 |
|
802 // Print to UI |
|
803 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
804 _LIT( KTestTHuiGroupCommandControlGroupL, "In TestTHuiGroupCommandControlGroupL" ); |
|
805 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiGroupCommandControlGroupL ); |
|
806 // Print to log file |
|
807 iLog->Log( KTestTHuiGroupCommandControlGroupL ); |
|
808 |
|
809 THuiOp aOperation = EHuiOpHide; |
|
810 THuiGroupCommand* groupCommand = new ( ELeave ) THuiGroupCommand( |
|
811 *iHuiControlGroup, aOperation, iHuiDisplay ); |
|
812 STIF_ASSERT_NOT_NULL( groupCommand ); |
|
813 CleanupStack::PushL( groupCommand ); |
|
814 groupCommand->ExecuteL( *iHuiEnv ); |
|
815 groupCommand->Size(); |
|
816 groupCommand->ControlGroup(); |
|
817 CleanupStack::Pop( 1 ); |
|
818 |
|
819 return KErrNone; |
|
820 |
|
821 } |
|
822 // ----------------------------------------------------------------------------- |
|
823 // CTestUiAifCoreToolkit::TestTHuiGroupCommandDisplayL |
|
824 // ----------------------------------------------------------------------------- |
|
825 // |
|
826 TInt CTestUiAifCoreToolkit::TestTHuiGroupCommandDisplayL( CStifItemParser& /*aItem*/ ) |
|
827 { |
|
828 |
|
829 // Print to UI |
|
830 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
831 _LIT( KTestTHuiGroupCommandDisplayL, "In TestTHuiGroupCommandDisplayL" ); |
|
832 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiGroupCommandDisplayL ); |
|
833 // Print to log file |
|
834 iLog->Log( KTestTHuiGroupCommandDisplayL ); |
|
835 |
|
836 THuiOp aOperation = EHuiOpHide; |
|
837 THuiGroupCommand* groupCommand = new ( ELeave ) THuiGroupCommand( |
|
838 *iHuiControlGroup, aOperation, iHuiDisplay ); |
|
839 STIF_ASSERT_NOT_NULL( groupCommand ); |
|
840 CleanupStack::PushL( groupCommand ); |
|
841 groupCommand->ExecuteL( *iHuiEnv ); |
|
842 groupCommand->Size(); |
|
843 groupCommand->ControlGroup(); |
|
844 groupCommand->Display(); |
|
845 CleanupStack::Pop( 1 ); |
|
846 |
|
847 return KErrNone; |
|
848 |
|
849 } |
|
850 // ----------------------------------------------------------------------------- |
|
851 // CTestUiAifCoreToolkit::TestTHuiGroupCommandExtensionL |
|
852 // ----------------------------------------------------------------------------- |
|
853 // |
|
854 TInt CTestUiAifCoreToolkit::TestTHuiGroupCommandExtensionL( CStifItemParser& /*aItem*/ ) |
|
855 { |
|
856 |
|
857 // Print to UI |
|
858 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
859 _LIT( KTestTHuiGroupCommandExtensionL, "In TestTHuiGroupCommandExtensionL" ); |
|
860 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiGroupCommandExtensionL ); |
|
861 // Print to log file |
|
862 iLog->Log( KTestTHuiGroupCommandExtensionL ); |
|
863 |
|
864 THuiOp aOperation = EHuiOpHide; |
|
865 TTestUiAifBlocksHuiGroupCommandChild* groupCommandChild = new ( ELeave ) |
|
866 TTestUiAifBlocksHuiGroupCommandChild( *iHuiControlGroup, aOperation, iHuiDisplay ); |
|
867 STIF_ASSERT_NOT_NULL( groupCommandChild ); |
|
868 CleanupStack::PushL( groupCommandChild ); |
|
869 const TUid aExtensionUid = TUid::Null(); |
|
870 TAny** aExtensionParams = NULL; |
|
871 groupCommandChild->SetCommandExtension( aExtensionUid, aExtensionParams ); |
|
872 CleanupStack::Pop( 1 ); |
|
873 |
|
874 return KErrNone; |
|
875 |
|
876 } |
|
877 // ----------------------------------------------------------------------------- |
|
878 // CTestUiAifCoreToolkit::TestTHuiControlCommandL |
|
879 // ----------------------------------------------------------------------------- |
|
880 // |
|
881 TInt CTestUiAifCoreToolkit::TestTHuiControlCommandL( CStifItemParser& /*aItem*/ ) |
|
882 { |
|
883 |
|
884 // Print to UI |
|
885 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
886 _LIT( KTestTHuiiHuiControlCommandL, "In TestTHuiiHuiControlCommandL" ); |
|
887 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiiHuiControlCommandL ); |
|
888 // Print to log file |
|
889 iLog->Log( KTestTHuiiHuiControlCommandL ); |
|
890 |
|
891 THuiOp aOperation = EHuiOpHide; |
|
892 THuiControlCommand* iHuiControlCommand = new ( ELeave ) THuiControlCommand( |
|
893 *iHuiControl, aOperation ); |
|
894 STIF_ASSERT_NOT_NULL( iHuiControlCommand ); |
|
895 |
|
896 return KErrNone; |
|
897 |
|
898 } |
|
899 // ----------------------------------------------------------------------------- |
|
900 // CTestUiAifCoreToolkit::TestTHuiControlCommandExecuteL |
|
901 // ----------------------------------------------------------------------------- |
|
902 // |
|
903 TInt CTestUiAifCoreToolkit::TestTHuiControlCommandExecuteL( CStifItemParser& /*aItem*/ ) |
|
904 { |
|
905 |
|
906 // Print to UI |
|
907 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
908 _LIT( KTestTHuiiHuiControlCommandExecuteL, "In TestTHuiiHuiControlCommandExecuteL" ); |
|
909 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiiHuiControlCommandExecuteL ); |
|
910 // Print to log file |
|
911 iLog->Log( KTestTHuiiHuiControlCommandExecuteL ); |
|
912 |
|
913 THuiOp aOperation = EHuiOpHide; |
|
914 THuiControlCommand* iHuiControlCommand = new ( ELeave ) THuiControlCommand( |
|
915 *iHuiControl, aOperation ); |
|
916 STIF_ASSERT_NOT_NULL( iHuiControlCommand ); |
|
917 iHuiControlCommand->ExecuteL( *iHuiEnv ); |
|
918 |
|
919 return KErrNone; |
|
920 |
|
921 } |
|
922 // ----------------------------------------------------------------------------- |
|
923 // CTestUiAifCoreToolkit::TestTHuiControlCommandSizeL |
|
924 // ----------------------------------------------------------------------------- |
|
925 // |
|
926 TInt CTestUiAifCoreToolkit::TestTHuiControlCommandSizeL( CStifItemParser& /*aItem*/ ) |
|
927 { |
|
928 |
|
929 // Print to UI |
|
930 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
931 _LIT( KTestTHuiControlCommandSizeL, "In TestTHuiControlCommandSizeL" ); |
|
932 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiControlCommandSizeL ); |
|
933 // Print to log file |
|
934 iLog->Log( KTestTHuiControlCommandSizeL ); |
|
935 |
|
936 THuiOp aOperation = EHuiOpHide; |
|
937 THuiControlCommand* iHuiControlCommand = new ( ELeave ) THuiControlCommand( |
|
938 *iHuiControl, aOperation ); |
|
939 STIF_ASSERT_NOT_NULL( iHuiControlCommand ); |
|
940 iHuiControlCommand->ExecuteL( *iHuiEnv ); |
|
941 iHuiControlCommand->Size(); |
|
942 |
|
943 return KErrNone; |
|
944 |
|
945 } |
|
946 // ----------------------------------------------------------------------------- |
|
947 // CTestUiAifCoreToolkit::TestTHuiiHuiControlCommandControlL |
|
948 // ----------------------------------------------------------------------------- |
|
949 // |
|
950 TInt CTestUiAifCoreToolkit::TestTHuiControlCommandControlL( CStifItemParser& /*aItem*/ ) |
|
951 { |
|
952 |
|
953 // Print to UI |
|
954 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
955 _LIT( KTestTHuiControlCommandControlL, "In TestTHuiControlCommandControlL" ); |
|
956 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiControlCommandControlL ); |
|
957 // Print to log file |
|
958 iLog->Log( KTestTHuiControlCommandControlL ); |
|
959 |
|
960 THuiOp aOperation = EHuiOpHide; |
|
961 THuiControlCommand* iHuiControlCommand = new ( ELeave ) THuiControlCommand( |
|
962 *iHuiControl, aOperation ); |
|
963 STIF_ASSERT_NOT_NULL( iHuiControlCommand ); |
|
964 iHuiControlCommand->ExecuteL( *iHuiEnv ); |
|
965 iHuiControlCommand->Size(); |
|
966 iHuiControlCommand->Control(); |
|
967 |
|
968 return KErrNone; |
|
969 |
|
970 } |
|
971 // ----------------------------------------------------------------------------- |
|
972 // CTestUiAifCoreToolkit::TestTHuiControlCommandExtensionL |
|
973 // ----------------------------------------------------------------------------- |
|
974 // |
|
975 TInt CTestUiAifCoreToolkit::TestTHuiControlCommandExtensionL( CStifItemParser& /*aItem*/ ) |
|
976 { |
|
977 |
|
978 // Print to UI |
|
979 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
980 _LIT( KTestTHuiControlCommandExtensionL, "In TestTHuiControlCommandExtensionL" ); |
|
981 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiControlCommandExtensionL ); |
|
982 // Print to log file |
|
983 iLog->Log( KTestTHuiControlCommandExtensionL ); |
|
984 |
|
985 THuiOp aOperation = EHuiOpHide; |
|
986 TTestUiAifBlocksHuiControlCommandChild* iHuiControlCommandChild = |
|
987 new ( ELeave ) TTestUiAifBlocksHuiControlCommandChild( *iHuiControl, aOperation ); |
|
988 STIF_ASSERT_NOT_NULL( iHuiControlCommandChild ); |
|
989 const TUid aExtensionUid = TUid::Null(); |
|
990 TAny** aExtensionParams = NULL; |
|
991 iHuiControlCommandChild->SetCommandExtension( aExtensionUid, aExtensionParams ); |
|
992 |
|
993 return KErrNone; |
|
994 |
|
995 } |
|
996 // ----------------------------------------------------------------------------- |
|
997 // CTestUiAifCoreToolkit::TestTHuiVisualCommandL |
|
998 // ----------------------------------------------------------------------------- |
|
999 // |
|
1000 TInt CTestUiAifCoreToolkit::TestTHuiVisualCommandL( CStifItemParser& /*aItem*/ ) |
|
1001 { |
|
1002 |
|
1003 // Print to UI |
|
1004 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1005 _LIT( KTestTHuiVisualCommandL, "In TestTHuiVisualCommandL" ); |
|
1006 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiVisualCommandL ); |
|
1007 // Print to log file |
|
1008 iLog->Log( KTestTHuiVisualCommandL ); |
|
1009 |
|
1010 CHuiVisual* visual = new ( ELeave )CHuiVisual( *iHuiControl ); |
|
1011 STIF_ASSERT_NOT_NULL( visual ); |
|
1012 CleanupStack::PushL( visual ); |
|
1013 THuiOp aOperation = EHuiOpRemoveAndDestroyAll; |
|
1014 THuiVisualCommand* visualCommand = new ( ELeave ) THuiVisualCommand( |
|
1015 *visual, aOperation ); |
|
1016 STIF_ASSERT_NOT_NULL( visualCommand ); |
|
1017 CleanupStack::PushL( visualCommand ); |
|
1018 CleanupStack::Pop( 2 ); |
|
1019 |
|
1020 return KErrNone; |
|
1021 |
|
1022 } |
|
1023 // ----------------------------------------------------------------------------- |
|
1024 // CTestUiAifCoreToolkit::TestTHuiVisualCommandExecuteL |
|
1025 // ----------------------------------------------------------------------------- |
|
1026 // |
|
1027 TInt CTestUiAifCoreToolkit::TestTHuiVisualCommandExecuteL( CStifItemParser& /*aItem*/ ) |
|
1028 { |
|
1029 |
|
1030 // Print to UI |
|
1031 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1032 _LIT( KTestTHuiVisualCommandExecuteL, "In TestTHuiVisualCommandExecuteL" ); |
|
1033 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiVisualCommandExecuteL ); |
|
1034 // Print to log file |
|
1035 iLog->Log( KTestTHuiVisualCommandExecuteL ); |
|
1036 |
|
1037 CHuiVisual* visual = new ( ELeave )CHuiVisual( *iHuiControl ); |
|
1038 STIF_ASSERT_NOT_NULL( visual ); |
|
1039 CleanupStack::PushL( visual ); |
|
1040 THuiOp aOperation = EHuiOpRemoveAndDestroyAll; |
|
1041 THuiVisualCommand* visualCommand = new ( ELeave ) THuiVisualCommand( |
|
1042 *visual, aOperation ); |
|
1043 STIF_ASSERT_NOT_NULL( visualCommand ); |
|
1044 CleanupStack::PushL( visualCommand ); |
|
1045 visualCommand->ExecuteL( *iHuiEnv ); |
|
1046 CleanupStack::Pop( 2 ); |
|
1047 |
|
1048 return KErrNone; |
|
1049 |
|
1050 } |
|
1051 // ----------------------------------------------------------------------------- |
|
1052 // CTestUiAifCoreToolkit::TestTHuiVisualCommandSizeL |
|
1053 // ----------------------------------------------------------------------------- |
|
1054 // |
|
1055 TInt CTestUiAifCoreToolkit::TestTHuiVisualCommandSizeL( CStifItemParser& /*aItem*/ ) |
|
1056 { |
|
1057 |
|
1058 // Print to UI |
|
1059 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1060 _LIT( KTestTHuiVisualCommandSizeL, "In TestTHuiVisualCommandSizeL" ); |
|
1061 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiVisualCommandSizeL ); |
|
1062 // Print to log file |
|
1063 iLog->Log( KTestTHuiVisualCommandSizeL ); |
|
1064 |
|
1065 CHuiVisual* visual = new ( ELeave )CHuiVisual( *iHuiControl ); |
|
1066 STIF_ASSERT_NOT_NULL( visual ); |
|
1067 CleanupStack::PushL( visual ); |
|
1068 THuiOp aOperation = EHuiOpRemoveAndDestroyAll; |
|
1069 THuiVisualCommand* visualCommand = new ( ELeave ) THuiVisualCommand( |
|
1070 *visual, aOperation ); |
|
1071 STIF_ASSERT_NOT_NULL( visualCommand ); |
|
1072 CleanupStack::PushL( visualCommand ); |
|
1073 visualCommand->ExecuteL( *iHuiEnv ); |
|
1074 visualCommand->Size(); |
|
1075 CleanupStack::Pop( 2 ); |
|
1076 |
|
1077 return KErrNone; |
|
1078 |
|
1079 } |
|
1080 // ----------------------------------------------------------------------------- |
|
1081 // CTestUiAifCoreToolkit::TestTHuiVisualCommandVisualL |
|
1082 // ----------------------------------------------------------------------------- |
|
1083 // |
|
1084 TInt CTestUiAifCoreToolkit::TestTHuiVisualCommandVisualL( CStifItemParser& /*aItem*/ ) |
|
1085 { |
|
1086 |
|
1087 // Print to UI |
|
1088 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1089 _LIT( KTestTHuiVisualCommandVisualL, "In TestTHuiVisualCommandVisualL" ); |
|
1090 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiVisualCommandVisualL ); |
|
1091 // Print to log file |
|
1092 iLog->Log( KTestTHuiVisualCommandVisualL ); |
|
1093 |
|
1094 CHuiVisual* visual = new ( ELeave )CHuiVisual( *iHuiControl ); |
|
1095 STIF_ASSERT_NOT_NULL( visual ); |
|
1096 CleanupStack::PushL( visual ); |
|
1097 THuiOp aOperation = EHuiOpRemoveAndDestroyAll; |
|
1098 THuiVisualCommand* visualCommand = new ( ELeave ) THuiVisualCommand( |
|
1099 *visual, aOperation ); |
|
1100 STIF_ASSERT_NOT_NULL( visualCommand ); |
|
1101 CleanupStack::PushL( visualCommand ); |
|
1102 visualCommand->ExecuteL( *iHuiEnv ); |
|
1103 visualCommand->Size(); |
|
1104 visualCommand->Visual(); |
|
1105 CleanupStack::Pop( 2 ); |
|
1106 |
|
1107 return KErrNone; |
|
1108 |
|
1109 } |
|
1110 // ----------------------------------------------------------------------------- |
|
1111 // CTestUiAifCoreToolkit::TestTHuiVisualCommandFlagsToSetL |
|
1112 // ----------------------------------------------------------------------------- |
|
1113 // |
|
1114 TInt CTestUiAifCoreToolkit::TestTHuiVisualCommandFlagsToSetL( CStifItemParser& /*aItem*/ ) |
|
1115 { |
|
1116 |
|
1117 // Print to UI |
|
1118 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1119 _LIT( KTestTHuiVisualCommandFlagsToSetL, "In TestTHuiVisualCommandFlagsToSetL" ); |
|
1120 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiVisualCommandFlagsToSetL ); |
|
1121 // Print to log file |
|
1122 iLog->Log( KTestTHuiVisualCommandFlagsToSetL ); |
|
1123 |
|
1124 CHuiVisual* visual = new ( ELeave )CHuiVisual( *iHuiControl ); |
|
1125 STIF_ASSERT_NOT_NULL( visual ); |
|
1126 CleanupStack::PushL( visual ); |
|
1127 THuiOp aOperation = EHuiOpRemoveAndDestroyAll; |
|
1128 THuiVisualCommand* visualCommand = new ( ELeave ) THuiVisualCommand( |
|
1129 *visual, aOperation ); |
|
1130 STIF_ASSERT_NOT_NULL( visualCommand ); |
|
1131 CleanupStack::PushL( visualCommand ); |
|
1132 visualCommand->ExecuteL( *iHuiEnv ); |
|
1133 visualCommand->Size(); |
|
1134 visualCommand->Visual(); |
|
1135 visualCommand->FlagsToSet(); |
|
1136 CleanupStack::Pop( 2 ); |
|
1137 |
|
1138 return KErrNone; |
|
1139 |
|
1140 } |
|
1141 // ----------------------------------------------------------------------------- |
|
1142 // CTestUiAifCoreToolkit::TestTHuiVisualCommandFlagsToClearL |
|
1143 // ----------------------------------------------------------------------------- |
|
1144 // |
|
1145 TInt CTestUiAifCoreToolkit::TestTHuiVisualCommandFlagsToClearL( CStifItemParser& /*aItem*/ ) |
|
1146 { |
|
1147 |
|
1148 // Print to UI |
|
1149 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1150 _LIT( KTestTHuiVisualCommandFlagsToClearL, "In TestTHuiVisualCommandFlagsToClearL" ); |
|
1151 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiVisualCommandFlagsToClearL ); |
|
1152 // Print to log file |
|
1153 iLog->Log( KTestTHuiVisualCommandFlagsToClearL ); |
|
1154 |
|
1155 CHuiVisual* visual = new ( ELeave )CHuiVisual( *iHuiControl ); |
|
1156 STIF_ASSERT_NOT_NULL( visual ); |
|
1157 CleanupStack::PushL( visual ); |
|
1158 THuiOp aOperation = EHuiOpRemoveAndDestroyAll; |
|
1159 THuiVisualCommand* visualCommand = new ( ELeave ) THuiVisualCommand( |
|
1160 *visual, aOperation ); |
|
1161 STIF_ASSERT_NOT_NULL( visualCommand ); |
|
1162 CleanupStack::PushL( visualCommand ); |
|
1163 visualCommand->ExecuteL( *iHuiEnv ); |
|
1164 visualCommand->Size(); |
|
1165 visualCommand->Visual(); |
|
1166 visualCommand->FlagsToSet(); |
|
1167 CleanupStack::Pop( 2 ); |
|
1168 |
|
1169 return KErrNone; |
|
1170 |
|
1171 } |
|
1172 // ----------------------------------------------------------------------------- |
|
1173 // CTestUiAifCoreToolkit::TestTHuiVisualCommandExtensionL |
|
1174 // ----------------------------------------------------------------------------- |
|
1175 // |
|
1176 TInt CTestUiAifCoreToolkit::TestTHuiVisualCommandExtensionL( CStifItemParser& /*aItem*/ ) |
|
1177 { |
|
1178 |
|
1179 // Print to UI |
|
1180 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1181 _LIT( KTestTHuiVisualCommandExtensionL, "In TestTHuiVisualCommandExtensionL" ); |
|
1182 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiVisualCommandExtensionL ); |
|
1183 // Print to log file |
|
1184 iLog->Log( KTestTHuiVisualCommandExtensionL ); |
|
1185 |
|
1186 CHuiVisual* visual = new ( ELeave )CHuiVisual( *iHuiControl ); |
|
1187 STIF_ASSERT_NOT_NULL( visual ); |
|
1188 CleanupStack::PushL( visual ); |
|
1189 THuiOp aOperation = EHuiOpRemoveAndDestroyAll; |
|
1190 TTestUiAifBlocksHuiVisualCommandChild* visualCommandChild = |
|
1191 new ( ELeave ) TTestUiAifBlocksHuiVisualCommandChild( *visual, aOperation ); |
|
1192 STIF_ASSERT_NOT_NULL( visualCommandChild ); |
|
1193 CleanupStack::PushL( visualCommandChild ); |
|
1194 const TUid aExtensionUid = TUid::Null(); |
|
1195 TAny** aExtensionParams = NULL; |
|
1196 visualCommandChild->SetCommandExtension( aExtensionUid, aExtensionParams ); |
|
1197 CleanupStack::Pop( 2 ); |
|
1198 |
|
1199 return KErrNone; |
|
1200 |
|
1201 } |
|
1202 // ----------------------------------------------------------------------------- |
|
1203 // CTestUiAifCoreToolkit::TestTHuiImageCommandL |
|
1204 // ----------------------------------------------------------------------------- |
|
1205 // |
|
1206 TInt CTestUiAifCoreToolkit::TestTHuiImageCommandL( CStifItemParser& /*aItem*/ ) |
|
1207 { |
|
1208 |
|
1209 // Print to UI |
|
1210 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1211 _LIT( KTestTHuiImageCommandL, "In TestTHuiImageCommandL" ); |
|
1212 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiImageCommandL ); |
|
1213 // Print to log file |
|
1214 iLog->Log( KTestTHuiImageCommandL ); |
|
1215 |
|
1216 CHuiImageVisual* aImageVisual = CHuiImageVisual::AddNewL( *iHuiControl ); |
|
1217 STIF_ASSERT_NOT_NULL( aImageVisual ); |
|
1218 CleanupStack::PushL( aImageVisual ); |
|
1219 const THuiImage* aImage = new ( ELeave )THuiImage; |
|
1220 THuiImageCommand* imageCommand = |
|
1221 new ( ELeave ) THuiImageCommand( *aImageVisual, *aImage ); |
|
1222 STIF_ASSERT_NOT_NULL( imageCommand ); |
|
1223 CleanupStack::PushL( imageCommand ); |
|
1224 CleanupStack::Pop( 2 ); |
|
1225 if( aImage ) |
|
1226 { |
|
1227 delete aImage; |
|
1228 aImage = NULL; |
|
1229 } |
|
1230 |
|
1231 return KErrNone; |
|
1232 |
|
1233 } |
|
1234 // ----------------------------------------------------------------------------- |
|
1235 // CTestUiAifCoreToolkit::TestTHuiImageCommandExecuteL |
|
1236 // ----------------------------------------------------------------------------- |
|
1237 // |
|
1238 TInt CTestUiAifCoreToolkit::TestTHuiImageCommandExecuteL( CStifItemParser& /*aItem*/ ) |
|
1239 { |
|
1240 |
|
1241 // Print to UI |
|
1242 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1243 _LIT( KTestTHuiImageCommandExecuteL, "In TestTHuiImageCommandExecuteL" ); |
|
1244 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiImageCommandExecuteL ); |
|
1245 // Print to log file |
|
1246 iLog->Log( KTestTHuiImageCommandExecuteL ); |
|
1247 |
|
1248 CHuiImageVisual* aImageVisual = CHuiImageVisual::AddNewL( *iHuiControl ); |
|
1249 STIF_ASSERT_NOT_NULL( aImageVisual ); |
|
1250 CleanupStack::PushL( aImageVisual ); |
|
1251 const THuiImage* aImage = new ( ELeave )THuiImage; |
|
1252 THuiImageCommand* imageCommand = |
|
1253 new ( ELeave ) THuiImageCommand( *aImageVisual, *aImage ); |
|
1254 STIF_ASSERT_NOT_NULL( imageCommand ); |
|
1255 CleanupStack::PushL( imageCommand ); |
|
1256 imageCommand->ExecuteL( *iHuiEnv ); |
|
1257 CleanupStack::Pop( 2 ); |
|
1258 if( aImage ) |
|
1259 { |
|
1260 delete aImage; |
|
1261 aImage = NULL; |
|
1262 } |
|
1263 |
|
1264 return KErrNone; |
|
1265 |
|
1266 } |
|
1267 // ----------------------------------------------------------------------------- |
|
1268 // CTestUiAifCoreToolkit::TestTHuiImageCommandSizeL |
|
1269 // ----------------------------------------------------------------------------- |
|
1270 // |
|
1271 TInt CTestUiAifCoreToolkit::TestTHuiImageCommandSizeL( CStifItemParser& /*aItem*/ ) |
|
1272 { |
|
1273 |
|
1274 // Print to UI |
|
1275 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1276 _LIT( KTestTHuiImageCommandSizeL, "In TestTHuiImageCommandSizeL" ); |
|
1277 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiImageCommandSizeL ); |
|
1278 // Print to log file |
|
1279 iLog->Log( KTestTHuiImageCommandSizeL ); |
|
1280 |
|
1281 CHuiImageVisual* aImageVisual = CHuiImageVisual::AddNewL( *iHuiControl ); |
|
1282 STIF_ASSERT_NOT_NULL( aImageVisual ); |
|
1283 CleanupStack::PushL( aImageVisual ); |
|
1284 const THuiImage* aImage = new ( ELeave )THuiImage; |
|
1285 THuiImageCommand* imageCommand = |
|
1286 new ( ELeave ) THuiImageCommand( *aImageVisual, *aImage ); |
|
1287 STIF_ASSERT_NOT_NULL( imageCommand ); |
|
1288 CleanupStack::PushL( imageCommand ); |
|
1289 imageCommand->ExecuteL( *iHuiEnv ); |
|
1290 imageCommand->Size(); |
|
1291 CleanupStack::Pop( 2 ); |
|
1292 if( aImage ) |
|
1293 { |
|
1294 delete aImage; |
|
1295 aImage = NULL; |
|
1296 } |
|
1297 |
|
1298 return KErrNone; |
|
1299 |
|
1300 } |
|
1301 // ----------------------------------------------------------------------------- |
|
1302 // CTestUiAifCoreToolkit::TestTHuiImageCommandVisualL |
|
1303 // ----------------------------------------------------------------------------- |
|
1304 // |
|
1305 TInt CTestUiAifCoreToolkit::TestTHuiImageCommandVisualL( CStifItemParser& /*aItem*/ ) |
|
1306 { |
|
1307 |
|
1308 // Print to UI |
|
1309 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1310 _LIT( KTestTHuiImageCommandVisualL, "In TestTHuiImageCommandVisualL" ); |
|
1311 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiImageCommandVisualL ); |
|
1312 // Print to log file |
|
1313 iLog->Log( KTestTHuiImageCommandVisualL ); |
|
1314 |
|
1315 CHuiImageVisual* aImageVisual = CHuiImageVisual::AddNewL( *iHuiControl ); |
|
1316 STIF_ASSERT_NOT_NULL( aImageVisual ); |
|
1317 CleanupStack::PushL( aImageVisual ); |
|
1318 const THuiImage* aImage = new ( ELeave )THuiImage; |
|
1319 THuiImageCommand* imageCommand = |
|
1320 new ( ELeave ) THuiImageCommand( *aImageVisual, *aImage ); |
|
1321 STIF_ASSERT_NOT_NULL( imageCommand ); |
|
1322 CleanupStack::PushL( imageCommand ); |
|
1323 imageCommand->ExecuteL( *iHuiEnv ); |
|
1324 imageCommand->Size(); |
|
1325 imageCommand->ImageVisual(); |
|
1326 CleanupStack::Pop( 2 ); |
|
1327 if( aImage ) |
|
1328 { |
|
1329 delete aImage; |
|
1330 aImage = NULL; |
|
1331 } |
|
1332 |
|
1333 return KErrNone; |
|
1334 |
|
1335 } |
|
1336 // ----------------------------------------------------------------------------- |
|
1337 // CTestUiAifCoreToolkit::TestTHuiImageCommandImageL |
|
1338 // ----------------------------------------------------------------------------- |
|
1339 // |
|
1340 TInt CTestUiAifCoreToolkit::TestTHuiImageCommandImageL( CStifItemParser& /*aItem*/ ) |
|
1341 { |
|
1342 |
|
1343 // Print to UI |
|
1344 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1345 _LIT( KTestTHuiImageCommandImageL, "In TestTHuiImageCommandImageL" ); |
|
1346 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiImageCommandImageL ); |
|
1347 // Print to log file |
|
1348 iLog->Log( KTestTHuiImageCommandImageL ); |
|
1349 |
|
1350 CHuiImageVisual* aImageVisual = CHuiImageVisual::AddNewL( *iHuiControl ); |
|
1351 STIF_ASSERT_NOT_NULL( aImageVisual ); |
|
1352 CleanupStack::PushL( aImageVisual ); |
|
1353 const THuiImage* aImage = new ( ELeave )THuiImage; |
|
1354 THuiImageCommand* imageCommand = |
|
1355 new ( ELeave ) THuiImageCommand( *aImageVisual, *aImage ); |
|
1356 STIF_ASSERT_NOT_NULL( imageCommand ); |
|
1357 CleanupStack::PushL( imageCommand ); |
|
1358 imageCommand->ExecuteL( *iHuiEnv ); |
|
1359 imageCommand->Size(); |
|
1360 imageCommand->ImageVisual(); |
|
1361 imageCommand->Image(); |
|
1362 CleanupStack::Pop(2 ); |
|
1363 if( aImage ) |
|
1364 { |
|
1365 delete aImage; |
|
1366 aImage = NULL; |
|
1367 } |
|
1368 |
|
1369 return KErrNone; |
|
1370 |
|
1371 } |
|
1372 // ----------------------------------------------------------------------------- |
|
1373 // CTestUiAifCoreToolkit::TestTHuiImageCommandExtensionL |
|
1374 // ----------------------------------------------------------------------------- |
|
1375 // |
|
1376 TInt CTestUiAifCoreToolkit::TestTHuiImageCommandExtensionL( CStifItemParser& /*aItem*/ ) |
|
1377 { |
|
1378 |
|
1379 // Print to UI |
|
1380 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1381 _LIT( KTestTHuiImageCommandExtensionL, "In TestTHuiImageCommandExtensionL" ); |
|
1382 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiImageCommandExtensionL ); |
|
1383 // Print to log file |
|
1384 iLog->Log( KTestTHuiImageCommandExtensionL ); |
|
1385 |
|
1386 CHuiImageVisual* aImageVisual = CHuiImageVisual::AddNewL( *iHuiControl ); |
|
1387 STIF_ASSERT_NOT_NULL( aImageVisual ); |
|
1388 CleanupStack::PushL( aImageVisual ); |
|
1389 const THuiImage* aImage = new ( ELeave )THuiImage; |
|
1390 TTestUiAifBlocksHuiImageCommandChild* imageCommandChild = |
|
1391 new ( ELeave ) TTestUiAifBlocksHuiImageCommandChild( *aImageVisual, *aImage ); |
|
1392 STIF_ASSERT_NOT_NULL( imageCommandChild ); |
|
1393 CleanupStack::PushL( imageCommandChild ); |
|
1394 const TUid aExtensionUid = TUid::Null(); |
|
1395 TAny** aExtensionParams = NULL; |
|
1396 imageCommandChild->SetCommandExtension( aExtensionUid, aExtensionParams ); |
|
1397 CleanupStack::Pop(2 ); |
|
1398 if( aImage ) |
|
1399 { |
|
1400 delete aImage; |
|
1401 aImage = NULL; |
|
1402 } |
|
1403 |
|
1404 return KErrNone; |
|
1405 |
|
1406 } |
|
1407 // ----------------------------------------------------------------------------- |
|
1408 // CTestUiAifCoreToolkit::TestTHuiTextCommandL |
|
1409 // ----------------------------------------------------------------------------- |
|
1410 // |
|
1411 TInt CTestUiAifCoreToolkit::TestTHuiTextCommandL( CStifItemParser& /*aItem*/ ) |
|
1412 { |
|
1413 |
|
1414 // Print to UI |
|
1415 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1416 _LIT( KTestTHuiTextCommandL, "In TestTHuiTextCommandL" ); |
|
1417 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTextCommandL ); |
|
1418 // Print to log file |
|
1419 iLog->Log( KTestTHuiTextCommandL ); |
|
1420 |
|
1421 CHuiTextVisual* aTextVisual = CHuiTextVisual::AddNewL( *iHuiControl ); |
|
1422 STIF_ASSERT_NOT_NULL( aTextVisual ); |
|
1423 CleanupStack::PushL( aTextVisual ); |
|
1424 _LIT( KHello, "Hello" ); |
|
1425 const TDesC& aText = KHello; |
|
1426 THuiTextCommand* textCommand = |
|
1427 new ( ELeave ) THuiTextCommand( *aTextVisual, aText ); |
|
1428 STIF_ASSERT_NOT_NULL( textCommand ); |
|
1429 CleanupStack::PushL( textCommand ); |
|
1430 CleanupStack::Pop(2 ); |
|
1431 |
|
1432 return KErrNone; |
|
1433 |
|
1434 } |
|
1435 // ----------------------------------------------------------------------------- |
|
1436 // CTestUiAifCoreToolkit::TestTHuiTextCommandExecuteL |
|
1437 // ----------------------------------------------------------------------------- |
|
1438 // |
|
1439 TInt CTestUiAifCoreToolkit::TestTHuiTextCommandExecuteL( CStifItemParser& /*aItem*/ ) |
|
1440 { |
|
1441 |
|
1442 // Print to UI |
|
1443 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1444 _LIT( KTestTHuiTextCommandExecuteL, "In TestTHuiTextCommandExecuteL" ); |
|
1445 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTextCommandExecuteL ); |
|
1446 // Print to log file |
|
1447 iLog->Log( KTestTHuiTextCommandExecuteL ); |
|
1448 |
|
1449 CHuiTextVisual* aTextVisual = CHuiTextVisual::AddNewL( *iHuiControl ); |
|
1450 STIF_ASSERT_NOT_NULL( aTextVisual ); |
|
1451 CleanupStack::PushL( aTextVisual ); |
|
1452 _LIT( KHello, "Hello" ); |
|
1453 const TDesC& aText = KHello; |
|
1454 THuiTextCommand* textCommand = |
|
1455 new ( ELeave ) THuiTextCommand( *aTextVisual, aText ); |
|
1456 STIF_ASSERT_NOT_NULL( textCommand ); |
|
1457 CleanupStack::PushL( textCommand ); |
|
1458 textCommand->ExecuteL( *iHuiEnv ); |
|
1459 CleanupStack::Pop(2 ); |
|
1460 |
|
1461 return KErrNone; |
|
1462 |
|
1463 } |
|
1464 // ----------------------------------------------------------------------------- |
|
1465 // CTestUiAifCoreToolkit::TestTHuiTextCommandSizeL |
|
1466 // ----------------------------------------------------------------------------- |
|
1467 // |
|
1468 TInt CTestUiAifCoreToolkit::TestTHuiTextCommandSizeL( CStifItemParser& /*aItem*/ ) |
|
1469 { |
|
1470 |
|
1471 // Print to UI |
|
1472 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1473 _LIT( KTestTHuiTextCommandSizeL, "In TestTHuiTextCommandSizeL" ); |
|
1474 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTextCommandSizeL ); |
|
1475 // Print to log file |
|
1476 iLog->Log( KTestTHuiTextCommandSizeL ); |
|
1477 |
|
1478 CHuiTextVisual* aTextVisual = CHuiTextVisual::AddNewL( *iHuiControl ); |
|
1479 STIF_ASSERT_NOT_NULL( aTextVisual ); |
|
1480 CleanupStack::PushL( aTextVisual ); |
|
1481 _LIT( KHello, "Hello" ); |
|
1482 const TDesC& aText = KHello; |
|
1483 THuiTextCommand* textCommand = |
|
1484 new ( ELeave ) THuiTextCommand( *aTextVisual, aText ); |
|
1485 STIF_ASSERT_NOT_NULL( textCommand ); |
|
1486 CleanupStack::PushL( textCommand ); |
|
1487 textCommand->ExecuteL( *iHuiEnv ); |
|
1488 textCommand->Size(); |
|
1489 CleanupStack::Pop(2 ); |
|
1490 |
|
1491 return KErrNone; |
|
1492 |
|
1493 } |
|
1494 // ----------------------------------------------------------------------------- |
|
1495 // CTestUiAifCoreToolkit::TestTHuiTextCommandTextVisualL |
|
1496 // ----------------------------------------------------------------------------- |
|
1497 // |
|
1498 TInt CTestUiAifCoreToolkit::TestTHuiTextCommandTextVisualL( CStifItemParser& /*aItem*/ ) |
|
1499 { |
|
1500 |
|
1501 // Print to UI |
|
1502 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1503 _LIT( KTestTHuiTextCommandTextVisualL, "In TestTHuiTextCommandTextVisualL" ); |
|
1504 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTextCommandTextVisualL ); |
|
1505 // Print to log file |
|
1506 iLog->Log( KTestTHuiTextCommandTextVisualL ); |
|
1507 |
|
1508 CHuiTextVisual* aTextVisual = CHuiTextVisual::AddNewL( *iHuiControl ); |
|
1509 STIF_ASSERT_NOT_NULL( aTextVisual ); |
|
1510 CleanupStack::PushL( aTextVisual ); |
|
1511 _LIT( KHello, "Hello" ); |
|
1512 const TDesC& aText = KHello; |
|
1513 THuiTextCommand* textCommand = |
|
1514 new ( ELeave ) THuiTextCommand( *aTextVisual, aText ); |
|
1515 STIF_ASSERT_NOT_NULL( textCommand ); |
|
1516 CleanupStack::PushL( textCommand ); |
|
1517 textCommand->ExecuteL( *iHuiEnv ); |
|
1518 textCommand->Size(); |
|
1519 textCommand->TextVisual(); |
|
1520 CleanupStack::Pop(2 ); |
|
1521 |
|
1522 return KErrNone; |
|
1523 |
|
1524 } |
|
1525 // ----------------------------------------------------------------------------- |
|
1526 // CTestUiAifCoreToolkit::TestTHuiTextCommandTextL |
|
1527 // ----------------------------------------------------------------------------- |
|
1528 // |
|
1529 TInt CTestUiAifCoreToolkit::TestTHuiTextCommandTextL( CStifItemParser& /*aItem*/ ) |
|
1530 { |
|
1531 |
|
1532 // Print to UI |
|
1533 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1534 _LIT( KTestTHuiTextCommandTextL, "In TestTHuiTextCommandTextL" ); |
|
1535 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTextCommandTextL ); |
|
1536 // Print to log file |
|
1537 iLog->Log( KTestTHuiTextCommandTextL ); |
|
1538 |
|
1539 CHuiTextVisual* aTextVisual = CHuiTextVisual::AddNewL( *iHuiControl ); |
|
1540 STIF_ASSERT_NOT_NULL( aTextVisual ); |
|
1541 CleanupStack::PushL( aTextVisual ); |
|
1542 _LIT( KHello, "Hello" ); |
|
1543 const TDesC& aText = KHello; |
|
1544 THuiTextCommand* textCommand = |
|
1545 new ( ELeave ) THuiTextCommand( *aTextVisual, aText ); |
|
1546 STIF_ASSERT_NOT_NULL( textCommand ); |
|
1547 CleanupStack::PushL( textCommand ); |
|
1548 textCommand->ExecuteL( *iHuiEnv ); |
|
1549 textCommand->Size(); |
|
1550 textCommand->TextVisual(); |
|
1551 textCommand->Text(); |
|
1552 CleanupStack::Pop(2 ); |
|
1553 |
|
1554 return KErrNone; |
|
1555 |
|
1556 } |
|
1557 // ----------------------------------------------------------------------------- |
|
1558 // CTestUiAifCoreToolkit::TestTHuiTextCommandExtensionL |
|
1559 // ----------------------------------------------------------------------------- |
|
1560 // |
|
1561 TInt CTestUiAifCoreToolkit::TestTHuiTextCommandExtensionL( CStifItemParser& /*aItem*/ ) |
|
1562 { |
|
1563 |
|
1564 // Print to UI |
|
1565 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1566 _LIT( KTestTHuiTextCommandExtensionL, "In TestTHuiTextCommandExtensionL" ); |
|
1567 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTextCommandExtensionL ); |
|
1568 // Print to log file |
|
1569 iLog->Log( KTestTHuiTextCommandExtensionL ); |
|
1570 |
|
1571 CHuiTextVisual* aTextVisual = CHuiTextVisual::AddNewL( *iHuiControl ); |
|
1572 STIF_ASSERT_NOT_NULL( aTextVisual ); |
|
1573 CleanupStack::PushL( aTextVisual ); |
|
1574 _LIT( KHello, "Hello" ); |
|
1575 const TDesC& aText = KHello; |
|
1576 TTestUiAifBlocksHuiTextCommandChild* textCommandChild = |
|
1577 new ( ELeave ) TTestUiAifBlocksHuiTextCommandChild( *aTextVisual, aText ); |
|
1578 STIF_ASSERT_NOT_NULL( textCommandChild ); |
|
1579 CleanupStack::PushL( textCommandChild ); |
|
1580 const TUid aExtensionUid = TUid::Null(); |
|
1581 TAny** aExtensionParams = NULL; |
|
1582 textCommandChild->SetCommandExtension( aExtensionUid, aExtensionParams ); |
|
1583 CleanupStack::Pop(2 ); |
|
1584 |
|
1585 return KErrNone; |
|
1586 |
|
1587 } |
|
1588 // ----------------------------------------------------------------------------- |
|
1589 // CTestUiAifCoreToolkit::TestTHuiValueCommandL |
|
1590 // ----------------------------------------------------------------------------- |
|
1591 // |
|
1592 TInt CTestUiAifCoreToolkit::TestTHuiValueCommandL( CStifItemParser& /*aItem*/ ) |
|
1593 { |
|
1594 |
|
1595 // Print to UI |
|
1596 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1597 _LIT( KTestTHuiValueCommandL, "In TestTHuiValueCommandL" ); |
|
1598 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiValueCommandL ); |
|
1599 // Print to log file |
|
1600 iLog->Log( KTestTHuiValueCommandL ); |
|
1601 |
|
1602 THuiTimedValue* aValue = new ( ELeave ) THuiTimedValue; |
|
1603 TReal32 aTarget = 1; |
|
1604 THuiValueCommand* valueCommand = |
|
1605 new ( ELeave ) THuiValueCommand( iHuiControl, *aValue, aTarget ); |
|
1606 STIF_ASSERT_NOT_NULL( valueCommand ); |
|
1607 CleanupStack::PushL( valueCommand ); |
|
1608 CleanupStack::Pop( 1 ); |
|
1609 if( aValue ) |
|
1610 { |
|
1611 delete aValue; |
|
1612 aValue = NULL; |
|
1613 } |
|
1614 return KErrNone; |
|
1615 |
|
1616 } |
|
1617 // ----------------------------------------------------------------------------- |
|
1618 // CTestUiAifCoreToolkit::TestTHuiValueCommandMutiRefL |
|
1619 // ----------------------------------------------------------------------------- |
|
1620 // |
|
1621 TInt CTestUiAifCoreToolkit::TestTHuiValueCommandMutiRefL( CStifItemParser& /*aItem*/ ) |
|
1622 { |
|
1623 |
|
1624 // Print to UI |
|
1625 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1626 _LIT( KTestTHuiValueCommandMutiRefL, "In TestTHuiValueCommandMutiRefL" ); |
|
1627 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiValueCommandMutiRefL ); |
|
1628 // Print to log file |
|
1629 iLog->Log( KTestTHuiValueCommandMutiRefL ); |
|
1630 |
|
1631 THuiTimedValue* aValue = new ( ELeave ) THuiTimedValue; |
|
1632 THuiValueCommand* valueCommand = |
|
1633 new ( ELeave ) THuiValueCommand( iHuiControl, *aValue ); |
|
1634 STIF_ASSERT_NOT_NULL( valueCommand ); |
|
1635 CleanupStack::PushL( valueCommand ); |
|
1636 CleanupStack::Pop( 1 ); |
|
1637 if( aValue ) |
|
1638 { |
|
1639 delete aValue; |
|
1640 aValue = NULL; |
|
1641 } |
|
1642 return KErrNone; |
|
1643 |
|
1644 } |
|
1645 // ----------------------------------------------------------------------------- |
|
1646 // CTestUiAifCoreToolkit::TestTHuiValueCommandExecuteL |
|
1647 // ----------------------------------------------------------------------------- |
|
1648 // |
|
1649 TInt CTestUiAifCoreToolkit::TestTHuiValueCommandExecuteL( CStifItemParser& /*aItem*/ ) |
|
1650 { |
|
1651 |
|
1652 // Print to UI |
|
1653 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1654 _LIT( KTestTHuiValueCommandExecuteL, "In TestTHuiValueCommandExecuteL" ); |
|
1655 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiValueCommandExecuteL ); |
|
1656 // Print to log file |
|
1657 iLog->Log( KTestTHuiValueCommandExecuteL ); |
|
1658 |
|
1659 THuiTimedValue* aValue = new ( ELeave ) THuiTimedValue; |
|
1660 THuiValueCommand* valueCommand = |
|
1661 new ( ELeave ) THuiValueCommand( iHuiControl, *aValue ); |
|
1662 STIF_ASSERT_NOT_NULL( valueCommand ); |
|
1663 CleanupStack::PushL( valueCommand ); |
|
1664 valueCommand->ExecuteL( *iHuiEnv ); |
|
1665 CleanupStack::Pop( 1 ); |
|
1666 if( aValue ) |
|
1667 { |
|
1668 delete aValue; |
|
1669 aValue = NULL; |
|
1670 } |
|
1671 return KErrNone; |
|
1672 |
|
1673 } |
|
1674 // ----------------------------------------------------------------------------- |
|
1675 // CTestUiAifCoreToolkit::TestTHuiValueCommandSizeL |
|
1676 // ----------------------------------------------------------------------------- |
|
1677 // |
|
1678 TInt CTestUiAifCoreToolkit::TestTHuiValueCommandSizeL( CStifItemParser& /*aItem*/ ) |
|
1679 { |
|
1680 |
|
1681 // Print to UI |
|
1682 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1683 _LIT( KTestTHuiValueCommandSizeL, "In TestTHuiValueCommandSizeL" ); |
|
1684 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiValueCommandSizeL ); |
|
1685 // Print to log file |
|
1686 iLog->Log( KTestTHuiValueCommandSizeL ); |
|
1687 |
|
1688 THuiTimedValue* aValue = new ( ELeave ) THuiTimedValue; |
|
1689 THuiValueCommand* valueCommand = |
|
1690 new ( ELeave ) THuiValueCommand( iHuiControl, *aValue ); |
|
1691 STIF_ASSERT_NOT_NULL( valueCommand ); |
|
1692 CleanupStack::PushL( valueCommand ); |
|
1693 valueCommand->ExecuteL( *iHuiEnv ); |
|
1694 valueCommand->Size(); |
|
1695 CleanupStack::Pop( 1 ); |
|
1696 if( aValue ) |
|
1697 { |
|
1698 delete aValue; |
|
1699 aValue = NULL; |
|
1700 } |
|
1701 return KErrNone; |
|
1702 |
|
1703 } |
|
1704 // ----------------------------------------------------------------------------- |
|
1705 // CTestUiAifCoreToolkit::TestTHuiValueCommandTimedValueL |
|
1706 // ----------------------------------------------------------------------------- |
|
1707 // |
|
1708 TInt CTestUiAifCoreToolkit::TestTHuiValueCommandTimedValueL( CStifItemParser& /*aItem*/ ) |
|
1709 { |
|
1710 |
|
1711 // Print to UI |
|
1712 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1713 _LIT( KTestTHuiValueCommandTimedValueL, "In TestTHuiValueCommandTimedValueL" ); |
|
1714 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiValueCommandTimedValueL ); |
|
1715 // Print to log file |
|
1716 iLog->Log( KTestTHuiValueCommandTimedValueL ); |
|
1717 |
|
1718 THuiTimedValue* aValue = new ( ELeave ) THuiTimedValue; |
|
1719 THuiValueCommand* valueCommand = |
|
1720 new ( ELeave ) THuiValueCommand( iHuiControl, *aValue ); |
|
1721 STIF_ASSERT_NOT_NULL( valueCommand ); |
|
1722 CleanupStack::PushL( valueCommand ); |
|
1723 valueCommand->ExecuteL( *iHuiEnv ); |
|
1724 valueCommand->Size(); |
|
1725 valueCommand->TimedValue(); |
|
1726 CleanupStack::Pop( 1 ); |
|
1727 if( aValue ) |
|
1728 { |
|
1729 delete aValue; |
|
1730 aValue = NULL; |
|
1731 } |
|
1732 return KErrNone; |
|
1733 |
|
1734 } |
|
1735 // ----------------------------------------------------------------------------- |
|
1736 // CTestUiAifCoreToolkit::TestTHuiValueCommandTargetL |
|
1737 // ----------------------------------------------------------------------------- |
|
1738 // |
|
1739 TInt CTestUiAifCoreToolkit::TestTHuiValueCommandTargetL( CStifItemParser& /*aItem*/ ) |
|
1740 { |
|
1741 |
|
1742 // Print to UI |
|
1743 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1744 _LIT( KTestTHuiValueCommandTargetL, "In TestTHuiValueCommandTargetL" ); |
|
1745 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiValueCommandTargetL ); |
|
1746 // Print to log file |
|
1747 iLog->Log( KTestTHuiValueCommandTargetL ); |
|
1748 |
|
1749 THuiTimedValue* aValue = new ( ELeave ) THuiTimedValue; |
|
1750 THuiValueCommand* valueCommand = |
|
1751 new ( ELeave ) THuiValueCommand( iHuiControl, *aValue ); |
|
1752 STIF_ASSERT_NOT_NULL( valueCommand ); |
|
1753 CleanupStack::PushL( valueCommand ); |
|
1754 valueCommand->ExecuteL( *iHuiEnv ); |
|
1755 valueCommand->Size(); |
|
1756 valueCommand->TimedValue(); |
|
1757 valueCommand->Target(); |
|
1758 CleanupStack::Pop( 1 ); |
|
1759 if( aValue ) |
|
1760 { |
|
1761 delete aValue; |
|
1762 aValue = NULL; |
|
1763 } |
|
1764 return KErrNone; |
|
1765 |
|
1766 } |
|
1767 // ----------------------------------------------------------------------------- |
|
1768 // CTestUiAifCoreToolkit::TestTHuiValueCommandTransitionTimeL |
|
1769 // ----------------------------------------------------------------------------- |
|
1770 // |
|
1771 TInt CTestUiAifCoreToolkit::TestTHuiValueCommandTransitionTimeL( CStifItemParser& /*aItem*/ ) |
|
1772 { |
|
1773 |
|
1774 // Print to UI |
|
1775 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1776 _LIT( KTestTHuiValueCommandTransitionTimeL, "In TestTHuiValueCommandTransitionTimeL" ); |
|
1777 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiValueCommandTransitionTimeL ); |
|
1778 // Print to log file |
|
1779 iLog->Log( KTestTHuiValueCommandTransitionTimeL ); |
|
1780 |
|
1781 THuiTimedValue* aValue = new ( ELeave ) THuiTimedValue; |
|
1782 THuiValueCommand* valueCommand = |
|
1783 new ( ELeave ) THuiValueCommand( iHuiControl, *aValue ); |
|
1784 STIF_ASSERT_NOT_NULL( valueCommand ); |
|
1785 CleanupStack::PushL( valueCommand ); |
|
1786 valueCommand->ExecuteL( *iHuiEnv ); |
|
1787 valueCommand->Size(); |
|
1788 valueCommand->TimedValue(); |
|
1789 valueCommand->Target(); |
|
1790 valueCommand->TransitionTime(); |
|
1791 CleanupStack::Pop( 1 ); |
|
1792 if( aValue ) |
|
1793 { |
|
1794 delete aValue; |
|
1795 aValue = NULL; |
|
1796 } |
|
1797 |
|
1798 return KErrNone; |
|
1799 |
|
1800 } |
|
1801 // ----------------------------------------------------------------------------- |
|
1802 // CTestUiAifCoreToolkit::TestTHuiValueCommandSpeedL |
|
1803 // ----------------------------------------------------------------------------- |
|
1804 // |
|
1805 TInt CTestUiAifCoreToolkit::TestTHuiValueCommandSpeedL( CStifItemParser& /*aItem*/ ) |
|
1806 { |
|
1807 |
|
1808 // Print to UI |
|
1809 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1810 _LIT( KTestTHuiValueCommandSpeedL, "In TestTHuiValueCommandSpeedL" ); |
|
1811 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiValueCommandSpeedL ); |
|
1812 // Print to log file |
|
1813 iLog->Log( KTestTHuiValueCommandSpeedL ); |
|
1814 |
|
1815 THuiTimedValue* aValue = new ( ELeave ) THuiTimedValue; |
|
1816 THuiValueCommand* valueCommand = |
|
1817 new ( ELeave ) THuiValueCommand( iHuiControl, *aValue ); |
|
1818 STIF_ASSERT_NOT_NULL( valueCommand ); |
|
1819 CleanupStack::PushL( valueCommand ); |
|
1820 valueCommand->ExecuteL( *iHuiEnv ); |
|
1821 valueCommand->Size(); |
|
1822 valueCommand->TimedValue(); |
|
1823 valueCommand->Target(); |
|
1824 valueCommand->TransitionTime(); |
|
1825 valueCommand->Speed(); |
|
1826 CleanupStack::Pop( 1 ); |
|
1827 if( aValue ) |
|
1828 { |
|
1829 delete aValue; |
|
1830 aValue = NULL; |
|
1831 } |
|
1832 |
|
1833 return KErrNone; |
|
1834 |
|
1835 } |
|
1836 // ----------------------------------------------------------------------------- |
|
1837 // CTestUiAifCoreToolkit::TestTHuiValueCommandExtensionL |
|
1838 // ----------------------------------------------------------------------------- |
|
1839 // |
|
1840 TInt CTestUiAifCoreToolkit::TestTHuiValueCommandExtensionL( CStifItemParser& /*aItem*/ ) |
|
1841 { |
|
1842 |
|
1843 // Print to UI |
|
1844 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1845 _LIT( KTestTHuiValueCommandExtensionL, "In TestTHuiValueCommandExtensionL" ); |
|
1846 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiValueCommandExtensionL ); |
|
1847 // Print to log file |
|
1848 iLog->Log( KTestTHuiValueCommandExtensionL ); |
|
1849 |
|
1850 THuiTimedValue* aValue = new ( ELeave ) THuiTimedValue; |
|
1851 TTestUiAifBlocksHuiValueCommandChild* valueCommandChild = |
|
1852 new ( ELeave ) TTestUiAifBlocksHuiValueCommandChild( iHuiControl, *aValue ); |
|
1853 STIF_ASSERT_NOT_NULL( valueCommandChild ); |
|
1854 CleanupStack::PushL( valueCommandChild ); |
|
1855 const TUid aExtensionUid = TUid::Null(); |
|
1856 TAny** aExtensionParams = NULL; |
|
1857 valueCommandChild->SetCommandExtension( aExtensionUid, aExtensionParams ); |
|
1858 CleanupStack::Pop( 1 ); |
|
1859 if( aValue ) |
|
1860 { |
|
1861 delete aValue; |
|
1862 aValue = NULL; |
|
1863 } |
|
1864 |
|
1865 return KErrNone; |
|
1866 |
|
1867 } |
|
1868 // ----------------------------------------------------------------------------- |
|
1869 // CTestUiAifCoreToolkit::TestTHuiPointCommandL |
|
1870 // ----------------------------------------------------------------------------- |
|
1871 // |
|
1872 TInt CTestUiAifCoreToolkit::TestTHuiPointCommandL( CStifItemParser& /*aItem*/ ) |
|
1873 { |
|
1874 |
|
1875 // Print to UI |
|
1876 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1877 _LIT( KTestTHuiPointCommandL, "In TestTHuiPointCommandL" ); |
|
1878 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiPointCommandL ); |
|
1879 // Print to log file |
|
1880 iLog->Log( KTestTHuiPointCommandL ); |
|
1881 |
|
1882 THuiTimedPoint* aPoint = new ( ELeave ) THuiTimedPoint; |
|
1883 THuiPointCommand* pointCommand = |
|
1884 new ( ELeave ) THuiPointCommand( iHuiControl, *aPoint, EHuiOpSetWithSpeed ); |
|
1885 STIF_ASSERT_NOT_NULL( pointCommand ); |
|
1886 CleanupStack::PushL( pointCommand ); |
|
1887 CleanupStack::Pop( 1 ); |
|
1888 if( aPoint ) |
|
1889 { |
|
1890 delete aPoint; |
|
1891 aPoint = NULL; |
|
1892 } |
|
1893 |
|
1894 return KErrNone; |
|
1895 |
|
1896 } |
|
1897 // ----------------------------------------------------------------------------- |
|
1898 // CTestUiAifCoreToolkit::TestTHuiPointCommandMutiRefL |
|
1899 // ----------------------------------------------------------------------------- |
|
1900 // |
|
1901 TInt CTestUiAifCoreToolkit::TestTHuiPointCommandMutiRefL( CStifItemParser& /*aItem*/ ) |
|
1902 { |
|
1903 |
|
1904 // Print to UI |
|
1905 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1906 _LIT( KTestTHuiPointCommandMutiRefL, "In TestTHuiPointCommandMutiRefL" ); |
|
1907 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiPointCommandMutiRefL ); |
|
1908 // Print to log file |
|
1909 iLog->Log( KTestTHuiPointCommandMutiRefL ); |
|
1910 |
|
1911 THuiTimedPoint* aPoint = new ( ELeave ) THuiTimedPoint; |
|
1912 THuiRealPoint aTarget; |
|
1913 THuiPointCommand* pointCommand = |
|
1914 new ( ELeave ) THuiPointCommand( iHuiControl, *aPoint, aTarget ); |
|
1915 STIF_ASSERT_NOT_NULL( pointCommand ); |
|
1916 CleanupStack::PushL( pointCommand ); |
|
1917 CleanupStack::Pop( 1 ); |
|
1918 if( aPoint ) |
|
1919 { |
|
1920 delete aPoint; |
|
1921 aPoint = NULL; |
|
1922 } |
|
1923 |
|
1924 return KErrNone; |
|
1925 |
|
1926 } |
|
1927 // ----------------------------------------------------------------------------- |
|
1928 // CTestUiAifCoreToolkit::TestTHuiPointCommandMutiRefOtherL |
|
1929 // ----------------------------------------------------------------------------- |
|
1930 // |
|
1931 TInt CTestUiAifCoreToolkit::TestTHuiPointCommandMutiRefOtherL( CStifItemParser& /*aItem*/ ) |
|
1932 { |
|
1933 |
|
1934 // Print to UI |
|
1935 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1936 _LIT( KTestTHuiPointCommandMutiRefOtherL, "In TestTHuiPointCommandMutiRefOtherL" ); |
|
1937 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiPointCommandMutiRefOtherL ); |
|
1938 // Print to log file |
|
1939 iLog->Log( KTestTHuiPointCommandMutiRefOtherL ); |
|
1940 |
|
1941 THuiTimedPoint* aPoint = new ( ELeave ) THuiTimedPoint; |
|
1942 THuiRealPoint aTarget; |
|
1943 THuiPointCommand* pointCommand = |
|
1944 new ( ELeave ) THuiPointCommand( iHuiControl, *aPoint, EHuiOpSetWithSpeed, aTarget ); |
|
1945 STIF_ASSERT_NOT_NULL( pointCommand ); |
|
1946 CleanupStack::PushL( pointCommand ); |
|
1947 CleanupStack::Pop( 1 ); |
|
1948 if( aPoint ) |
|
1949 { |
|
1950 delete aPoint; |
|
1951 aPoint = NULL; |
|
1952 } |
|
1953 |
|
1954 return KErrNone; |
|
1955 |
|
1956 } |
|
1957 // ----------------------------------------------------------------------------- |
|
1958 // CTestUiAifCoreToolkit::TestTHuiPointCommandExecuteL |
|
1959 // ----------------------------------------------------------------------------- |
|
1960 // |
|
1961 TInt CTestUiAifCoreToolkit::TestTHuiPointCommandExecuteL( CStifItemParser& /*aItem*/ ) |
|
1962 { |
|
1963 |
|
1964 // Print to UI |
|
1965 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1966 _LIT( KTestTHuiPointCommandExecuteL, "In TestTHuiPointCommandExecuteL" ); |
|
1967 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiPointCommandExecuteL ); |
|
1968 // Print to log file |
|
1969 iLog->Log( KTestTHuiPointCommandExecuteL ); |
|
1970 |
|
1971 THuiTimedPoint* aPoint = new ( ELeave ) THuiTimedPoint; |
|
1972 THuiRealPoint aTarget; |
|
1973 THuiPointCommand* pointCommand = |
|
1974 new ( ELeave ) THuiPointCommand( iHuiControl, *aPoint, EHuiOpSetWithSpeed, aTarget ); |
|
1975 STIF_ASSERT_NOT_NULL( pointCommand ); |
|
1976 CleanupStack::PushL( pointCommand ); |
|
1977 pointCommand->ExecuteL( *iHuiEnv ); |
|
1978 CleanupStack::Pop( 1 ); |
|
1979 if( aPoint ) |
|
1980 { |
|
1981 delete aPoint; |
|
1982 aPoint = NULL; |
|
1983 } |
|
1984 |
|
1985 return KErrNone; |
|
1986 |
|
1987 } |
|
1988 // ----------------------------------------------------------------------------- |
|
1989 // CTestUiAifCoreToolkit::TestTHuiPointCommandSizeL |
|
1990 // ----------------------------------------------------------------------------- |
|
1991 // |
|
1992 TInt CTestUiAifCoreToolkit::TestTHuiPointCommandSizeL( CStifItemParser& /*aItem*/ ) |
|
1993 { |
|
1994 |
|
1995 // Print to UI |
|
1996 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
1997 _LIT( KTestTHuiPointCommandSizeL, "In TestTHuiPointCommandSizeL" ); |
|
1998 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiPointCommandSizeL ); |
|
1999 // Print to log file |
|
2000 iLog->Log( KTestTHuiPointCommandSizeL ); |
|
2001 |
|
2002 THuiTimedPoint* aPoint = new ( ELeave ) THuiTimedPoint; |
|
2003 THuiRealPoint aTarget; |
|
2004 THuiPointCommand* pointCommand = |
|
2005 new ( ELeave ) THuiPointCommand( iHuiControl, *aPoint, EHuiOpSetWithSpeed, aTarget ); |
|
2006 STIF_ASSERT_NOT_NULL( pointCommand ); |
|
2007 CleanupStack::PushL( pointCommand ); |
|
2008 pointCommand->Size(); |
|
2009 CleanupStack::Pop( 1 ); |
|
2010 if( aPoint ) |
|
2011 { |
|
2012 delete aPoint; |
|
2013 aPoint = NULL; |
|
2014 } |
|
2015 |
|
2016 return KErrNone; |
|
2017 |
|
2018 } |
|
2019 // ----------------------------------------------------------------------------- |
|
2020 // CTestUiAifCoreToolkit::TestTHuiPointCommandTimedPointL |
|
2021 // ----------------------------------------------------------------------------- |
|
2022 // |
|
2023 TInt CTestUiAifCoreToolkit::TestTHuiPointCommandTimedPointL( CStifItemParser& /*aItem*/ ) |
|
2024 { |
|
2025 |
|
2026 // Print to UI |
|
2027 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2028 _LIT( KTestTHuiPointCommandTimedPointL, "In TestTHuiPointCommandTimedPointL" ); |
|
2029 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiPointCommandTimedPointL ); |
|
2030 // Print to log file |
|
2031 iLog->Log( KTestTHuiPointCommandTimedPointL ); |
|
2032 |
|
2033 THuiTimedPoint* aPoint = new ( ELeave ) THuiTimedPoint; |
|
2034 THuiRealPoint aTarget; |
|
2035 THuiPointCommand* pointCommand = |
|
2036 new ( ELeave ) THuiPointCommand( iHuiControl, *aPoint, EHuiOpSetWithSpeed, aTarget ); |
|
2037 STIF_ASSERT_NOT_NULL( pointCommand ); |
|
2038 CleanupStack::PushL( pointCommand ); |
|
2039 pointCommand->TimedPoint(); |
|
2040 CleanupStack::Pop( 1 ); |
|
2041 if( aPoint ) |
|
2042 { |
|
2043 delete aPoint; |
|
2044 aPoint = NULL; |
|
2045 } |
|
2046 |
|
2047 return KErrNone; |
|
2048 |
|
2049 } |
|
2050 // ----------------------------------------------------------------------------- |
|
2051 // CTestUiAifCoreToolkit::TestTHuiPointCommandTargetL |
|
2052 // ----------------------------------------------------------------------------- |
|
2053 // |
|
2054 TInt CTestUiAifCoreToolkit::TestTHuiPointCommandTargetL( CStifItemParser& /*aItem*/ ) |
|
2055 { |
|
2056 |
|
2057 // Print to UI |
|
2058 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2059 _LIT( KTestTHuiPointCommandTargetL, "In TestTHuiPointCommandTargetL" ); |
|
2060 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiPointCommandTargetL ); |
|
2061 // Print to log file |
|
2062 iLog->Log( KTestTHuiPointCommandTargetL ); |
|
2063 |
|
2064 THuiTimedPoint* aPoint = new ( ELeave ) THuiTimedPoint; |
|
2065 THuiRealPoint aTarget; |
|
2066 THuiPointCommand* pointCommand = |
|
2067 new ( ELeave ) THuiPointCommand( iHuiControl, *aPoint, EHuiOpSetWithSpeed, aTarget ); |
|
2068 STIF_ASSERT_NOT_NULL( pointCommand ); |
|
2069 CleanupStack::PushL( pointCommand ); |
|
2070 pointCommand->Target(); |
|
2071 CleanupStack::Pop( 1 ); |
|
2072 if( aPoint ) |
|
2073 { |
|
2074 delete aPoint; |
|
2075 aPoint = NULL; |
|
2076 } |
|
2077 |
|
2078 return KErrNone; |
|
2079 |
|
2080 } |
|
2081 // ----------------------------------------------------------------------------- |
|
2082 // CTestUiAifCoreToolkit::TestTHuiPointCommandTransitionTimeL |
|
2083 // ----------------------------------------------------------------------------- |
|
2084 // |
|
2085 TInt CTestUiAifCoreToolkit::TestTHuiPointCommandTransitionTimeL( CStifItemParser& /*aItem*/ ) |
|
2086 { |
|
2087 |
|
2088 // Print to UI |
|
2089 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2090 _LIT( KTestTHuiPointCommandTransitionTimeL, "In TestTHuiPointCommandTransitionTimeL" ); |
|
2091 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiPointCommandTransitionTimeL ); |
|
2092 // Print to log file |
|
2093 iLog->Log( KTestTHuiPointCommandTransitionTimeL ); |
|
2094 |
|
2095 THuiTimedPoint* aPoint = new ( ELeave ) THuiTimedPoint; |
|
2096 THuiRealPoint aTarget; |
|
2097 THuiPointCommand* pointCommand = |
|
2098 new ( ELeave ) THuiPointCommand( iHuiControl, *aPoint, EHuiOpSetWithSpeed, aTarget ); |
|
2099 STIF_ASSERT_NOT_NULL( pointCommand ); |
|
2100 CleanupStack::PushL( pointCommand ); |
|
2101 pointCommand->TransitionTime(); |
|
2102 CleanupStack::Pop( 1 ); |
|
2103 if( aPoint ) |
|
2104 { |
|
2105 delete aPoint; |
|
2106 aPoint = NULL; |
|
2107 } |
|
2108 |
|
2109 return KErrNone; |
|
2110 |
|
2111 } |
|
2112 // ----------------------------------------------------------------------------- |
|
2113 // CTestUiAifCoreToolkit::TestTHuiPointCommandSpeedL |
|
2114 // ----------------------------------------------------------------------------- |
|
2115 // |
|
2116 TInt CTestUiAifCoreToolkit::TestTHuiPointCommandSpeedL( CStifItemParser& /*aItem*/ ) |
|
2117 { |
|
2118 |
|
2119 // Print to UI |
|
2120 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2121 _LIT( KTestTHuiPointCommandSpeedL, "In TestTHuiPointCommandSpeedL" ); |
|
2122 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiPointCommandSpeedL ); |
|
2123 // Print to log file |
|
2124 iLog->Log( KTestTHuiPointCommandSpeedL ); |
|
2125 |
|
2126 THuiTimedPoint* aPoint = new ( ELeave ) THuiTimedPoint; |
|
2127 THuiRealPoint aTarget; |
|
2128 THuiPointCommand* pointCommand = |
|
2129 new ( ELeave ) THuiPointCommand( iHuiControl, *aPoint, EHuiOpSetWithSpeed, aTarget ); |
|
2130 STIF_ASSERT_NOT_NULL( pointCommand ); |
|
2131 CleanupStack::PushL( pointCommand ); |
|
2132 pointCommand->Speed(); |
|
2133 CleanupStack::Pop( 1 ); |
|
2134 if( aPoint ) |
|
2135 { |
|
2136 delete aPoint; |
|
2137 aPoint = NULL; |
|
2138 } |
|
2139 |
|
2140 return KErrNone; |
|
2141 |
|
2142 } |
|
2143 // ----------------------------------------------------------------------------- |
|
2144 // CTestUiAifCoreToolkit::TestTHuiPointCommandExtensionL |
|
2145 // ----------------------------------------------------------------------------- |
|
2146 // |
|
2147 TInt CTestUiAifCoreToolkit::TestTHuiPointCommandExtensionL( CStifItemParser& /*aItem*/ ) |
|
2148 { |
|
2149 |
|
2150 // Print to UI |
|
2151 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2152 _LIT( KTestTHuiPointCommandExtensionL, "In TestTHuiPointCommandExtensionL" ); |
|
2153 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiPointCommandExtensionL ); |
|
2154 // Print to log file |
|
2155 iLog->Log( KTestTHuiPointCommandExtensionL ); |
|
2156 |
|
2157 THuiTimedPoint* aPoint = new ( ELeave ) THuiTimedPoint; |
|
2158 THuiRealPoint aTarget; |
|
2159 TTestUiAifBlocksHuiPointCommandChild* pointCommandChild = |
|
2160 new ( ELeave ) TTestUiAifBlocksHuiPointCommandChild( iHuiControl, *aPoint, EHuiOpSetWithSpeed ); |
|
2161 STIF_ASSERT_NOT_NULL( pointCommandChild ); |
|
2162 CleanupStack::PushL( pointCommandChild ); |
|
2163 const TUid aExtensionUid = TUid::Null(); |
|
2164 TAny** aExtensionParams = NULL; |
|
2165 pointCommandChild->SetCommandExtension( aExtensionUid, aExtensionParams ); |
|
2166 CleanupStack::Pop( 1 ); |
|
2167 if( aPoint ) |
|
2168 { |
|
2169 delete aPoint; |
|
2170 aPoint = NULL; |
|
2171 } |
|
2172 |
|
2173 return KErrNone; |
|
2174 |
|
2175 } |
|
2176 // ----------------------------------------------------------------------------- |
|
2177 // CTestUiAifCoreToolkit::TestTHuiTransformationCommandL |
|
2178 // ----------------------------------------------------------------------------- |
|
2179 // |
|
2180 TInt CTestUiAifCoreToolkit::TestTHuiTransformationCommandL( CStifItemParser& /*aItem*/ ) |
|
2181 { |
|
2182 |
|
2183 // Print to UI |
|
2184 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2185 _LIT( KTestTHuiTransformationCommandL, "In TestTHuiTransformationCommandL" ); |
|
2186 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTransformationCommandL ); |
|
2187 // Print to log file |
|
2188 iLog->Log( KTestTHuiTransformationCommandL ); |
|
2189 |
|
2190 CHuiTransformation* aTransformation = CHuiTransformation::NewL(); |
|
2191 THuiTransformationCommand* transCommand = |
|
2192 new ( ELeave ) THuiTransformationCommand( iHuiControl, *aTransformation ); |
|
2193 STIF_ASSERT_NOT_NULL( transCommand ); |
|
2194 CleanupStack::PushL( transCommand ); |
|
2195 CleanupStack::Pop( 1 ); |
|
2196 if( aTransformation ) |
|
2197 { |
|
2198 delete aTransformation; |
|
2199 aTransformation = NULL; |
|
2200 } |
|
2201 |
|
2202 return KErrNone; |
|
2203 |
|
2204 } |
|
2205 // ----------------------------------------------------------------------------- |
|
2206 // CTestUiAifCoreToolkit::TestTHuiTransformationCommandExecuteL |
|
2207 // ----------------------------------------------------------------------------- |
|
2208 // |
|
2209 TInt CTestUiAifCoreToolkit::TestTHuiTransformationCommandExecuteL( CStifItemParser& /*aItem*/ ) |
|
2210 { |
|
2211 |
|
2212 // Print to UI |
|
2213 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2214 _LIT( KTestTHuiTransformationCommandExecuteL, "In TestTHuiTransformationCommandExecuteL" ); |
|
2215 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTransformationCommandExecuteL ); |
|
2216 // Print to log file |
|
2217 iLog->Log( KTestTHuiTransformationCommandExecuteL ); |
|
2218 |
|
2219 CHuiTransformation* aTransformation = CHuiTransformation::NewL(); |
|
2220 THuiTransformationCommand* transCommand = |
|
2221 new ( ELeave ) THuiTransformationCommand( iHuiControl, *aTransformation ); |
|
2222 STIF_ASSERT_NOT_NULL( transCommand ); |
|
2223 CleanupStack::PushL( transCommand ); |
|
2224 transCommand->ExecuteL( *iHuiEnv ); |
|
2225 CleanupStack::Pop( 1 ); |
|
2226 if( aTransformation ) |
|
2227 { |
|
2228 delete aTransformation; |
|
2229 aTransformation = NULL; |
|
2230 } |
|
2231 |
|
2232 return KErrNone; |
|
2233 |
|
2234 } |
|
2235 // ----------------------------------------------------------------------------- |
|
2236 // CTestUiAifCoreToolkit::TestTHuiTransformationCommandSizeL |
|
2237 // ----------------------------------------------------------------------------- |
|
2238 // |
|
2239 TInt CTestUiAifCoreToolkit::TestTHuiTransformationCommandSizeL( CStifItemParser& /*aItem*/ ) |
|
2240 { |
|
2241 |
|
2242 // Print to UI |
|
2243 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2244 _LIT( KTestTHuiTransformationCommandSizeL, "In TestTHuiTransformationCommandSizeL" ); |
|
2245 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTransformationCommandSizeL ); |
|
2246 // Print to log file |
|
2247 iLog->Log( KTestTHuiTransformationCommandSizeL ); |
|
2248 |
|
2249 CHuiTransformation* aTransformation = CHuiTransformation::NewL(); |
|
2250 THuiTransformationCommand* transCommand = |
|
2251 new ( ELeave ) THuiTransformationCommand( iHuiControl, *aTransformation ); |
|
2252 STIF_ASSERT_NOT_NULL( transCommand ); |
|
2253 CleanupStack::PushL( transCommand ); |
|
2254 transCommand->ExecuteL( *iHuiEnv ); |
|
2255 transCommand->Size(); |
|
2256 CleanupStack::Pop( 1 ); |
|
2257 if( aTransformation ) |
|
2258 { |
|
2259 delete aTransformation; |
|
2260 aTransformation = NULL; |
|
2261 } |
|
2262 |
|
2263 return KErrNone; |
|
2264 |
|
2265 } |
|
2266 // ----------------------------------------------------------------------------- |
|
2267 // CTestUiAifCoreToolkit::TestTHuiTransformationCommandTransmasnL |
|
2268 // ----------------------------------------------------------------------------- |
|
2269 // |
|
2270 TInt CTestUiAifCoreToolkit::TestTHuiTransformationCommandTransmasnL( CStifItemParser& /*aItem*/ ) |
|
2271 { |
|
2272 |
|
2273 // Print to UI |
|
2274 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2275 _LIT( KTestTHuiTransformationCommandTransmasnL, "In TestTHuiTransformationCommandTransmasnL" ); |
|
2276 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTransformationCommandTransmasnL ); |
|
2277 // Print to log file |
|
2278 iLog->Log( KTestTHuiTransformationCommandTransmasnL ); |
|
2279 |
|
2280 CHuiTransformation* aTransformation = CHuiTransformation::NewL(); |
|
2281 THuiTransformationCommand* transCommand = |
|
2282 new ( ELeave ) THuiTransformationCommand( iHuiControl, *aTransformation ); |
|
2283 STIF_ASSERT_NOT_NULL( transCommand ); |
|
2284 CleanupStack::PushL( transCommand ); |
|
2285 transCommand->ExecuteL( *iHuiEnv ); |
|
2286 transCommand->Transformation(); |
|
2287 CleanupStack::Pop( 1 ); |
|
2288 if( aTransformation ) |
|
2289 { |
|
2290 delete aTransformation; |
|
2291 aTransformation = NULL; |
|
2292 } |
|
2293 |
|
2294 return KErrNone; |
|
2295 |
|
2296 } |
|
2297 // ----------------------------------------------------------------------------- |
|
2298 // CTestUiAifCoreToolkit::TestTHuiTransformationCommandStepL |
|
2299 // ----------------------------------------------------------------------------- |
|
2300 // |
|
2301 TInt CTestUiAifCoreToolkit::TestTHuiTransformationCommandStepL( CStifItemParser& /*aItem*/ ) |
|
2302 { |
|
2303 |
|
2304 // Print to UI |
|
2305 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2306 _LIT( KTestTHuiTransformationCommandStepL, "In TestTHuiTransformationCommandStepL" ); |
|
2307 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTransformationCommandStepL ); |
|
2308 // Print to log file |
|
2309 iLog->Log( KTestTHuiTransformationCommandStepL ); |
|
2310 |
|
2311 CHuiTransformation* aTransformation = CHuiTransformation::NewL(); |
|
2312 THuiTransformationCommand* transCommand = |
|
2313 new ( ELeave ) THuiTransformationCommand( iHuiControl, *aTransformation ); |
|
2314 STIF_ASSERT_NOT_NULL( transCommand ); |
|
2315 CleanupStack::PushL( transCommand ); |
|
2316 transCommand->ExecuteL( *iHuiEnv ); |
|
2317 transCommand->Step(); |
|
2318 CleanupStack::Pop( 1 ); |
|
2319 if( aTransformation ) |
|
2320 { |
|
2321 delete aTransformation; |
|
2322 aTransformation = NULL; |
|
2323 } |
|
2324 |
|
2325 return KErrNone; |
|
2326 |
|
2327 } |
|
2328 // ----------------------------------------------------------------------------- |
|
2329 // CTestUiAifCoreToolkit::TestTHuiTransformationCommandSetXL |
|
2330 // ----------------------------------------------------------------------------- |
|
2331 // |
|
2332 TInt CTestUiAifCoreToolkit::TestTHuiTransformationCommandSetXL( CStifItemParser& /*aItem*/ ) |
|
2333 { |
|
2334 |
|
2335 // Print to UI |
|
2336 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2337 _LIT( KTestTHuiTransformationCommandSetXL, "In TestTHuiTransformationCommandSetXL" ); |
|
2338 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTransformationCommandSetXL ); |
|
2339 // Print to log file |
|
2340 iLog->Log( KTestTHuiTransformationCommandSetXL ); |
|
2341 |
|
2342 CHuiTransformation* aTransformation = CHuiTransformation::NewL(); |
|
2343 THuiTransformationCommand* transCommand = |
|
2344 new ( ELeave ) THuiTransformationCommand( iHuiControl, *aTransformation ); |
|
2345 STIF_ASSERT_NOT_NULL( transCommand ); |
|
2346 CleanupStack::PushL( transCommand ); |
|
2347 transCommand->ExecuteL( *iHuiEnv ); |
|
2348 const THuiTimedValue* timeValue = new ( ELeave ) THuiTimedValue; |
|
2349 transCommand->SetX( *timeValue ); |
|
2350 CleanupStack::Pop( 1 ); |
|
2351 if( aTransformation ) |
|
2352 { |
|
2353 delete aTransformation; |
|
2354 aTransformation = NULL; |
|
2355 } |
|
2356 if( timeValue ) |
|
2357 { |
|
2358 delete timeValue; |
|
2359 timeValue = NULL; |
|
2360 } |
|
2361 |
|
2362 return KErrNone; |
|
2363 |
|
2364 } |
|
2365 // ----------------------------------------------------------------------------- |
|
2366 // CTestUiAifCoreToolkit::TestTHuiTransformationCommandSetYL |
|
2367 // ----------------------------------------------------------------------------- |
|
2368 // |
|
2369 TInt CTestUiAifCoreToolkit::TestTHuiTransformationCommandSetYL( CStifItemParser& /*aItem*/ ) |
|
2370 { |
|
2371 |
|
2372 // Print to UI |
|
2373 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2374 _LIT( KTestTHuiTransformationCommandSetYL, "In TestTHuiTransformationCommandSetYL" ); |
|
2375 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTransformationCommandSetYL ); |
|
2376 // Print to log file |
|
2377 iLog->Log( KTestTHuiTransformationCommandSetYL ); |
|
2378 |
|
2379 CHuiTransformation* aTransformation = CHuiTransformation::NewL(); |
|
2380 THuiTransformationCommand* transCommand = |
|
2381 new ( ELeave ) THuiTransformationCommand( iHuiControl, *aTransformation ); |
|
2382 STIF_ASSERT_NOT_NULL( transCommand ); |
|
2383 CleanupStack::PushL( transCommand ); |
|
2384 const THuiTimedValue* timeValue = new ( ELeave ) THuiTimedValue; |
|
2385 transCommand->SetY( *timeValue ); |
|
2386 CleanupStack::Pop( 1 ); |
|
2387 if( aTransformation ) |
|
2388 { |
|
2389 delete aTransformation; |
|
2390 aTransformation = NULL; |
|
2391 } |
|
2392 if( timeValue ) |
|
2393 { |
|
2394 delete timeValue; |
|
2395 timeValue = NULL; |
|
2396 } |
|
2397 |
|
2398 return KErrNone; |
|
2399 |
|
2400 } |
|
2401 // ----------------------------------------------------------------------------- |
|
2402 // CTestUiAifCoreToolkit::TestTHuiTransformationCommandSetZL |
|
2403 // ----------------------------------------------------------------------------- |
|
2404 // |
|
2405 TInt CTestUiAifCoreToolkit::TestTHuiTransformationCommandSetZL( CStifItemParser& /*aItem*/ ) |
|
2406 { |
|
2407 |
|
2408 // Print to UI |
|
2409 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2410 _LIT( KTestTHuiTransformationCommandSetZL, "In TestTHuiTransformationCommandSetZL" ); |
|
2411 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTransformationCommandSetZL ); |
|
2412 // Print to log file |
|
2413 iLog->Log( KTestTHuiTransformationCommandSetZL ); |
|
2414 |
|
2415 CHuiTransformation* aTransformation = CHuiTransformation::NewL(); |
|
2416 THuiTransformationCommand* transCommand = |
|
2417 new ( ELeave ) THuiTransformationCommand( iHuiControl, *aTransformation ); |
|
2418 STIF_ASSERT_NOT_NULL( transCommand ); |
|
2419 CleanupStack::PushL( transCommand ); |
|
2420 const THuiTimedValue* timeValue = new ( ELeave ) THuiTimedValue; |
|
2421 transCommand->SetZ( *timeValue ); |
|
2422 CleanupStack::Pop( 1 ); |
|
2423 if( aTransformation ) |
|
2424 { |
|
2425 delete aTransformation; |
|
2426 aTransformation = NULL; |
|
2427 } |
|
2428 if( timeValue ) |
|
2429 { |
|
2430 delete timeValue; |
|
2431 timeValue = NULL; |
|
2432 } |
|
2433 |
|
2434 return KErrNone; |
|
2435 |
|
2436 } |
|
2437 // ----------------------------------------------------------------------------- |
|
2438 // CTestUiAifCoreToolkit::TestTHuiTransformationCommandSetAngleL |
|
2439 // ----------------------------------------------------------------------------- |
|
2440 // |
|
2441 TInt CTestUiAifCoreToolkit::TestTHuiTransformationCommandSetAngleL( CStifItemParser& /*aItem*/ ) |
|
2442 { |
|
2443 |
|
2444 // Print to UI |
|
2445 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2446 _LIT( KTestTHuiTransformationCommandSetAngleL, "In TestTHuiTransformationCommandSetAngleL" ); |
|
2447 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTransformationCommandSetAngleL ); |
|
2448 // Print to log file |
|
2449 iLog->Log( KTestTHuiTransformationCommandSetAngleL ); |
|
2450 |
|
2451 CHuiTransformation* aTransformation = CHuiTransformation::NewL(); |
|
2452 THuiTransformationCommand* transCommand = |
|
2453 new ( ELeave ) THuiTransformationCommand( iHuiControl, *aTransformation ); |
|
2454 STIF_ASSERT_NOT_NULL( transCommand ); |
|
2455 CleanupStack::PushL( transCommand ); |
|
2456 const THuiTimedValue* timeValue = new ( ELeave ) THuiTimedValue; |
|
2457 transCommand->SetAngle( *timeValue ); |
|
2458 CleanupStack::Pop( 1 ); |
|
2459 if( aTransformation ) |
|
2460 { |
|
2461 delete aTransformation; |
|
2462 aTransformation = NULL; |
|
2463 } |
|
2464 if( timeValue ) |
|
2465 { |
|
2466 delete timeValue; |
|
2467 timeValue = NULL; |
|
2468 } |
|
2469 |
|
2470 return KErrNone; |
|
2471 |
|
2472 } |
|
2473 // ----------------------------------------------------------------------------- |
|
2474 // CTestUiAifCoreToolkit::TestTHuiTransformationCommandExtensionL |
|
2475 // ----------------------------------------------------------------------------- |
|
2476 // |
|
2477 TInt CTestUiAifCoreToolkit::TestTHuiTransformationCommandExtensionL( CStifItemParser& /*aItem*/ ) |
|
2478 { |
|
2479 |
|
2480 // Print to UI |
|
2481 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2482 _LIT( KTestTHuiTransformationCommandExtensionL, "In KTestTHuiTransformationCommandExtensionL" ); |
|
2483 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiTransformationCommandExtensionL ); |
|
2484 // Print to log file |
|
2485 iLog->Log( KTestTHuiTransformationCommandExtensionL ); |
|
2486 |
|
2487 CHuiTransformation* aTransformation = CHuiTransformation::NewL(); |
|
2488 TTestUiAifBlocksHuiTransCommandChild* transCommandChild = |
|
2489 new ( ELeave ) TTestUiAifBlocksHuiTransCommandChild( iHuiControl, *aTransformation ); |
|
2490 STIF_ASSERT_NOT_NULL( transCommandChild ); |
|
2491 CleanupStack::PushL( transCommandChild ); |
|
2492 const TUid aExtensionUid = TUid::Null(); |
|
2493 TAny** aExtensionParams = NULL; |
|
2494 transCommandChild->SetCommandExtension( aExtensionUid, aExtensionParams ); |
|
2495 CleanupStack::Pop( 1 ); |
|
2496 if( aTransformation ) |
|
2497 { |
|
2498 delete aTransformation; |
|
2499 aTransformation = NULL; |
|
2500 } |
|
2501 |
|
2502 return KErrNone; |
|
2503 |
|
2504 } |
|
2505 // ----------------------------------------------------------------------------- |
|
2506 // CTestUiAifCoreToolkit::TestTHuiMarkerCommandL |
|
2507 // ----------------------------------------------------------------------------- |
|
2508 // |
|
2509 TInt CTestUiAifCoreToolkit::TestTHuiMarkerCommandL( CStifItemParser& /*aItem*/ ) |
|
2510 { |
|
2511 |
|
2512 // Print to UI |
|
2513 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2514 _LIT( KTestTHuiMarkerCommandL, "In TestTHuiMarkerCommandL" ); |
|
2515 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiMarkerCommandL ); |
|
2516 // Print to log file |
|
2517 iLog->Log( KTestTHuiMarkerCommandL ); |
|
2518 |
|
2519 THuiMarkerCommand* markerCommand = new ( ELeave ) THuiMarkerCommand( 0 ); |
|
2520 STIF_ASSERT_NOT_NULL( markerCommand ); |
|
2521 CleanupStack::PushL( markerCommand ); |
|
2522 CleanupStack::Pop( 1 ); |
|
2523 if( markerCommand ) |
|
2524 { |
|
2525 delete markerCommand; |
|
2526 markerCommand = NULL; |
|
2527 } |
|
2528 |
|
2529 return KErrNone; |
|
2530 |
|
2531 } |
|
2532 // ----------------------------------------------------------------------------- |
|
2533 // CTestUiAifCoreToolkit::TestTHuiMarkerCommandExecuteL |
|
2534 // ----------------------------------------------------------------------------- |
|
2535 // |
|
2536 TInt CTestUiAifCoreToolkit::TestTHuiMarkerCommandExecuteL( CStifItemParser& /*aItem*/ ) |
|
2537 { |
|
2538 |
|
2539 // Print to UI |
|
2540 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2541 _LIT( KTestTHuiMarkerCommandExecuteL, "In TestTHuiMarkerCommandExecuteL" ); |
|
2542 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiMarkerCommandExecuteL ); |
|
2543 // Print to log file |
|
2544 iLog->Log( KTestTHuiMarkerCommandExecuteL ); |
|
2545 |
|
2546 THuiMarkerCommand* markerCommand = new ( ELeave ) THuiMarkerCommand( 0 ); |
|
2547 STIF_ASSERT_NOT_NULL( markerCommand ); |
|
2548 CleanupStack::PushL( markerCommand ); |
|
2549 markerCommand->ExecuteL( *iHuiEnv ); |
|
2550 CleanupStack::Pop( 1 ); |
|
2551 if( markerCommand ) |
|
2552 { |
|
2553 delete markerCommand; |
|
2554 markerCommand = NULL; |
|
2555 } |
|
2556 |
|
2557 return KErrNone; |
|
2558 |
|
2559 } |
|
2560 // ----------------------------------------------------------------------------- |
|
2561 // CTestUiAifCoreToolkit::TestTHuiMarkerCommandSizeL |
|
2562 // ----------------------------------------------------------------------------- |
|
2563 // |
|
2564 TInt CTestUiAifCoreToolkit::TestTHuiMarkerCommandSizeL( CStifItemParser& /*aItem*/ ) |
|
2565 { |
|
2566 |
|
2567 // Print to UI |
|
2568 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2569 _LIT( KTestTHuiMarkerCommandSizeL, "In TestTHuiMarkerCommandSizeL" ); |
|
2570 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiMarkerCommandSizeL ); |
|
2571 // Print to log file |
|
2572 iLog->Log( KTestTHuiMarkerCommandSizeL ); |
|
2573 |
|
2574 THuiMarkerCommand* markerCommand = new ( ELeave ) THuiMarkerCommand( 0 ); |
|
2575 STIF_ASSERT_NOT_NULL( markerCommand ); |
|
2576 CleanupStack::PushL( markerCommand ); |
|
2577 markerCommand->Size(); |
|
2578 CleanupStack::Pop( 1 ); |
|
2579 if( markerCommand ) |
|
2580 { |
|
2581 delete markerCommand; |
|
2582 markerCommand = NULL; |
|
2583 } |
|
2584 |
|
2585 return KErrNone; |
|
2586 |
|
2587 } |
|
2588 // ----------------------------------------------------------------------------- |
|
2589 // CTestUiAifCoreToolkit::TestTHuiMarkerCommandIdL |
|
2590 // ----------------------------------------------------------------------------- |
|
2591 // |
|
2592 TInt CTestUiAifCoreToolkit::TestTHuiMarkerCommandIdL( CStifItemParser& /*aItem*/ ) |
|
2593 { |
|
2594 |
|
2595 // Print to UI |
|
2596 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2597 _LIT( KTestTHuiMarkerCommandIdL, "In TestTHuiMarkerCommandIdL" ); |
|
2598 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiMarkerCommandIdL ); |
|
2599 // Print to log file |
|
2600 iLog->Log( KTestTHuiMarkerCommandIdL ); |
|
2601 |
|
2602 THuiMarkerCommand* markerCommand = new ( ELeave ) THuiMarkerCommand( 0 ); |
|
2603 STIF_ASSERT_NOT_NULL( markerCommand ); |
|
2604 CleanupStack::PushL( markerCommand ); |
|
2605 markerCommand->Id(); |
|
2606 CleanupStack::Pop( 1 ); |
|
2607 if( markerCommand ) |
|
2608 { |
|
2609 delete markerCommand; |
|
2610 markerCommand = NULL; |
|
2611 } |
|
2612 |
|
2613 return KErrNone; |
|
2614 |
|
2615 } |
|
2616 // ----------------------------------------------------------------------------- |
|
2617 // CTestUiAifCoreToolkit::TestTHuiMarkerCommandExtensionL |
|
2618 // ----------------------------------------------------------------------------- |
|
2619 // |
|
2620 TInt CTestUiAifCoreToolkit::TestTHuiMarkerCommandExtensionL( CStifItemParser& /*aItem*/ ) |
|
2621 { |
|
2622 |
|
2623 // Print to UI |
|
2624 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2625 _LIT( KTestTHuiMarkerCommandExtensionL, "In TestTHuiMarkerCommandExtensionL" ); |
|
2626 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiMarkerCommandExtensionL ); |
|
2627 // Print to log file |
|
2628 iLog->Log( KTestTHuiMarkerCommandExtensionL ); |
|
2629 |
|
2630 TTestUiAifBlocksHuiMarkerCommandChild* markerCommandChild = |
|
2631 new ( ELeave ) TTestUiAifBlocksHuiMarkerCommandChild( 0 ); |
|
2632 STIF_ASSERT_NOT_NULL( markerCommandChild ); |
|
2633 CleanupStack::PushL( markerCommandChild ); |
|
2634 const TUid aExtensionUid = TUid::Null(); |
|
2635 TAny** aExtensionParams = NULL; |
|
2636 markerCommandChild->SetCommandExtension( aExtensionUid, aExtensionParams ); |
|
2637 CleanupStack::Pop( 1 ); |
|
2638 if( markerCommandChild ) |
|
2639 { |
|
2640 delete markerCommandChild; |
|
2641 markerCommandChild = NULL; |
|
2642 } |
|
2643 |
|
2644 return KErrNone; |
|
2645 |
|
2646 } |
|
2647 // ----------------------------------------------------------------------------- |
|
2648 // CTestUiAifCoreToolkit::TestTHuiCustomEventCommandL |
|
2649 // ----------------------------------------------------------------------------- |
|
2650 // |
|
2651 TInt CTestUiAifCoreToolkit::TestTHuiCustomEventCommandL( CStifItemParser& /*aItem*/ ) |
|
2652 { |
|
2653 |
|
2654 // Print to UI |
|
2655 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2656 _LIT( KTestTHuiCustomEventCommandL, "In TestTHuiCustomEventCommandL" ); |
|
2657 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiCustomEventCommandL ); |
|
2658 // Print to log file |
|
2659 iLog->Log( KTestTHuiCustomEventCommandL ); |
|
2660 |
|
2661 THuiCustomEventCommand* customEvent = |
|
2662 new ( ELeave ) THuiCustomEventCommand( 0 ); |
|
2663 STIF_ASSERT_NOT_NULL( customEvent ); |
|
2664 CleanupStack::PushL( customEvent ); |
|
2665 CleanupStack::Pop( 1 ); |
|
2666 if( customEvent ) |
|
2667 { |
|
2668 delete customEvent; |
|
2669 customEvent = NULL; |
|
2670 } |
|
2671 |
|
2672 return KErrNone; |
|
2673 |
|
2674 } |
|
2675 // ----------------------------------------------------------------------------- |
|
2676 // CTestUiAifCoreToolkit::TestTHuiCustomEventCommandExecuteL |
|
2677 // ----------------------------------------------------------------------------- |
|
2678 // |
|
2679 TInt CTestUiAifCoreToolkit::TestTHuiCustomEventCommandExecuteL( CStifItemParser& /*aItem*/ ) |
|
2680 { |
|
2681 |
|
2682 // Print to UI |
|
2683 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2684 _LIT( KTestTHuiCustomEventCommandExecuteL, "In TestTHuiCustomEventCommandExecuteL" ); |
|
2685 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiCustomEventCommandExecuteL ); |
|
2686 // Print to log file |
|
2687 iLog->Log( KTestTHuiCustomEventCommandExecuteL ); |
|
2688 |
|
2689 THuiCustomEventCommand* customEvent = |
|
2690 new ( ELeave ) THuiCustomEventCommand( 0 ); |
|
2691 STIF_ASSERT_NOT_NULL( customEvent ); |
|
2692 CleanupStack::PushL( customEvent ); |
|
2693 customEvent->ExecuteL( *iHuiEnv ); |
|
2694 CleanupStack::Pop( 1 ); |
|
2695 if( customEvent ) |
|
2696 { |
|
2697 delete customEvent; |
|
2698 customEvent = NULL; |
|
2699 } |
|
2700 |
|
2701 return KErrNone; |
|
2702 |
|
2703 } |
|
2704 // ----------------------------------------------------------------------------- |
|
2705 // CTestUiAifCoreToolkit::TestTHuiCustomEventCommandSizeL |
|
2706 // ----------------------------------------------------------------------------- |
|
2707 // |
|
2708 TInt CTestUiAifCoreToolkit::TestTHuiCustomEventCommandSizeL( CStifItemParser& /*aItem*/ ) |
|
2709 { |
|
2710 |
|
2711 // Print to UI |
|
2712 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2713 _LIT( KTestTHuiCustomEventCommandSizeL, "In TestTHuiCustomEventCommandSizeL" ); |
|
2714 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiCustomEventCommandSizeL ); |
|
2715 // Print to log file |
|
2716 iLog->Log( KTestTHuiCustomEventCommandSizeL ); |
|
2717 |
|
2718 THuiCustomEventCommand* customEvent = |
|
2719 new ( ELeave ) THuiCustomEventCommand( 0 ); |
|
2720 STIF_ASSERT_NOT_NULL( customEvent ); |
|
2721 CleanupStack::PushL( customEvent ); |
|
2722 customEvent->Size(); |
|
2723 CleanupStack::Pop( 1 ); |
|
2724 if( customEvent ) |
|
2725 { |
|
2726 delete customEvent; |
|
2727 customEvent = NULL; |
|
2728 } |
|
2729 |
|
2730 return KErrNone; |
|
2731 |
|
2732 } |
|
2733 // ----------------------------------------------------------------------------- |
|
2734 // CTestUiAifCoreToolkit::TestTHuiCustomEventCommandRecipientL |
|
2735 // ----------------------------------------------------------------------------- |
|
2736 // |
|
2737 TInt CTestUiAifCoreToolkit::TestTHuiCustomEventCommandRecipientL( CStifItemParser& /*aItem*/ ) |
|
2738 { |
|
2739 |
|
2740 // Print to UI |
|
2741 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2742 _LIT( KTestTHuiCustomEventCommandRecipientL, "In TestTHuiCustomEventCommandRecipientL" ); |
|
2743 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiCustomEventCommandRecipientL ); |
|
2744 // Print to log file |
|
2745 iLog->Log( KTestTHuiCustomEventCommandRecipientL ); |
|
2746 |
|
2747 THuiCustomEventCommand* customEvent = |
|
2748 new ( ELeave ) THuiCustomEventCommand( 0 ); |
|
2749 STIF_ASSERT_NOT_NULL( customEvent ); |
|
2750 CleanupStack::PushL( customEvent ); |
|
2751 customEvent->Recipient(); |
|
2752 CleanupStack::Pop( 1 ); |
|
2753 if( customEvent ) |
|
2754 { |
|
2755 delete customEvent; |
|
2756 customEvent = NULL; |
|
2757 } |
|
2758 |
|
2759 return KErrNone; |
|
2760 |
|
2761 } |
|
2762 // ----------------------------------------------------------------------------- |
|
2763 // CTestUiAifCoreToolkit::TestTHuiCustomEventCommandParamL |
|
2764 // ----------------------------------------------------------------------------- |
|
2765 // |
|
2766 TInt CTestUiAifCoreToolkit::TestTHuiCustomEventCommandParamL( CStifItemParser& /*aItem*/ ) |
|
2767 { |
|
2768 |
|
2769 // Print to UI |
|
2770 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2771 _LIT( KTestTHuiCustomEventCommandParamL, "In TestTHuiCustomEventCommandParamL" ); |
|
2772 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiCustomEventCommandParamL ); |
|
2773 // Print to log file |
|
2774 iLog->Log( KTestTHuiCustomEventCommandParamL ); |
|
2775 |
|
2776 THuiCustomEventCommand* customEvent = |
|
2777 new ( ELeave ) THuiCustomEventCommand( 0 ); |
|
2778 STIF_ASSERT_NOT_NULL( customEvent ); |
|
2779 CleanupStack::PushL( customEvent ); |
|
2780 customEvent->Param(); |
|
2781 CleanupStack::Pop( 1 ); |
|
2782 if( customEvent ) |
|
2783 { |
|
2784 delete customEvent; |
|
2785 customEvent = NULL; |
|
2786 } |
|
2787 |
|
2788 return KErrNone; |
|
2789 |
|
2790 } |
|
2791 // ----------------------------------------------------------------------------- |
|
2792 // CTestUiAifCoreToolkit::TestTHuiCustomEventCommandExtensionL |
|
2793 // ----------------------------------------------------------------------------- |
|
2794 // |
|
2795 TInt CTestUiAifCoreToolkit::TestTHuiCustomEventCommandExtensionL( CStifItemParser& /*aItem*/ ) |
|
2796 { |
|
2797 |
|
2798 // Print to UI |
|
2799 _LIT( Ktestuiaifcoretoolkit, "testuiaifcoretoolkit" ); |
|
2800 _LIT( KTestTHuiCustomEventCommandExtensionL, "In TestTHuiCustomEventCommandExtensionL" ); |
|
2801 TestModuleIf().Printf( 0, Ktestuiaifcoretoolkit, KTestTHuiCustomEventCommandExtensionL ); |
|
2802 // Print to log file |
|
2803 iLog->Log( KTestTHuiCustomEventCommandExtensionL ); |
|
2804 |
|
2805 TTestUiAifBlocksHuiCustomEventCommandChild* customEventChild = |
|
2806 new ( ELeave ) TTestUiAifBlocksHuiCustomEventCommandChild( 0 ); |
|
2807 STIF_ASSERT_NOT_NULL( customEventChild ); |
|
2808 CleanupStack::PushL( customEventChild ); |
|
2809 const TUid aExtensionUid = TUid::Null(); |
|
2810 TAny** aExtensionParams = NULL; |
|
2811 customEventChild->SetCommandExtension( aExtensionUid, aExtensionParams ); |
|
2812 CleanupStack::Pop( 1 ); |
|
2813 if( customEventChild ) |
|
2814 { |
|
2815 delete customEventChild; |
|
2816 customEventChild = NULL; |
|
2817 } |
|
2818 |
|
2819 return KErrNone; |
|
2820 |
|
2821 } |
|
2822 |
|
2823 // [End of File] |
|