videoplayback/inc/mpxvideoplaybackcontrolscontroller.h
branchRCL_3
changeset 14 55fa1ec415c6
parent 12 7f2b2a65da29
child 15 8f0df5c82986
equal deleted inserted replaced
12:7f2b2a65da29 14:55fa1ec415c6
    14 * Description:  Implementation of MPXVideoPlaybackControlsController
    14 * Description:  Implementation of MPXVideoPlaybackControlsController
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // Version : %version: e003sa33#14 %
    19 // Version : %version: 15 %
    20 
    20 
    21 
    21 
    22 #ifndef MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
    22 #ifndef MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
    23 #define MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
    23 #define MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_
    24 
    24 
   105         /**
   105         /**
   106         * Return ETrue if TV-out cable gets connected
   106         * Return ETrue if TV-out cable gets connected
   107         */
   107         */
   108         inline TBool IsTvOutConnected();
   108         inline TBool IsTvOutConnected();
   109 
   109 
   110         /*
       
   111          * Return ETrue if TV-out cable is connected and content can be played
       
   112          */
       
   113         inline TBool IsTvOutPlaybackAllowed();
       
   114 
       
   115         /**
   110         /**
   116         * Reset or cancel timers for the controls
   111         * Reset or cancel timers for the controls
   117         */
   112         */
   118         void ResetDisappearingTimers( TMPXTimerAction aTimerAction );
   113         void ResetDisappearingTimers( TMPXTimerAction aTimerAction );
   119 
   114 
   311         TBool IsSoftKeyVisible( TInt aValue );
   306         TBool IsSoftKeyVisible( TInt aValue );
   312 
   307 
   313         /**
   308         /**
   314         * Handle tvout connected/disconnected event
   309         * Handle tvout connected/disconnected event
   315         */
   310         */
   316         void HandleTvOutEventL( TBool aConnected,
   311         void HandleTvOutEventL( TBool aConnected, TMPXVideoPlaybackControlCommandIds aEvent );
   317                                 TMPXVideoPlaybackControlCommandIds aEvent,
       
   318                                 TInt aValue );
       
   319         /**
   312         /**
   320         * Handle softkey pressed event
   313         * Handle softkey pressed event
   321         */
   314         */
   322         void HandleSoftKeyPressedL( TInt aValue );
   315         void HandleSoftKeyPressedL( TInt aValue );
   323 
   316 
   409 
   402 
   410     return iFileDetails->iTvOutConnected;
   403     return iFileDetails->iTvOutConnected;
   411 }
   404 }
   412 
   405 
   413 inline
   406 inline
   414 TBool CMPXVideoPlaybackControlsController::IsTvOutPlaybackAllowed()
       
   415 {
       
   416     TBool playable = ( ! iFileDetails->iTvOutConnected || iFileDetails->iTvOutPlayAllowed );
       
   417     MPX_DEBUG(_L("CMPXVideoPlaybackControlsController::IsTvOutPlaybackAllowed() [%d]"), playable);
       
   418     return playable;
       
   419 }
       
   420 
       
   421 inline
       
   422 TBool CMPXVideoPlaybackControlsController::IsRealMediaFormat()
   407 TBool CMPXVideoPlaybackControlsController::IsRealMediaFormat()
   423 {
   408 {
   424     MPX_DEBUG(_L("CMPXVideoPlaybackControlsController::IsRealFormat() [%d]"), iRNFormat);
   409     MPX_DEBUG(_L("CMPXVideoPlaybackControlsController::IsRealFormat() [%d]"), iRNFormat);
   425     return iRNFormat;
   410     return iRNFormat;
   426 }
   411 }