|
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: playlistenginetest block implementation for STIF Test Framework TestScripter. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // [INCLUDE FILES] - do not remove |
|
21 #include <e32svr.h> |
|
22 #include <StifParser.h> |
|
23 #include <Stiftestinterface.h> |
|
24 #include "playlistenginetest.h" |
|
25 |
|
26 |
|
27 // ============================ MEMBER FUNCTIONS =============================== |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // Cplaylistenginetest::Delete |
|
31 // Delete here all resources allocated and opened from test methods. |
|
32 // Called from destructor. |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 void Cplaylistenginetest::Delete() |
|
36 { |
|
37 |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // Cplaylistenginetest::RunMethodL |
|
42 // Run specified method. Contains also table of test mothods and their names. |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 TInt Cplaylistenginetest::RunMethodL( |
|
46 CStifItemParser& aItem ) |
|
47 { |
|
48 |
|
49 static TStifFunctionInfo const KFunctions[] = |
|
50 { |
|
51 // Copy this line for every implemented function. |
|
52 // First string is the function name used in TestScripter script file. |
|
53 // Second is the actual implementation member function. |
|
54 ENTRY( "Example", Cplaylistenginetest::ExampleL ), |
|
55 |
|
56 //test functions for mpxplaylistengine.h |
|
57 ENTRY( "CMPXPlaylistEngineCreate", Cplaylistenginetest::CMPXPlaylistEngineCreate ),//Pass Debug |
|
58 ENTRY( "CMPXPlaylistEngineDestructor", Cplaylistenginetest::CMPXPlaylistEngineDestructor ),//Pass Debug |
|
59 ENTRY( "CMPXPlaylistEnginePlaylistPluginHandler", Cplaylistenginetest::CMPXPlaylistEnginePlaylistPluginHandler ),//Pass Debug |
|
60 ENTRY( "CMPXPlaylistEngineIsPlaylistL", Cplaylistenginetest::CMPXPlaylistEngineIsPlaylistL ),//Pass Debug |
|
61 ENTRY( "CMPXPlaylistEngineInternalizePlaylistL", Cplaylistenginetest::CMPXPlaylistEngineInternalizePlaylistL ),//Pass Debug |
|
62 ENTRY( "CMPXPlaylistEngineInternalizePlaylistLRFile", Cplaylistenginetest::CMPXPlaylistEngineInternalizePlaylistLRFile ),//Pass Debug |
|
63 ENTRY( "CMPXPlaylistEngineExternalizePlaylistL", Cplaylistenginetest::CMPXPlaylistEngineExternalizePlaylistL ),//Pass Debug |
|
64 ENTRY( "CMPXPlaylistEngineCancelRequests", Cplaylistenginetest::CMPXPlaylistEngineCancelRequests ),//Pass Debug |
|
65 |
|
66 //test functions for mpxplaylistpluginhandler.h |
|
67 ENTRY( "CMPXPlaylistPluginHandlerCreate", Cplaylistenginetest::CMPXPlaylistPluginHandlerCreate ),//Pass Debug |
|
68 ENTRY( "CMPXPlaylistPluginHandlerDestructor", Cplaylistenginetest::CMPXPlaylistPluginHandlerDestructor ),//Pass Debug |
|
69 /*ENTRY( "CMPXPlaylistPluginHandlerPluginUid", Cplaylistenginetest::CMPXPlaylistPluginHandlerPluginUid ),//Pass Debug |
|
70 ENTRY( "CMPXPlaylistPluginHandlerPluginType", Cplaylistenginetest::CMPXPlaylistPluginHandlerPluginUid ),//Pass Debug |
|
71 ENTRY( "CMPXPlaylistPluginHandlerPluginName", Cplaylistenginetest::CMPXPlaylistPluginHandlerPluginUid ),//Pass Debug |
|
72 ENTRY( "CMPXPlaylistPluginHandlerPluginFound", Cplaylistenginetest::CMPXPlaylistPluginHandlerPluginUid ),//Pass Debug |
|
73 ENTRY( "CMPXPlaylistPluginHandlerPlugin", Cplaylistenginetest::CMPXPlaylistPluginHandlerPlugin ),//Pass Debug |
|
74 */ ENTRY( "SelectPlaylistPluginLByUri", Cplaylistenginetest::SelectPlaylistPluginLByUri ),//Pass Debug |
|
75 ENTRY( "SelectPlaylistPluginLByFile", Cplaylistenginetest::SelectPlaylistPluginLByFile ),//Pass Debug |
|
76 ENTRY( "SelectPlaylistPluginLByType", Cplaylistenginetest::SelectPlaylistPluginLByType ),//Pass Debug |
|
77 ENTRY( "SelectPlaylistPluginLByName", Cplaylistenginetest::SelectPlaylistPluginLByName ),//Pass Debug |
|
78 ENTRY( "SelectPlaylistPluginLByUid", Cplaylistenginetest::SelectPlaylistPluginLByUid ),//Pass Debug |
|
79 |
|
80 |
|
81 |
|
82 //ADD NEW ENTRY HERE |
|
83 // [test cases entries] - Do not remove |
|
84 |
|
85 }; |
|
86 |
|
87 const TInt count = sizeof( KFunctions ) / |
|
88 sizeof( TStifFunctionInfo ); |
|
89 |
|
90 return RunInternalL( KFunctions, count, aItem ); |
|
91 |
|
92 } |
|
93 |
|
94 // ----------------------------------------------------------------------------- |
|
95 // Cplaylistenginetest::ExampleL |
|
96 // Example test method function. |
|
97 // (other items were commented in a header). |
|
98 // ----------------------------------------------------------------------------- |
|
99 // |
|
100 TInt Cplaylistenginetest::ExampleL( CStifItemParser& aItem ) |
|
101 { |
|
102 |
|
103 // Print to UI |
|
104 _LIT( Kplaylistenginetest, "playlistenginetest" ); |
|
105 _LIT( KExample, "In Example" ); |
|
106 TestModuleIf().Printf( 0, Kplaylistenginetest, KExample ); |
|
107 // Print to log file |
|
108 iLog->Log( KExample ); |
|
109 |
|
110 TInt i = 0; |
|
111 TPtrC string; |
|
112 _LIT( KParam, "Param[%i]: %S" ); |
|
113 while ( aItem.GetNextString ( string ) == KErrNone ) |
|
114 { |
|
115 TestModuleIf().Printf( i, Kplaylistenginetest, |
|
116 KParam, i, &string ); |
|
117 i++; |
|
118 } |
|
119 |
|
120 return KErrNone; |
|
121 |
|
122 } |
|
123 |
|
124 // --------------------------------------------------------------------------- |
|
125 // Cplaylistenginetest::CMPXPlaylistEngineCreate |
|
126 // ?implementation_description |
|
127 // (other items were commented in a header). |
|
128 // --------------------------------------------------------------------------- |
|
129 // |
|
130 TInt Cplaylistenginetest::CMPXPlaylistEngineCreate( CStifItemParser& /*aItem*/ ) |
|
131 { |
|
132 TInt err=KErrNone; |
|
133 MMPXPlaylistEngineObserver* aObserver(NULL); |
|
134 iLog->Log(_L("Cplaylistenginetest::CMPXPlaylistEngineCreate")); |
|
135 |
|
136 TRAP(err, iPlaylistEngine = CMPXPlaylistEngine::NewL(*aObserver)); |
|
137 |
|
138 iLog->Log(_L("Cplaylistenginetest::NewL returned: %d"), err); |
|
139 return err; |
|
140 } |
|
141 |
|
142 |
|
143 // --------------------------------------------------------------------------- |
|
144 // Cplaylistenginetest::CMPXPlaylistEngineDestructor |
|
145 // ?implementation_description |
|
146 // (other items were commented in a header). |
|
147 // --------------------------------------------------------------------------- |
|
148 // |
|
149 TInt Cplaylistenginetest::CMPXPlaylistEngineDestructor( CStifItemParser& /*aItem*/ ) |
|
150 { |
|
151 TInt err=KErrNone; |
|
152 MMPXPlaylistEngineObserver* aObserver(NULL); |
|
153 iLog->Log(_L("Cplaylistenginetest::CMPXPlaylistEngineDestructor")); |
|
154 if(iPlaylistEngine==NULL) |
|
155 { |
|
156 TRAP( err , iPlaylistEngine = CMPXPlaylistEngine::NewL(*aObserver)); |
|
157 } |
|
158 delete iPlaylistEngine; |
|
159 iPlaylistEngine=NULL; |
|
160 iLog->Log(_L("Cplaylistenginetest::Destructor end. ")); |
|
161 return err; |
|
162 } |
|
163 |
|
164 // --------------------------------------------------------------------------- |
|
165 // Cplaylistenginetest::CMPXPlaylistEnginePlaylistPluginHandler |
|
166 // ?implementation_description |
|
167 // (other items were commented in a header). |
|
168 // --------------------------------------------------------------------------- |
|
169 // |
|
170 TInt Cplaylistenginetest::CMPXPlaylistEnginePlaylistPluginHandler( CStifItemParser& /*aItem*/ ) |
|
171 { |
|
172 TInt err=KErrNone; |
|
173 iLog->Log(_L("Cplaylistenginetest::CMPXPlaylistEnginePlaylistPluginHandler")); |
|
174 |
|
175 iPlaylistEngine->PlaylistPluginHandler(); |
|
176 |
|
177 iLog->Log(_L("Cplaylistenginetest::PlaylistPluginHandler end.")); |
|
178 return err; |
|
179 } |
|
180 |
|
181 // --------------------------------------------------------------------------- |
|
182 // Cplaylistenginetest::CMPXPlaylistEngineIsPlaylistL |
|
183 // ?implementation_description |
|
184 // (other items were commented in a header). |
|
185 // --------------------------------------------------------------------------- |
|
186 // |
|
187 TInt Cplaylistenginetest::CMPXPlaylistEngineIsPlaylistL( CStifItemParser& aItem ) |
|
188 { |
|
189 TInt err=KErrNone; |
|
190 TPtrC string; |
|
191 iLog->Log(_L("Cplaylistenginetest::CMPXPlaylistEngineIsPlaylistL")); |
|
192 |
|
193 while ( aItem.GetNextString( string ) == KErrNone ) |
|
194 { |
|
195 TBuf<120> KUri; |
|
196 KUri.Append(Kplaylistenginetest_testPath); |
|
197 KUri.Append(string); |
|
198 |
|
199 TInt is=iPlaylistEngine->IsPlaylistL(KUri); |
|
200 |
|
201 iLog->Log(_L("Cplaylistenginetest::IsPlaylistL returned: %d"), is); |
|
202 } |
|
203 return err; |
|
204 } |
|
205 |
|
206 // --------------------------------------------------------------------------- |
|
207 // Cplaylistenginetest::CMPXPlaylistEngineInternalizePlaylistL |
|
208 // ?implementation_description |
|
209 // (other items were commented in a header). |
|
210 // --------------------------------------------------------------------------- |
|
211 // |
|
212 TInt Cplaylistenginetest::CMPXPlaylistEngineInternalizePlaylistL( CStifItemParser& aItem ) |
|
213 { |
|
214 TInt err=KErrNone; |
|
215 TPtrC string; |
|
216 iLog->Log(_L("Cplaylistenginetest::CMPXPlaylistEngineIsPlaylistL")); |
|
217 |
|
218 while ( aItem.GetNextString( string ) == KErrNone ) |
|
219 { |
|
220 TBuf<120> KUri; |
|
221 KUri.Append(Kplaylistenginetest_testPath); |
|
222 KUri.Append(string); |
|
223 |
|
224 TRAP(err,iPlaylistEngine->InternalizePlaylistL(KUri)); |
|
225 |
|
226 iLog->Log(_L("Cplaylistenginetest::IsPlaylistL returned: %d"), err); |
|
227 } |
|
228 return err; |
|
229 } |
|
230 |
|
231 |
|
232 |
|
233 |
|
234 // --------------------------------------------------------------------------- |
|
235 // Cplaylistenginetest::CMPXPlaylistEngineInternalizePlaylistLRFile |
|
236 // ?implementation_description |
|
237 // (other items were commented in a header). |
|
238 // --------------------------------------------------------------------------- |
|
239 // |
|
240 TInt Cplaylistenginetest::CMPXPlaylistEngineInternalizePlaylistLRFile( CStifItemParser& aItem ) |
|
241 { |
|
242 TInt err=KErrNone; |
|
243 iLog->Log(_L("Cplaylistenginetest::CMPXPlaylistEngineInternalizePlaylistLRFile")); |
|
244 TPtrC string; |
|
245 while ( aItem.GetNextString( string ) == KErrNone ) |
|
246 { |
|
247 TBuf<120> KPlaylistDir; |
|
248 KPlaylistDir.Append(Kplaylistenginetest_testPath); |
|
249 KPlaylistDir.Append(string); |
|
250 |
|
251 RFs fs; |
|
252 User::LeaveIfError(fs.Connect()); |
|
253 CDir* entryList(NULL); |
|
254 // User::LeaveIfError( |
|
255 // fs.GetDir(KPlaylistDir, KEntryAttNormal, KEntryAttNormal, entryList)); |
|
256 User::LeaveIfError( |
|
257 fs.GetDir(KPlaylistDir, KEntryAttMaskSupported, ESortByName|EDirsFirst, entryList)); |
|
258 CleanupStack::PushL(entryList); |
|
259 RFile playlistFile; |
|
260 User::LeaveIfError(playlistFile.Open(fs, KPlaylistDir, EFileRead )); |
|
261 iPlaylistEngine->PlaylistPluginHandler().SelectPlaylistPluginL(playlistFile); |
|
262 TRAP(err, iPlaylistEngine->InternalizePlaylistL(playlistFile)); |
|
263 CleanupStack::PopAndDestroy(entryList); |
|
264 playlistFile.Close(); |
|
265 fs.Close(); |
|
266 |
|
267 } |
|
268 iLog->Log(_L("Cplaylistenginetest::InternalizePlaylistL returned: %d"), err); |
|
269 |
|
270 return err; |
|
271 } |
|
272 |
|
273 // --------------------------------------------------------------------------- |
|
274 // Cplaylistenginetest::CMPXPlaylistEngineExternalizePlaylistL |
|
275 // ?implementation_description |
|
276 // (other items were commented in a header). |
|
277 // --------------------------------------------------------------------------- |
|
278 // |
|
279 TInt Cplaylistenginetest::CMPXPlaylistEngineExternalizePlaylistL(CStifItemParser& aItem) |
|
280 { |
|
281 iLog->Log(_L("Cplaylistenginetest::CMPXPlaylistEngineExternalizePlaylistL testing ExternalizeL begin")); |
|
282 TInt err=KErrNone; |
|
283 TPtrC string; |
|
284 |
|
285 while ( aItem.GetNextString( string ) == KErrNone ) |
|
286 { |
|
287 TBuf<120> KUri; |
|
288 KUri.Append(Kplaylistenginetest_testPath); |
|
289 CMPXMedia* playlist = CreatePlaylistL(ETitle|EType|ECategory|EArrayContents|EArrayCount|EUri ); |
|
290 CleanupStack::PushL(playlist); |
|
291 iPlaylistEngine->PlaylistPluginHandler().SelectPlaylistPluginL( |
|
292 EMPXPlaylistTypeM3U); |
|
293 TRAP(err, iPlaylistEngine->ExternalizePlaylistL(*playlist, KUri); ); |
|
294 CleanupStack::PopAndDestroy(playlist); |
|
295 } |
|
296 iLog->Log(_L("Cplaylistenginetest::ExternalizePlaylistL returned: %d"), err); |
|
297 return err; |
|
298 } |
|
299 |
|
300 // --------------------------------------------------------------------------- |
|
301 // Create playlist |
|
302 // --------------------------------------------------------------------------- |
|
303 // |
|
304 CMPXMedia* Cplaylistenginetest::CreatePlaylistL(const TUint& aAttributes) |
|
305 { |
|
306 //////////////////////////////////////////////////////////////////////////// |
|
307 // create playlist |
|
308 //////////////////////////////////////////////////////////////////////////// |
|
309 CMPXMedia* playlist = CMPXMedia::NewL(); |
|
310 CleanupStack::PushL(playlist); |
|
311 |
|
312 if (aAttributes & ETitle) |
|
313 { |
|
314 // set playlist title |
|
315 playlist->SetTextValueL(KMPXMediaGeneralTitle, _L("Playlist")); |
|
316 } |
|
317 |
|
318 if (aAttributes & EType) |
|
319 { |
|
320 // set type |
|
321 playlist->SetTObjectValueL(KMPXMediaGeneralType, EMPXItem); |
|
322 } |
|
323 |
|
324 if (aAttributes & ECategory) |
|
325 { |
|
326 // set category |
|
327 playlist->SetTObjectValueL(KMPXMediaGeneralCategory, EMPXPlaylist); |
|
328 } |
|
329 |
|
330 if (aAttributes & EArrayContents) |
|
331 { |
|
332 // set medias |
|
333 CMPXMediaArray* medias = CMPXMediaArray::NewL(); |
|
334 CleanupStack::PushL(medias); |
|
335 playlist->SetCObjectValueL(KMPXMediaArrayContents, medias); |
|
336 CleanupStack::PopAndDestroy(medias); |
|
337 } |
|
338 |
|
339 if (aAttributes & EArrayCount) |
|
340 { |
|
341 /// set media count |
|
342 playlist->SetTObjectValueL(KMPXMediaArrayCount, 0); |
|
343 } |
|
344 if (aAttributes & EUri) |
|
345 { |
|
346 /// set media uri |
|
347 playlist->SetTextValueL(KMPXMediaGeneralUri,KTestItemPath2); |
|
348 } |
|
349 |
|
350 CleanupStack::Pop(playlist); |
|
351 |
|
352 return playlist; |
|
353 } |
|
354 |
|
355 // --------------------------------------------------------------------------- |
|
356 // Cplaylistenginetest::CMPXPlaylistEngineCancelRequests |
|
357 // ?implementation_description |
|
358 // (other items were commented in a header). |
|
359 // --------------------------------------------------------------------------- |
|
360 // |
|
361 TInt Cplaylistenginetest::CMPXPlaylistEngineCancelRequests( CStifItemParser& /*aItem*/ ) |
|
362 { |
|
363 TInt err=KErrNone; |
|
364 iLog->Log(_L("Cplaylistenginetest::CMPXPlaylistEngineCancelRequests begin:")); |
|
365 |
|
366 iPlaylistEngine->CancelRequests(); |
|
367 |
|
368 iLog->Log(_L("Cplaylistenginetest::CancelRequests end.")); |
|
369 return err; |
|
370 } |
|
371 |
|
372 // --------------------------------------------------------------------------- |
|
373 // Cplaylistenginetest::CMPXPlaylistPluginHandlerCreate |
|
374 // ?implementation_description |
|
375 // (other items were commented in a header). |
|
376 // --------------------------------------------------------------------------- |
|
377 // |
|
378 TInt Cplaylistenginetest::CMPXPlaylistPluginHandlerCreate( CStifItemParser& /*aItem*/ ) |
|
379 { |
|
380 TInt err=KErrNone; |
|
381 iLog->Log(_L("Cplaylistenginetest::CMPXPlaylistPluginHandlerCreate begin")); |
|
382 |
|
383 RFs fs=RFs(); |
|
384 User::LeaveIfError(fs.Connect()); |
|
385 CArrayFix<CCnvCharacterSetConverter::SCharacterSet>* iTopCharacterSet; |
|
386 CArrayFix<CCnvCharacterSetConverter::SCharacterSet>* iAvailableCharacterSet; |
|
387 TRAP( err , iAvailableCharacterSet = new (ELeave)CArrayFixFlat<CCnvCharacterSetConverter::SCharacterSet>(12)); |
|
388 TRAP( err , iTopCharacterSet = new (ELeave)CArrayFixFlat<CCnvCharacterSetConverter::SCharacterSet>(12)); |
|
389 |
|
390 TRAP( err , iPlaylistPluginHandler=CMPXPlaylistPluginHandler::NewL(*this,*this,fs,*iTopCharacterSet,*iAvailableCharacterSet)); |
|
391 |
|
392 fs.Close(); |
|
393 iLog->Log(_L("Cplaylistenginetest::NewL returned: %d"), err); |
|
394 return err; |
|
395 } |
|
396 |
|
397 // --------------------------------------------------------------------------- |
|
398 // Cplaylistenginetest::CMPXPlaylistPluginHandlerDestructor |
|
399 // ?implementation_description |
|
400 // (other items were commented in a header). |
|
401 // --------------------------------------------------------------------------- |
|
402 // |
|
403 TInt Cplaylistenginetest::CMPXPlaylistPluginHandlerDestructor( CStifItemParser& /*aItem*/ ) |
|
404 { |
|
405 TInt err=KErrNone; |
|
406 if ( iPlaylistPluginHandler != NULL ) |
|
407 { |
|
408 delete iPlaylistPluginHandler; |
|
409 iPlaylistPluginHandler=NULL; |
|
410 } |
|
411 |
|
412 iLog->Log(_L("Cplaylistenginetest::Destructor end.")); |
|
413 return err; |
|
414 } |
|
415 |
|
416 |
|
417 // --------------------------------------------------------------------------- |
|
418 // Cplaylistenginetest::SelectPlaylistPluginLByUri |
|
419 // ?implementation_description |
|
420 // (other items were commented in a header). |
|
421 // --------------------------------------------------------------------------- |
|
422 // |
|
423 TInt Cplaylistenginetest::SelectPlaylistPluginLByUri(CStifItemParser& aItem) |
|
424 { |
|
425 iLog->Log(_L("Cplaylistenginetest::SelectPlaylistPluginLByUri begin")); |
|
426 TInt err=KErrNone; |
|
427 TPtrC string; |
|
428 |
|
429 if( aItem.GetNextString( string ) == KErrNone ) |
|
430 { |
|
431 TBuf<120> KFrom; |
|
432 KFrom.Append(Kplaylistenginetest_testPath); |
|
433 KFrom.Append(string); |
|
434 |
|
435 _LIT8(DataType,"playlist/mpegurl"); |
|
436 TRAP( err , iPlaylistEngine->PlaylistPluginHandler().SelectPlaylistPluginL(KFrom,KNullDesC8)); |
|
437 |
|
438 iLog->Log(_L("Cplaylistenginetest::SelectPlaylistPluginLByUri returned: %d"), err); |
|
439 } |
|
440 |
|
441 return err; |
|
442 } |
|
443 |
|
444 // --------------------------------------------------------------------------- |
|
445 // Cplaylistenginetest::SelectPlaylistPluginLByFile |
|
446 // ?implementation_description |
|
447 // (other items were commented in a header). |
|
448 // --------------------------------------------------------------------------- |
|
449 // |
|
450 TInt Cplaylistenginetest::SelectPlaylistPluginLByFile(CStifItemParser& aItem) |
|
451 { |
|
452 iLog->Log(_L("Cplaylistenginetest::SelectPlaylistPluginLByFile begin")); |
|
453 TInt err=KErrNone; |
|
454 TPtrC string; |
|
455 if( aItem.GetNextString( string ) == KErrNone ) |
|
456 { |
|
457 TBuf<120> KFrom; |
|
458 KFrom.Append(Kplaylistenginetest_testPath); |
|
459 KFrom.Append(string); |
|
460 |
|
461 RFs fs=RFs(); |
|
462 RFile file; |
|
463 User::LeaveIfError(fs.Connect()); |
|
464 file.Open(fs, KFrom, EFileShareAny); |
|
465 |
|
466 |
|
467 TRAP( err , iPlaylistEngine->PlaylistPluginHandler().SelectPlaylistPluginL(file)); |
|
468 |
|
469 file.Close(); |
|
470 fs.Close(); |
|
471 iLog->Log(_L("Cplaylistenginetest::SelectPlaylistPluginLByFile returned: %d"), err); |
|
472 } |
|
473 return err; |
|
474 } |
|
475 |
|
476 // --------------------------------------------------------------------------- |
|
477 // Cplaylistenginetest::SelectPlaylistPluginLByType |
|
478 // ?implementation_description |
|
479 // (other items were commented in a header). |
|
480 // --------------------------------------------------------------------------- |
|
481 // |
|
482 TInt Cplaylistenginetest::SelectPlaylistPluginLByType(CStifItemParser& /*aItem*/) |
|
483 { |
|
484 iLog->Log(_L("Cplaylistenginetest::SelectPlaylistPluginLByType begin")); |
|
485 |
|
486 TInt err=KErrNone; |
|
487 |
|
488 TRAP( err , iPlaylistEngine->PlaylistPluginHandler().SelectPlaylistPluginL(EMPXPlaylistTypeM3U)); |
|
489 |
|
490 iLog->Log(_L("Cplaylistenginetest::SelectPlaylistPluginLByType returned: %d"), err); |
|
491 return err; |
|
492 } |
|
493 |
|
494 // --------------------------------------------------------------------------- |
|
495 // Cplaylistenginetest::SelectPlaylistPluginLByName |
|
496 // ?implementation_description |
|
497 // (other items were commented in a header). |
|
498 // --------------------------------------------------------------------------- |
|
499 // |
|
500 TInt Cplaylistenginetest::SelectPlaylistPluginLByName(CStifItemParser& /*aItem*/) |
|
501 { |
|
502 iLog->Log(_L("Cplaylistenginetest::SelectPlaylistPluginLByName begin")); |
|
503 TInt err=KErrNone; |
|
504 |
|
505 TRAP( err , iPlaylistEngine->PlaylistPluginHandler().SelectPlaylistPluginL(_L("m3u playlist"))); |
|
506 |
|
507 iLog->Log(_L("Cplaylistenginetest::SelectPlaylistPluginLByName returned: %d"), err); |
|
508 return err; |
|
509 } |
|
510 |
|
511 // --------------------------------------------------------------------------- |
|
512 // Cplaylistenginetest::SelectPlaylistPluginLByUid |
|
513 // ?implementation_description |
|
514 // (other items were commented in a header). |
|
515 // --------------------------------------------------------------------------- |
|
516 // |
|
517 TInt Cplaylistenginetest::SelectPlaylistPluginLByUid(CStifItemParser& /*aItem*/) |
|
518 { |
|
519 iLog->Log(_L("Cplaylistenginetest::SelectPlaylistPluginLByUid begin")); |
|
520 TInt err=KErrNone; |
|
521 TRAP( err , iPlaylistEngine->PlaylistPluginHandler().SelectPlaylistPluginL(TUid::Uid(0x101FFC21))); |
|
522 |
|
523 iLog->Log(_L("Cplaylistenginetest::SelectPlaylistPluginLByUid returned: %d"), err); |
|
524 return err; |
|
525 } |
|
526 |
|
527 |
|
528 |
|
529 |
|
530 |
|
531 // [End of File] - Do not remove |