equal
deleted
inserted
replaced
3373 if ( source ) |
3373 if ( source ) |
3374 { |
3374 { |
3375 playlist = source->PlaylistL(); |
3375 playlist = source->PlaylistL(); |
3376 if ( playlist ) |
3376 if ( playlist ) |
3377 { |
3377 { |
3378 iPlaybackUtility->CommandL(EPbCmdPreserveState); |
|
3379 CleanupStack::PushL( playlist ); |
3378 CleanupStack::PushL( playlist ); |
|
3379 iPlaybackUtility->CommandL(EPbCmdPreserveState); |
3380 } |
3380 } |
3381 } |
3381 } |
3382 |
3382 |
3383 switch (aCommand) |
3383 switch (aCommand) |
3384 { |
3384 { |
3865 if ( s ) |
3865 if ( s ) |
3866 { |
3866 { |
3867 CMPXCollectionPlaylist* playlist = s->PlaylistL(); |
3867 CMPXCollectionPlaylist* playlist = s->PlaylistL(); |
3868 if ( playlist ) |
3868 if ( playlist ) |
3869 { |
3869 { |
|
3870 CleanupStack::PushL( playlist ); |
3870 if ( playlist->Count() > 0 ) |
3871 if ( playlist->Count() > 0 ) |
3871 { |
3872 { |
3872 TMPXPlaybackState state = iPlaybackUtility->StateL(); |
3873 TMPXPlaybackState state = iPlaybackUtility->StateL(); |
3873 |
3874 |
3874 if ((state == EPbStateInitialising) ||(state == EPbStatePlaying)) |
3875 if ((state == EPbStateInitialising) ||(state == EPbStatePlaying)) |
3878 else |
3879 else |
3879 { |
3880 { |
3880 iCommonUiHelper->SetMiddleSoftKeyLabelL( *cba, R_QTN_MSK_PLAY, EAknSoftkeyForwardKeyEvent); |
3881 iCommonUiHelper->SetMiddleSoftKeyLabelL( *cba, R_QTN_MSK_PLAY, EAknSoftkeyForwardKeyEvent); |
3881 } |
3882 } |
3882 } |
3883 } |
3883 delete playlist; |
3884 CleanupStack::PopAndDestroy( playlist ); |
3884 } |
3885 } |
3885 } |
3886 } |
3886 MPX_DEBUG1("CMPXCommonPlaybackViewImp::UpdateMiddleSoftKeyDisplayL - new label displayed"); |
3887 MPX_DEBUG1("CMPXCommonPlaybackViewImp::UpdateMiddleSoftKeyDisplayL - new label displayed"); |
3887 |
3888 |
3888 cba->DrawDeferred(); |
3889 cba->DrawDeferred(); |
3914 if ( s ) |
3915 if ( s ) |
3915 { |
3916 { |
3916 CMPXCollectionPlaylist* playlist = s->PlaylistL(); |
3917 CMPXCollectionPlaylist* playlist = s->PlaylistL(); |
3917 if ( playlist ) |
3918 if ( playlist ) |
3918 { |
3919 { |
|
3920 CleanupStack::PushL( playlist ); |
3919 if ( playlist->Count() > 0 ) |
3921 if ( playlist->Count() > 0 ) |
3920 { |
3922 { |
3921 if( pausePlayControl ) |
3923 if( pausePlayControl ) |
3922 { |
3924 { |
3923 TMPXPlaybackState state = iPlaybackUtility->StateL(); |
3925 TMPXPlaybackState state = iPlaybackUtility->StateL(); |
3938 fwControl->SetDimmed( EFalse ); |
3940 fwControl->SetDimmed( EFalse ); |
3939 fwControl->DrawNow(); |
3941 fwControl->DrawNow(); |
3940 } |
3942 } |
3941 } |
3943 } |
3942 |
3944 |
3943 delete playlist; |
3945 CleanupStack::PopAndDestroy( playlist ); |
3944 } |
3946 } |
3945 else |
3947 else |
3946 { |
3948 { |
3947 if( pausePlayControl ) |
3949 if( pausePlayControl ) |
3948 { |
3950 { |