mpxmusicplayer/app/src/mpxappui.cpp
branchRCL_3
changeset 31 a12246c97fcc
parent 28 56b11cf8addb
child 49 455f89b7fcc5
equal deleted inserted replaced
28:56b11cf8addb 31:a12246c97fcc
    71 #include <mpxcollectionmessagedefs.h>
    71 #include <mpxcollectionmessagedefs.h>
    72 #include <mpxmessagegeneraldefs.h>
    72 #include <mpxmessagegeneraldefs.h>
    73 #include <mpxcollectionplugin.hrh>
    73 #include <mpxcollectionplugin.hrh>
    74 #include <mpxcommandgeneraldefs.h>
    74 #include <mpxcommandgeneraldefs.h>
    75 #include <mpxcollectioncommanddefs.h>
    75 #include <mpxcollectioncommanddefs.h>
       
    76 #include <gfxtranseffect/gfxtranseffect.h>
       
    77 #include <akntranseffect.h>      
       
    78 #include <layoutmetadata.cdl.h>
    76 
    79 
    77 // Cover UI start
    80 // Cover UI start
    78 //#ifdef __COVER_DISPLAY
    81 //#ifdef __COVER_DISPLAY
    79 #include <aknSDData.h>
    82 #include <aknSDData.h>
    80 #include <AknMediatorFacade.h>
    83 #include <AknMediatorFacade.h>
  2721             else
  2724             else
  2722                 {
  2725                 {
  2723                 // OpenL the blank playlist
  2726                 // OpenL the blank playlist
  2724                 iCollectionUtility->Collection().OpenL();
  2727                 iCollectionUtility->Collection().OpenL();
  2725                 }
  2728                 }
  2726             // Default start up state for local playback is Playing
  2729 			// 	do not change launch mode if track mode, required for saving file 
  2727             MPXTlsHelper::SetLaunchModeL( EMPXLaunchModePlaying );
  2730             if ( EMPXLaunchModeTrack != MPXTlsHelper::LaunchMode() )
       
  2731                 {
       
  2732                 // Default start up state for local playback is Playing
       
  2733                 MPXTlsHelper::SetLaunchModeL( EMPXLaunchModePlaying );
       
  2734                 }
  2728             CleanupStack::PopAndDestroy( cPath );
  2735             CleanupStack::PopAndDestroy( cPath );
  2729             CleanupStack::PopAndDestroy( &attrs );
  2736             CleanupStack::PopAndDestroy( &attrs );
  2730             }
  2737             }
  2731         else if( event == TMPXCollectionMessage::EPathChanged &&
  2738         else if( event == TMPXCollectionMessage::EPathChanged &&
  2732             !SuppressCollectionView() &&
  2739             !SuppressCollectionView() &&
  3605             }
  3612             }
  3606         case EMPXCmdHideApp:
  3613         case EMPXCmdHideApp:
  3607             {
  3614             {
  3608             // Move Music Player to background
  3615             // Move Music Player to background
  3609             // magic: -1 = force wg to background
  3616             // magic: -1 = force wg to background
       
  3617             if ( !Layout_Meta_Data::IsLandscapeOrientation() )
       
  3618                 {
       
  3619                 GfxTransEffect::BeginFullScreen( 
       
  3620                     AknTransEffect::EApplicationExit, 
       
  3621                     TRect(), 
       
  3622                     AknTransEffect::EParameterType, 
       
  3623                     AknTransEffect::GfxTransParam( KAppUidMusicPlayerX, 
       
  3624                     AknTransEffect::TParameter::EActivateExplicitCancel | 
       
  3625                     AknTransEffect::TParameter::EEndCheck ) );
       
  3626                 }
       
  3627 
  3610             iEikonEnv->RootWin().SetOrdinalPosition( -1 );
  3628             iEikonEnv->RootWin().SetOrdinalPosition( -1 );
  3611             break;
  3629             break;
  3612             }
  3630             }
  3613 
  3631 
  3614         case EAknSoftkeyBack:
  3632         case EAknSoftkeyBack: