videoplayback/videoplaybackviews/src/mpxvideobaseplaybackview.cpp
branchRCL_3
changeset 21 315810614048
parent 20 2d690156cf8f
--- a/videoplayback/videoplaybackviews/src/mpxvideobaseplaybackview.cpp	Thu Jul 15 18:41:27 2010 +0300
+++ b/videoplayback/videoplaybackviews/src/mpxvideobaseplaybackview.cpp	Thu Aug 19 09:57:17 2010 +0300
@@ -16,7 +16,7 @@
 */
 
 
-// Version : %version: 83 %
+// Version : %version: 86 %
 
 
 //  Include Files
@@ -189,7 +189,8 @@
 //   CMPXVideoBasePlaybackView::CreateGeneralPlaybackCommandL()
 // -------------------------------------------------------------------------------------------------
 //
-void CMPXVideoBasePlaybackView::CreateGeneralPlaybackCommandL( TMPXPlaybackCommand aCmd, TBool aDoSync )
+void CMPXVideoBasePlaybackView::CreateGeneralPlaybackCommandL( TMPXPlaybackCommand aCmd,
+                                                               TBool aDoSync )
 {
     MPX_ENTER_EXIT(_L("CMPXVideoBasePlaybackView::CreateGeneralPlaybackCommandL()"),
                    _L("aCmd = %d, aDoSync, = %d"), aCmd, aDoSync );
@@ -234,7 +235,7 @@
         case EMPXPbvCmdClose:
         {
             MPX_DEBUG(_L("CMPXVideoBasePlaybackView::HandleCommandL() EMPXPbvCmdClose"));
-            CreateGeneralPlaybackCommandL( EPbCmdClose );
+            CreateGeneralPlaybackCommandL( EPbCmdClose, iSyncClose );
             break;
         }
         case EMPXPbvCmdSeekForward:
@@ -471,11 +472,6 @@
     iAknEventMonitor->AddObserverL( this );
 
     //
-    //  Deactivate the CBA set the LSK & RSK to empty
-    //
-    Cba()->SetCommandSetL( R_AVKON_SOFTKEYS_EMPTY );
-
-    //
     //  Determine if the playback is from a playlist on view activation
     //
     MMPXSource* s = iPlaybackUtility->Source();
@@ -891,8 +887,10 @@
 
             if ( iContainer )
             {
-                MPX_TRAPD( err, iContainer->HandleEventL( cmdId ) );
+                MPX_TRAPD( err,
+                    iContainer->HandleEventL( cmdId, iDisplayHandler->ShowAspectRatioIcon() ) );
             }
+
             break;
         }
         case EPbCmdLoadingStarted:
@@ -1280,12 +1278,9 @@
             //  Aspect ratio should be calculated 1st so the auto scale will be set when
             //  the display window is created.
             //
-            TInt newAspectRatio = iDisplayHandler->SetDefaultAspectRatioL( iFileDetails );
-
             iDisplayHandler->CreateDisplayWindowL( *(CCoeEnv::Static()->ScreenDevice()),
-                                                   iContainer->GetWindow() );
-
-            iContainer->HandleEventL( EMPXControlCmdSetAspectRatio, newAspectRatio );
+                                                   iContainer->GetWindow(),
+                                                   iFileDetails );
         }
         else
         {
@@ -1620,12 +1615,7 @@
 {
     MPX_DEBUG(_L("CMPXVideoBasePlaybackView::SetAspectRatioL()"));
 
-    TInt newAspectRatio = iDisplayHandler->SetAspectRatioL( aCmd );
-
-    if ( iContainer )
-    {
-        iContainer->HandleEventL( EMPXControlCmdSetAspectRatio, newAspectRatio );
-    }
+    iDisplayHandler->SetAspectRatioL( aCmd );
 }
 
 // -------------------------------------------------------------------------------------------------