equal
deleted
inserted
replaced
79 iIsolatedCollectionData( 0 ), |
79 iIsolatedCollectionData( 0 ), |
80 iFirstIncrementalOpen( EFalse ), |
80 iFirstIncrementalOpen( EFalse ), |
81 iUserPlaylists( 0 ), |
81 iUserPlaylists( 0 ), |
82 iRepeatFeature( ETrue ), |
82 iRepeatFeature( ETrue ), |
83 iShuffleFeature( ETrue ), |
83 iShuffleFeature( ETrue ), |
84 iReopen( EFalse ) |
84 iReopen( EFalse ), |
|
85 iShuffleAll( EFalse ) |
85 { |
86 { |
86 TX_LOG |
87 TX_LOG |
87 } |
88 } |
88 |
89 |
89 /*! |
90 /*! |
363 return iCollectionData; |
364 return iCollectionData; |
364 } |
365 } |
365 |
366 |
366 /*! |
367 /*! |
367 \internal |
368 \internal |
|
369 */ |
|
370 void MpMpxCollectionFrameworkWrapperPrivate::openShuffleAllSongsPath() |
|
371 { |
|
372 TX_ENTRY |
|
373 TRAPD( err, DoOpenCollectionL(ECollectionContextAllSongs) ); |
|
374 if ( err != KErrNone ) { |
|
375 TX_LOG_ARGS( "Error: " << err << "; should never get here." ); |
|
376 } |
|
377 else { |
|
378 iShuffleAll = ETrue; |
|
379 } |
|
380 TX_EXIT |
|
381 } |
|
382 |
|
383 /*! |
|
384 \internal |
368 Result of open or re-open operation to the Collection Framework. |
385 Result of open or re-open operation to the Collection Framework. |
369 */ |
386 */ |
370 void MpMpxCollectionFrameworkWrapperPrivate::HandleOpenL( |
387 void MpMpxCollectionFrameworkWrapperPrivate::HandleOpenL( |
371 const CMPXMedia& aEntries, |
388 const CMPXMedia& aEntries, |
372 TInt aIndex, |
389 TInt aIndex, |
376 Q_UNUSED( aIndex ); |
393 Q_UNUSED( aIndex ); |
377 TX_UNUSED( aComplete ); |
394 TX_UNUSED( aComplete ); |
378 TX_ENTRY_ARGS( "aError=" << aError << "aComplete=" << aComplete ); |
395 TX_ENTRY_ARGS( "aError=" << aError << "aComplete=" << aComplete ); |
379 if ( aError == KErrNone ) { |
396 if ( aError == KErrNone ) { |
380 if ( iFirstIncrementalOpen ) { |
397 if ( iFirstIncrementalOpen ) { |
|
398 iFirstIncrementalOpen = EFalse; |
|
399 if( iShuffleAll ) { |
|
400 iShuffleAll = EFalse; |
|
401 TX_ENTRY_ARGS( "Path is ready" ); |
|
402 DoPlayAllSongsPlaylistL(); |
|
403 |
|
404 } |
381 iCollectionData->setMpxMedia( aEntries, iReopen ); |
405 iCollectionData->setMpxMedia( aEntries, iReopen ); |
382 iFirstIncrementalOpen = EFalse; |
|
383 iReopen = EFalse; |
406 iReopen = EFalse; |
384 } |
407 } |
385 } |
408 } |
386 else { |
409 else { |
387 TX_LOG_ARGS( "Error: " << aError << "; should never get here." ); |
410 TX_LOG_ARGS( "Error: " << aError << "; should never get here." ); |
1251 iPlaybackUtility->SetL( EPbPropertyRepeatMode, MpSettingsManager::repeat() ? EPbRepeatAll : EPbRepeatOff ); |
1274 iPlaybackUtility->SetL( EPbPropertyRepeatMode, MpSettingsManager::repeat() ? EPbRepeatAll : EPbRepeatOff ); |
1252 } |
1275 } |
1253 } |
1276 } |
1254 } |
1277 } |
1255 |
1278 |
|
1279 /*! |
|
1280 \internal |
|
1281 */ |
|
1282 void MpMpxCollectionFrameworkWrapperPrivate::DoPlayAllSongsPlaylistL() |
|
1283 { |
|
1284 TX_ENTRY |
|
1285 CMPXCollectionPath* cpath = iCollectionUtility->Collection().PathL(); |
|
1286 CleanupStack::PushL( cpath ); |
|
1287 CMPXCollectionPlaylist* playList = CMPXCollectionPlaylist::NewL( *cpath ); |
|
1288 CleanupStack::PushL( playList ); |
|
1289 playList->SetShuffleL( true, false ); |
|
1290 MpSettingsManager::setShuffle( true ); |
|
1291 createPlaybackUtilityL(); |
|
1292 iPlaybackUtility->InitL( *playList, ETrue ); |
|
1293 CleanupStack::PopAndDestroy( playList ); |
|
1294 CleanupStack::PopAndDestroy( cpath ); |
|
1295 TX_EXIT |
|
1296 } |
|
1297 |
|
1298 |
1256 //EOF |
1299 //EOF |