videoplayback/videoplaybackviews/src/mpxvideobaseplaybackview.cpp
branchRCL_3
changeset 18 baf439b22ddd
parent 16 67eb01668b0e
child 20 2d690156cf8f
equal deleted inserted replaced
16:67eb01668b0e 18:baf439b22ddd
    14 * Description:   Implementation of Video base playback view
    14 * Description:   Implementation of Video base playback view
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // Version : %version: 80 %
    19 // Version : %version: 82 %
    20 
    20 
    21 
    21 
    22 //  Include Files
    22 //  Include Files
    23 
    23 
    24 #include <aknViewAppUi.h>
    24 #include <aknViewAppUi.h>
   187 
   187 
   188 // -------------------------------------------------------------------------------------------------
   188 // -------------------------------------------------------------------------------------------------
   189 //   CMPXVideoBasePlaybackView::CreateGeneralPlaybackCommandL()
   189 //   CMPXVideoBasePlaybackView::CreateGeneralPlaybackCommandL()
   190 // -------------------------------------------------------------------------------------------------
   190 // -------------------------------------------------------------------------------------------------
   191 //
   191 //
   192 void CMPXVideoBasePlaybackView::CreateGeneralPlaybackCommandL( TMPXPlaybackCommand aCmd )
   192 void CMPXVideoBasePlaybackView::CreateGeneralPlaybackCommandL( TMPXPlaybackCommand aCmd, TBool aDoSync )
   193 {
   193 {
   194     MPX_ENTER_EXIT(_L("CMPXVideoBasePlaybackView::CreateGeneralPlaybackCommandL()"),
   194     MPX_ENTER_EXIT(_L("CMPXVideoBasePlaybackView::CreateGeneralPlaybackCommandL()"),
   195                    _L("aCmd = %d"), aCmd );
   195                    _L("aCmd = %d, aDoSync, = %d"), aCmd, aDoSync );
   196 
   196 
   197     CMPXCommand* cmd = CMPXCommand::NewL();
   197     CMPXCommand* cmd = CMPXCommand::NewL();
   198     CleanupStack::PushL( cmd );
   198     CleanupStack::PushL( cmd );
   199 
   199 
   200     cmd->SetTObjectValueL<TBool>( KMPXCommandGeneralDoSync, ETrue );
   200     cmd->SetTObjectValueL<TBool>( KMPXCommandGeneralDoSync, aDoSync );
   201     cmd->SetTObjectValueL<TBool>( KMPXCommandPlaybackGeneralNoBuffer, ETrue );
   201     cmd->SetTObjectValueL<TBool>( KMPXCommandPlaybackGeneralNoBuffer, ETrue );
   202     cmd->SetTObjectValueL<TInt>( KMPXCommandGeneralId, KMPXCommandIdPlaybackGeneral );
   202     cmd->SetTObjectValueL<TInt>( KMPXCommandGeneralId, KMPXCommandIdPlaybackGeneral );
   203     cmd->SetTObjectValueL<TInt>( KMPXCommandPlaybackGeneralType, aCmd );
   203     cmd->SetTObjectValueL<TInt>( KMPXCommandPlaybackGeneralType, aCmd );
   204 
   204 
   205     iPlaybackUtility->CommandL( *cmd );
   205     iPlaybackUtility->CommandL( *cmd, this );
   206 
   206 
   207     CleanupStack::PopAndDestroy( cmd );
   207     CleanupStack::PopAndDestroy( cmd );
   208 }
   208 }
   209 
   209 
   210 // -------------------------------------------------------------------------------------------------
   210 // -------------------------------------------------------------------------------------------------
   823     switch ( event )
   823     switch ( event )
   824     {
   824     {
   825         case TMPXPlaybackMessage::EStateChanged:
   825         case TMPXPlaybackMessage::EStateChanged:
   826         {
   826         {
   827             DoHandleStateChangeL( type );
   827             DoHandleStateChangeL( type );
   828 
       
   829             break;
   828             break;
   830         }
   829         }
   831         case TMPXPlaybackMessage::EPropertyChanged:
   830         case TMPXPlaybackMessage::EPropertyChanged:
   832         {
   831         {
   833             TMPXPlaybackProperty property( static_cast<TMPXPlaybackProperty>( type ) );
   832             TMPXPlaybackProperty property( static_cast<TMPXPlaybackProperty>( type ) );
  1508 //   CMPXVideoBasePlaybackView::RetrieveFileNameAndModeL
  1507 //   CMPXVideoBasePlaybackView::RetrieveFileNameAndModeL
  1509 // -------------------------------------------------------------------------------------------------
  1508 // -------------------------------------------------------------------------------------------------
  1510 //
  1509 //
  1511 void CMPXVideoBasePlaybackView::RetrieveFileNameAndModeL( CMPXCommand* aCmd )
  1510 void CMPXVideoBasePlaybackView::RetrieveFileNameAndModeL( CMPXCommand* aCmd )
  1512 {
  1511 {
       
  1512     MPX_ENTER_EXIT(_L("CMPXVideoBasePlaybackView::RetrieveFileNameAndModeL()"));
       
  1513 
  1513     //
  1514     //
  1514     //  set attributes on the command
  1515     //  set attributes on the command
  1515     //
  1516     //
  1516     aCmd->SetTObjectValueL<TBool>( KMPXCommandGeneralDoSync, ETrue );
  1517     aCmd->SetTObjectValueL<TBool>( KMPXCommandGeneralDoSync, ETrue );
  1517     aCmd->SetTObjectValueL<TInt>( KMPXCommandGeneralId, KMPXMediaIdVideoPlayback );
  1518     aCmd->SetTObjectValueL<TInt>( KMPXCommandGeneralId, KMPXMediaIdVideoPlayback );