videoplayback/videoplaybackcontrols/src/mpxvideoplaybackcontrol.cpp
branchRCL_3
changeset 54 315810614048
parent 45 baf439b22ddd
equal deleted inserted replaced
53:2d690156cf8f 54:315810614048
    14 * Description:  Implementation of CMPXVideoPlaybackControl
    14 * Description:  Implementation of CMPXVideoPlaybackControl
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // Version : %version: 23 %
    19 // Version : %version: 25 %
    20 
    20 
    21 
    21 
    22 // INCLUDE FILES
    22 // INCLUDE FILES
    23 #include <avkon.hrh>
    23 #include <avkon.hrh>
    24 #include <e32std.h>
    24 #include <e32std.h>
   330             {
   330             {
   331                 visible = ETrue;
   331                 visible = ETrue;
   332             }
   332             }
   333             break;
   333             break;
   334         }
   334         }
       
   335         case EPbStateInitialised:
   335         case EPbStateBuffering:
   336         case EPbStateBuffering:
   336         {
   337         {
   337             if ( iProperties & EMPXBufferingControl )
   338             if ( iProperties & EMPXBufferingControl )
   338             {
   339             {
   339                 visible = ETrue;
   340                 visible = ETrue;
   556 
   557 
   557     return changed;
   558     return changed;
   558 }
   559 }
   559 
   560 
   560 // -------------------------------------------------------------------------------------------------
   561 // -------------------------------------------------------------------------------------------------
       
   562 // CMPXVideoPlaybackControl::UpdateTVOutStatusL()
       
   563 // -------------------------------------------------------------------------------------------------
       
   564 //
       
   565 TBool CMPXVideoPlaybackControl::UpdateTVOutStatusL( TBool aTvOutConnected)
       
   566 {
       
   567     TBool changed = EFalse;
       
   568 
       
   569     if ( iControlIndex == EMPXVolumeBar )
       
   570     {
       
   571         MPX_DEBUG(_L("CMPXVideoPlaybackControlsController::UpdateTVOutStatus()"));
       
   572 
       
   573         static_cast<CMPXVideoPlaybackVolumeBar*>(iControl)->UpdateTVOutStatusL( aTvOutConnected );
       
   574 
       
   575         changed = ETrue;
       
   576     }
       
   577 
       
   578     return changed;
       
   579 }
       
   580 
       
   581 // -------------------------------------------------------------------------------------------------
   561 // CMPXVideoPlaybackControl::ResetControl()
   582 // CMPXVideoPlaybackControl::ResetControl()
   562 // -------------------------------------------------------------------------------------------------
   583 // -------------------------------------------------------------------------------------------------
   563 //
   584 //
   564 void CMPXVideoPlaybackControl::ResetControl()
   585 void CMPXVideoPlaybackControl::ResetControl()
   565 {
   586 {