equal
deleted
inserted
replaced
202 // Get an instance of view utility |
202 // Get an instance of view utility |
203 iViewUtility = MMPXViewUtility::UtilityL(); |
203 iViewUtility = MMPXViewUtility::UtilityL(); |
204 iViewUtility->AddObserverL( this ); |
204 iViewUtility->AddObserverL( this ); |
205 |
205 |
206 TInt flags( 0 ); |
206 TInt flags( 0 ); |
207 CRepository* repository( CRepository::NewL( KCRUidMPXMPFeatures )); |
207 CRepository* repository( CRepository::NewLC( KCRUidMPXMPFeatures )); |
208 User::LeaveIfError( repository->Get( KMPXMPLocalVariation, flags )); |
208 User::LeaveIfError( repository->Get( KMPXMPLocalVariation, flags )); |
209 delete repository; |
209 CleanupStack::PopAndDestroy( repository ); |
210 repository = NULL; |
210 repository = NULL; |
|
211 |
211 |
212 |
212 iChangeRTForAllProfiles = |
213 iChangeRTForAllProfiles = |
213 static_cast<TBool>( flags & KMPXChangeRTForAll ); |
214 static_cast<TBool>( flags & KMPXChangeRTForAll ); |
214 |
|
215 // Pre-load Equalizer & Audio Effects views |
|
216 iViewUtility->PreLoadViewL( |
|
217 TUid::Uid( KMPXPluginTypeEqualizerUid ) ); |
|
218 iViewUtility->PreLoadViewL( |
|
219 TUid::Uid( KMPXPluginTypeAudioEffectsUid ) ); |
|
220 |
215 |
221 iLayout = new (ELeave) CMPXCommonPlaybackViewLayout(); |
216 iLayout = new (ELeave) CMPXCommonPlaybackViewLayout(); |
222 |
217 |
223 iCollectionUtility = MMPXCollectionUtility::NewL( this ); |
218 iCollectionUtility = MMPXCollectionUtility::NewL( this ); |
224 |
219 |
2024 AppUi()->AppHelpContextL() ); |
2019 AppUi()->AppHelpContextL() ); |
2025 break; |
2020 break; |
2026 } |
2021 } |
2027 case EAknSoftkeyBack: |
2022 case EAknSoftkeyBack: |
2028 { |
2023 { |
2029 AppUi()->HandleCommandL( EMPXCmdGotoCollection ); |
2024 |
2030 #ifdef BACKSTEPPING_INCLUDED |
2025 #ifdef BACKSTEPPING_INCLUDED |
2031 // let Back Stepping Service handle the event |
2026 // let Back Stepping Service handle the event |
2032 TInt statusInfo( KMPXBackSteppingNotConsumed ); |
2027 TInt statusInfo( KMPXBackSteppingNotConsumed ); |
2033 if ( iViewUtility && |
2028 if ( iViewUtility && |
2034 ( iViewUtility->ActiveViewType() != KNullUid ) ) |
2029 ( iViewUtility->ActiveViewType() != KNullUid ) ) |