|
1 /* |
|
2 * Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: test functions for alf client server api |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // [INCLUDE FILES] |
|
21 #include <e32svr.h> |
|
22 #include <coemain.h> |
|
23 #include <stifparser.h> |
|
24 #include <stiftestinterface.h> |
|
25 #include <alf/alfappserver.h> |
|
26 #include <alf/alfappsrvsessionbase.h> |
|
27 #include <aknserverapp.h> |
|
28 |
|
29 #include "testplatclientserver.h" |
|
30 |
|
31 // implement the CAlfAppSrvSessionBase |
|
32 class CAlfAppSrvSessionBaseImp: public CAlfAppSrvSessionBase |
|
33 { |
|
34 public: |
|
35 //test CAlfAppSrvSessionBase constructor with one paramet |
|
36 CAlfAppSrvSessionBaseImp(const CAlfAppServer* aServer) |
|
37 :CAlfAppSrvSessionBase( aServer ) |
|
38 { |
|
39 } |
|
40 //test CAlfAppSrvSessionBase constructor with on paramet |
|
41 CAlfAppSrvSessionBaseImp():CAlfAppSrvSessionBase() |
|
42 { |
|
43 } |
|
44 |
|
45 //inherit from CAlfAppSrvSessionBase |
|
46 void DoHandleCommandL(const RMessage2& aMessage) |
|
47 { |
|
48 } |
|
49 |
|
50 // test baseconstructor in CAlfAppSrvSessionBase |
|
51 void TestBaseConstructL() |
|
52 { |
|
53 CAlfAppSrvSessionBase::BaseConstructL(); |
|
54 } |
|
55 }; |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // CTestPlatClientServer::TestServerCAlfAppSrvSessionBaseServerL |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 TInt CTestPlatClientServer::TestServerCAlfAppSrvSessionBaseServerL( |
|
62 CStifItemParser& /*aItem*/ ) |
|
63 { |
|
64 |
|
65 // Print to UI |
|
66 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
67 _LIT( KTestServerCAlfAppSrvSessionBaseServerL, |
|
68 "In TestServerCAlfAppSrvSessionBaseServerL" ); |
|
69 TestModuleIf().Printf( 0, Ktestplatclientserver, |
|
70 KTestServerCAlfAppSrvSessionBaseServerL ); |
|
71 // Print to log file |
|
72 iLog->Log( KTestServerCAlfAppSrvSessionBaseServerL ); |
|
73 |
|
74 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
75 CleanupStack::PushL( appServer ); |
|
76 |
|
77 CAlfAppSrvSessionBase* sessionBase = |
|
78 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
79 |
|
80 CleanupStack::PopAndDestroy( appServer ); |
|
81 |
|
82 return KErrNone; |
|
83 |
|
84 } |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // CTestPlatClientServer::TestServerCAlfAppSrvSessionBaseL |
|
88 // ----------------------------------------------------------------------------- |
|
89 // |
|
90 TInt CTestPlatClientServer::TestServerCAlfAppSrvSessionBaseL( |
|
91 CStifItemParser& /*aItem*/ ) |
|
92 { |
|
93 |
|
94 // Print to UI |
|
95 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
96 _LIT( KTestServerCAlfAppSrvSessionBaseL, |
|
97 "In TestServerCAlfAppSrvSessionBaseL" ); |
|
98 TestModuleIf().Printf( 0, Ktestplatclientserver, |
|
99 KTestServerCAlfAppSrvSessionBaseL ); |
|
100 // Print to log file |
|
101 iLog->Log( KTestServerCAlfAppSrvSessionBaseL ); |
|
102 |
|
103 CAlfAppSrvSessionBase* sessionBase = |
|
104 new ( ELeave ) CAlfAppSrvSessionBaseImp( ); |
|
105 |
|
106 return KErrNone; |
|
107 |
|
108 } |
|
109 |
|
110 // ----------------------------------------------------------------------------- |
|
111 // CTestPlatClientServer::TestServerClientDrawingAreaL |
|
112 // ----------------------------------------------------------------------------- |
|
113 // |
|
114 TInt CTestPlatClientServer::TestServerClientDrawingAreaL( |
|
115 CStifItemParser& /*aItem*/ ) |
|
116 { |
|
117 |
|
118 // Print to UI |
|
119 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
120 _LIT( KTestServerCAlfAppSrvSessionBaseL, |
|
121 "In TestServerCAlfAppSrvSessionBaseL" ); |
|
122 TestModuleIf().Printf( 0, Ktestplatclientserver, |
|
123 KTestServerCAlfAppSrvSessionBaseL ); |
|
124 // Print to log file |
|
125 iLog->Log( KTestServerCAlfAppSrvSessionBaseL ); |
|
126 |
|
127 |
|
128 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
129 CleanupStack::PushL( appServer ); |
|
130 |
|
131 |
|
132 CAlfAppSrvSessionBase* sessionBase = |
|
133 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
134 |
|
135 sessionBase->ClientDrawingArea(); |
|
136 |
|
137 CleanupStack::PopAndDestroy( appServer ); |
|
138 |
|
139 return KErrNone; |
|
140 |
|
141 } |
|
142 |
|
143 // ----------------------------------------------------------------------------- |
|
144 // CTestPlatClientServer::TestServerFocusGainedLL |
|
145 // ----------------------------------------------------------------------------- |
|
146 // |
|
147 TInt CTestPlatClientServer::TestServerFocusGainedLL( |
|
148 CStifItemParser& /*aItem*/ ) |
|
149 { |
|
150 |
|
151 // Print to UI |
|
152 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
153 _LIT( KTestServerFocusGainedLL, "In TestServerFocusGainedLL" ); |
|
154 TestModuleIf().Printf( 0, Ktestplatclientserver, KTestServerFocusGainedLL ); |
|
155 // Print to log file |
|
156 iLog->Log( KTestServerFocusGainedLL ); |
|
157 |
|
158 |
|
159 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
160 CleanupStack::PushL( appServer ); |
|
161 |
|
162 CAlfAppSrvSessionBase* sessionBase = |
|
163 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
164 |
|
165 sessionBase->FocusGainedL( ETrue ); |
|
166 |
|
167 CleanupStack::PopAndDestroy( appServer ); |
|
168 |
|
169 return KErrNone; |
|
170 |
|
171 } |
|
172 |
|
173 // ----------------------------------------------------------------------------- |
|
174 // CTestPlatClientServer::TestServerFocusLostL |
|
175 // ----------------------------------------------------------------------------- |
|
176 // |
|
177 TInt CTestPlatClientServer::TestServerFocusLostL( |
|
178 CStifItemParser& /*aItem*/ ) |
|
179 { |
|
180 |
|
181 // Print to UI |
|
182 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
183 _LIT( KTestServerFocusGainedLL, "In TestServerFocusGainedLL" ); |
|
184 TestModuleIf().Printf( 0, Ktestplatclientserver, KTestServerFocusGainedLL ); |
|
185 // Print to log file |
|
186 iLog->Log( KTestServerFocusGainedLL ); |
|
187 |
|
188 |
|
189 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
190 CleanupStack::PushL( appServer ); |
|
191 |
|
192 CAlfAppSrvSessionBase* sessionBase = |
|
193 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
194 |
|
195 sessionBase->FocusLostL( ETrue ); |
|
196 |
|
197 CleanupStack::PopAndDestroy( appServer ); |
|
198 |
|
199 return KErrNone; |
|
200 |
|
201 } |
|
202 |
|
203 // ----------------------------------------------------------------------------- |
|
204 // CTestPlatClientServer::TestServerPreferredWindowGroupPositionL |
|
205 // ----------------------------------------------------------------------------- |
|
206 // |
|
207 TInt CTestPlatClientServer::TestServerPreferredWindowGroupPositionL( |
|
208 CStifItemParser& /*aItem*/ ) |
|
209 { |
|
210 |
|
211 // Print to UI |
|
212 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
213 _LIT( KTestServerPreferredWindowGroupPositionL, |
|
214 "In TestServerPreferredWindowGroupPositionL" ); |
|
215 TestModuleIf().Printf( 0, Ktestplatclientserver, |
|
216 KTestServerPreferredWindowGroupPositionL ); |
|
217 // Print to log file |
|
218 iLog->Log( KTestServerPreferredWindowGroupPositionL ); |
|
219 |
|
220 |
|
221 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
222 CleanupStack::PushL( appServer ); |
|
223 |
|
224 CAlfAppSrvSessionBase* sessionBase = |
|
225 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
226 |
|
227 sessionBase->PreferredWindowGroupPosition(); |
|
228 |
|
229 CleanupStack::PopAndDestroy( appServer ); |
|
230 |
|
231 return KErrNone; |
|
232 |
|
233 } |
|
234 |
|
235 // ----------------------------------------------------------------------------- |
|
236 // CTestPlatClientServer::TestServerPreferredRefreshModeL |
|
237 // ----------------------------------------------------------------------------- |
|
238 // |
|
239 TInt CTestPlatClientServer::TestServerPreferredRefreshModeL( |
|
240 CStifItemParser& /*aItem*/ ) |
|
241 { |
|
242 |
|
243 // Print to UI |
|
244 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
245 _LIT( KTestServerPreferredRefreshModeL, |
|
246 "In TestServerPreferredRefreshModeL" ); |
|
247 TestModuleIf().Printf( 0, Ktestplatclientserver, |
|
248 KTestServerPreferredRefreshModeL ); |
|
249 // Print to log file |
|
250 iLog->Log( KTestServerPreferredRefreshModeL ); |
|
251 |
|
252 |
|
253 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
254 CleanupStack::PushL( appServer ); |
|
255 |
|
256 CAlfAppSrvSessionBase* sessionBase = |
|
257 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
258 |
|
259 sessionBase->PreferredRefreshMode(); |
|
260 |
|
261 CleanupStack::PopAndDestroy( appServer ); |
|
262 |
|
263 return KErrNone; |
|
264 |
|
265 } |
|
266 |
|
267 // ----------------------------------------------------------------------------- |
|
268 // CTestPlatClientServer::TestServerAlfServerL |
|
269 // ----------------------------------------------------------------------------- |
|
270 // |
|
271 TInt CTestPlatClientServer::TestServerAlfServerL( |
|
272 CStifItemParser& /*aItem*/ ) |
|
273 { |
|
274 |
|
275 // Print to UI |
|
276 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
277 _LIT( KTestServerAlfServerL, "In TestServerAlfServerL" ); |
|
278 TestModuleIf().Printf( 0, Ktestplatclientserver, KTestServerAlfServerL ); |
|
279 // Print to log file |
|
280 iLog->Log( KTestServerAlfServerL ); |
|
281 |
|
282 |
|
283 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
284 CleanupStack::PushL( appServer ); |
|
285 |
|
286 CAlfAppSrvSessionBase* sessionBase = |
|
287 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
288 |
|
289 sessionBase->AlfServer(); |
|
290 |
|
291 CleanupStack::PopAndDestroy( appServer ); |
|
292 |
|
293 return KErrNone; |
|
294 |
|
295 } |
|
296 |
|
297 // ----------------------------------------------------------------------------- |
|
298 // CTestPlatClientServer::TestServerAlfAppUiL |
|
299 // ----------------------------------------------------------------------------- |
|
300 // |
|
301 TInt CTestPlatClientServer::TestServerAlfAppUiL( |
|
302 CStifItemParser& /*aItem*/ ) |
|
303 { |
|
304 |
|
305 // Print to UI |
|
306 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
307 _LIT( KTestServerAlfServerL, "In TestServerAlfServerL" ); |
|
308 TestModuleIf().Printf( 0, Ktestplatclientserver, KTestServerAlfServerL ); |
|
309 // Print to log file |
|
310 iLog->Log( KTestServerAlfServerL ); |
|
311 |
|
312 |
|
313 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
314 CleanupStack::PushL( appServer ); |
|
315 |
|
316 CAlfAppSrvSessionBase* sessionBase = |
|
317 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
318 |
|
319 sessionBase->AlfAppUi(); |
|
320 |
|
321 CleanupStack::PopAndDestroy( appServer ); |
|
322 |
|
323 return KErrNone; |
|
324 |
|
325 } |
|
326 |
|
327 // ----------------------------------------------------------------------------- |
|
328 // CTestPlatClientServer::TestServerLayoutManagerL |
|
329 // ----------------------------------------------------------------------------- |
|
330 // |
|
331 TInt CTestPlatClientServer::TestServerLayoutManagerL( |
|
332 CStifItemParser& /*aItem*/ ) |
|
333 { |
|
334 |
|
335 // Print to UI |
|
336 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
337 _LIT( KTestServerAlfServerL, "In TestServerAlfServerL" ); |
|
338 TestModuleIf().Printf( 0, Ktestplatclientserver, KTestServerAlfServerL ); |
|
339 // Print to log file |
|
340 iLog->Log( KTestServerAlfServerL ); |
|
341 |
|
342 |
|
343 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
344 CleanupStack::PushL( appServer ); |
|
345 |
|
346 CAlfAppSrvSessionBase* sessionBase = |
|
347 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
348 |
|
349 sessionBase->LayoutManager(); |
|
350 |
|
351 CleanupStack::PopAndDestroy( appServer ); |
|
352 |
|
353 return KErrNone; |
|
354 |
|
355 } |
|
356 |
|
357 // ----------------------------------------------------------------------------- |
|
358 // CTestPlatClientServer::TestServerSharedHuiEnvL |
|
359 // ----------------------------------------------------------------------------- |
|
360 // |
|
361 TInt CTestPlatClientServer::TestServerSharedHuiEnvL( |
|
362 CStifItemParser& /*aItem*/ ) |
|
363 { |
|
364 |
|
365 // Print to UI |
|
366 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
367 _LIT( KTestServerAlfServerL, "In TestServerAlfServerL" ); |
|
368 TestModuleIf().Printf( 0, Ktestplatclientserver, KTestServerAlfServerL ); |
|
369 // Print to log file |
|
370 iLog->Log( KTestServerAlfServerL ); |
|
371 |
|
372 |
|
373 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
374 CleanupStack::PushL( appServer ); |
|
375 |
|
376 CAlfAppSrvSessionBase* sessionBase = |
|
377 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
378 |
|
379 sessionBase->SharedHuiEnv(); |
|
380 |
|
381 CleanupStack::PopAndDestroy( appServer ); |
|
382 |
|
383 return KErrNone; |
|
384 |
|
385 } |
|
386 |
|
387 // ----------------------------------------------------------------------------- |
|
388 // CTestPlatClientServer::TestServerHandleCurrentCommanndAsynchL |
|
389 // ----------------------------------------------------------------------------- |
|
390 // |
|
391 TInt CTestPlatClientServer::TestServerHandleCurrentCommanndAsynchL( |
|
392 CStifItemParser& /*aItem*/ ) |
|
393 { |
|
394 |
|
395 // Print to UI |
|
396 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
397 _LIT( KTestServerHandleCurrentCommanndAsynchLL, |
|
398 "In TestServerHandleCurrentCommanndAsynchL" ); |
|
399 TestModuleIf().Printf( 0, Ktestplatclientserver, |
|
400 KTestServerHandleCurrentCommanndAsynchLL ); |
|
401 // Print to log file |
|
402 iLog->Log( KTestServerHandleCurrentCommanndAsynchLL ); |
|
403 |
|
404 |
|
405 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
406 CleanupStack::PushL( appServer ); |
|
407 |
|
408 CAlfAppSrvSessionBase* sessionBase = |
|
409 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
410 |
|
411 sessionBase->HandleCurrentCommanndAsynch(); |
|
412 |
|
413 CleanupStack::PopAndDestroy( appServer ); |
|
414 |
|
415 return KErrNone; |
|
416 |
|
417 } |
|
418 |
|
419 // ----------------------------------------------------------------------------- |
|
420 // CTestPlatClientServer::TestServerBaseConstructL |
|
421 // ----------------------------------------------------------------------------- |
|
422 // |
|
423 TInt CTestPlatClientServer::TestServerBaseConstructL( |
|
424 CStifItemParser& /*aItem*/ ) |
|
425 { |
|
426 |
|
427 // Print to UI |
|
428 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
429 _LIT( KTestServerBaseConstructL, "In TestServerBaseConstructL" ); |
|
430 TestModuleIf().Printf( 0, Ktestplatclientserver, KTestServerBaseConstructL ); |
|
431 // Print to log file |
|
432 iLog->Log( KTestServerBaseConstructL ); |
|
433 |
|
434 |
|
435 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
436 CleanupStack::PushL( appServer ); |
|
437 |
|
438 CAlfAppSrvSessionBaseImp* sessionBase = |
|
439 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
440 |
|
441 sessionBase->TestBaseConstructL(); |
|
442 |
|
443 CleanupStack::PopAndDestroy( appServer ); |
|
444 |
|
445 return KErrNone; |
|
446 |
|
447 } |
|
448 |
|
449 // ----------------------------------------------------------------------------- |
|
450 // CTestPlatClientServer::TestServerGetInterfaceLL |
|
451 // ----------------------------------------------------------------------------- |
|
452 // |
|
453 TInt CTestPlatClientServer::TestServerGetInterfaceLL( |
|
454 CStifItemParser& /*aItem*/ ) |
|
455 { |
|
456 |
|
457 // Print to UI |
|
458 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
459 _LIT( KTestServerGetInterfaceLL, "In TestServerGetInterfaceLL" ); |
|
460 TestModuleIf().Printf( 0, Ktestplatclientserver, KTestServerGetInterfaceLL ); |
|
461 // Print to log file |
|
462 iLog->Log( KTestServerGetInterfaceLL ); |
|
463 |
|
464 |
|
465 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
466 CleanupStack::PushL( appServer ); |
|
467 |
|
468 CAlfAppSrvSessionBaseImp* sessionBase = |
|
469 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
470 |
|
471 sessionBase->GetInterfaceL( EHuiObjectTypeVisual, 0 ); |
|
472 |
|
473 CleanupStack::PopAndDestroy( appServer ); |
|
474 |
|
475 return KErrNone; |
|
476 |
|
477 } |
|
478 |
|
479 // ----------------------------------------------------------------------------- |
|
480 // CTestPlatClientServer::TestServerGetHandleFromInterfaceL |
|
481 // ----------------------------------------------------------------------------- |
|
482 // |
|
483 TInt CTestPlatClientServer::TestServerGetHandleFromInterfaceL( |
|
484 CStifItemParser& /*aItem*/ ) |
|
485 { |
|
486 |
|
487 // Print to UI |
|
488 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
489 _LIT( KTestServerGetHandleFromInterfaceL, "In TestServerGetHandleFromInterfaceL" ); |
|
490 TestModuleIf().Printf( 0, Ktestplatclientserver, KTestServerGetHandleFromInterfaceL ); |
|
491 // Print to log file |
|
492 iLog->Log( KTestServerGetHandleFromInterfaceL ); |
|
493 |
|
494 |
|
495 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
496 CleanupStack::PushL( appServer ); |
|
497 |
|
498 CAlfAppSrvSessionBaseImp* sessionBase = |
|
499 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
500 TBool temp = ETrue; |
|
501 TAny* temp1 = &temp; |
|
502 sessionBase->GetHandleFromInterface( EHuiObjectTypeVisual, &temp1 ); |
|
503 |
|
504 CleanupStack::PopAndDestroy( appServer ); |
|
505 |
|
506 return KErrNone; |
|
507 |
|
508 } |
|
509 |
|
510 // ----------------------------------------------------------------------------- |
|
511 // CTestPlatClientServer::TestServerCompleteCmdL |
|
512 // ----------------------------------------------------------------------------- |
|
513 // |
|
514 TInt CTestPlatClientServer::TestServerCompleteCmdL( |
|
515 CStifItemParser& /*aItem*/ ) |
|
516 { |
|
517 |
|
518 // Print to UI |
|
519 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
520 _LIT( KTestServerCompleteCmdL, "In TestServerCompleteCmdL" ); |
|
521 TestModuleIf().Printf( 0, Ktestplatclientserver, KTestServerCompleteCmdL ); |
|
522 // Print to log file |
|
523 iLog->Log( KTestServerCompleteCmdL ); |
|
524 |
|
525 |
|
526 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
527 CleanupStack::PushL( appServer ); |
|
528 |
|
529 CAlfAppSrvSessionBaseImp* sessionBase = |
|
530 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
531 |
|
532 sessionBase->CompleteCmd( 0, 0 ); |
|
533 |
|
534 CleanupStack::PopAndDestroy( appServer ); |
|
535 |
|
536 return KErrNone; |
|
537 |
|
538 } |
|
539 |
|
540 // ----------------------------------------------------------------------------- |
|
541 // CTestPlatClientServer::TestServerAlfInterfaceProviderExtensionL |
|
542 // ----------------------------------------------------------------------------- |
|
543 // |
|
544 TInt CTestPlatClientServer::TestServerAlfInterfaceProviderExtensionL( |
|
545 CStifItemParser& /*aItem*/ ) |
|
546 { |
|
547 |
|
548 // Print to UI |
|
549 _LIT( Ktestplatclientserver, "testplatclientserver" ); |
|
550 _LIT( KTestServerAlfInterfaceProviderExtensionL, "In TestServerAlfInterfaceProviderExtensionL" ); |
|
551 TestModuleIf().Printf( 0, Ktestplatclientserver, KTestServerAlfInterfaceProviderExtensionL ); |
|
552 // Print to log file |
|
553 iLog->Log( KTestServerAlfInterfaceProviderExtensionL ); |
|
554 |
|
555 |
|
556 CAlfAppServer* appServer = CAlfAppServer::NewAppServerL(); |
|
557 CleanupStack::PushL( appServer ); |
|
558 |
|
559 CAlfAppSrvSessionBaseImp* sessionBase = |
|
560 new ( ELeave ) CAlfAppSrvSessionBaseImp( appServer ); |
|
561 |
|
562 TUid tempUid = { 0 }; |
|
563 TBool temp = ETrue; |
|
564 TAny* temp1 = &temp; |
|
565 sessionBase->AlfInterfaceProviderExtension( tempUid, &temp1 ); |
|
566 |
|
567 CleanupStack::PopAndDestroy( appServer ); |
|
568 |
|
569 return KErrNone; |
|
570 |
|
571 } |
|
572 |
|
573 // [End of File] |