equal
deleted
inserted
replaced
105 #include "mpxlog.h" |
105 #include "mpxlog.h" |
106 |
106 |
107 #include <akntoolbar.h> |
107 #include <akntoolbar.h> |
108 #include <aknbutton.h> |
108 #include <aknbutton.h> |
109 #include "mpxviewprivatepskeys.h" |
109 #include "mpxviewprivatepskeys.h" |
|
110 #include <gfxtranseffect/gfxtranseffect.h> |
|
111 #include <akntranseffect.h> |
110 |
112 |
111 // CONSTANTS |
113 // CONSTANTS |
112 const TInt KMPXOneSecInMilliSecs( 1000 ); |
114 const TInt KMPXOneSecInMilliSecs( 1000 ); |
113 const TUid KMPXEqualizerViewImplementationId = { 0x101FFC77 }; |
115 const TUid KMPXEqualizerViewImplementationId = { 0x101FFC77 }; |
114 const TInt KMPXPostponeForHandleDelayedError( 1000000 ); // 1S |
116 const TInt KMPXPostponeForHandleDelayedError( 1000000 ); // 1S |
1857 { |
1859 { |
1858 TApaTaskList tasList( iCoeEnv->WsSession() ); |
1860 TApaTaskList tasList( iCoeEnv->WsSession() ); |
1859 TApaTask task = tasList.FindApp( KFmTxAppUid ); |
1861 TApaTask task = tasList.FindApp( KFmTxAppUid ); |
1860 if ( task.Exists() ) |
1862 if ( task.Exists() ) |
1861 { |
1863 { |
|
1864 GfxTransEffect::BeginFullScreen( |
|
1865 AknTransEffect::EApplicationStart, |
|
1866 TRect(), |
|
1867 AknTransEffect::EParameterType, |
|
1868 AknTransEffect::GfxTransParam( KFmTxAppUid, |
|
1869 AknTransEffect::TParameter::EActivateExplicitContinue )); |
1862 task.BringToForeground(); |
1870 task.BringToForeground(); |
1863 } |
1871 } |
1864 else |
1872 else |
1865 { |
1873 { |
1866 RProcess process; |
1874 RProcess process; |
4059 // Launch Metadata Dialog to show the file details |
4067 // Launch Metadata Dialog to show the file details |
4060 // --------------------------------------------------------------------------- |
4068 // --------------------------------------------------------------------------- |
4061 // |
4069 // |
4062 EXPORT_C void CMPXCommonPlaybackViewImp::LaunchFileDetailsDialogL() |
4070 EXPORT_C void CMPXCommonPlaybackViewImp::LaunchFileDetailsDialogL() |
4063 { |
4071 { |
4064 MMPXSource* s = iPlaybackUtility->Source(); |
4072 MPX_FUNC("CMPXCommonPlaybackViewImp::LaunchFileDetailsDialogL"); |
4065 TInt count (0); |
4073 |
4066 TInt index (0); |
|
4067 if ( s ) |
|
4068 { |
|
4069 CMPXCollectionPlaylist* playlist = s->PlaylistL(); |
|
4070 if ( playlist ) |
|
4071 { |
|
4072 count = playlist->Count(); |
|
4073 index = playlist->PathIndex( playlist->Index() ); |
|
4074 delete playlist; |
|
4075 playlist = NULL; |
|
4076 } |
|
4077 } |
|
4078 HBufC* buf = HBufC::NewLC( 5 ); // magic number, array granularity |
|
4079 buf->Des().AppendNum( index); |
|
4080 |
|
4081 // Activate Metadata dialog via View Framework |
4074 // Activate Metadata dialog via View Framework |
4082 iViewUtility->ActivateViewL( TUid::Uid(KMPXPluginTypeMetadataEditorUid), buf ); |
4075 CAknToolbar* toolbar = Toolbar(); |
4083 CleanupStack::PopAndDestroy(buf); |
4076 if ( toolbar ) |
|
4077 { |
|
4078 toolbar->SetToolbarVisibility(EFalse); |
|
4079 } |
|
4080 iViewUtility->ActivateViewL( TUid::Uid(KMPXPluginTypeMetadataEditorUid) ); |
|
4081 if ( toolbar ) |
|
4082 { |
|
4083 toolbar->SetToolbarVisibility(ETrue); |
|
4084 } |
4084 } |
4085 } |
4085 |
4086 |
4086 // End of File |
4087 // End of File |