videoplayback/hbvideoplaybackview/viewinc/mpxvideoviewwrapper.h
changeset 41 229f037ce963
parent 39 f6d44a0cd476
equal deleted inserted replaced
40:13331705e488 41:229f037ce963
    13 *
    13 *
    14 * Description:  MPX Video base playback view
    14 * Description:  MPX Video base playback view
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version:  da1mmcf#14 %
    18 // Version : %version:  da1mmcf#16 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 // This file defines the API for .dll
    22 // This file defines the API for .dll
    23 
    23 
    62     public:
    62     public:
    63         static CMPXVideoViewWrapper* NewL( HbVideoBasePlaybackView* aView );
    63         static CMPXVideoViewWrapper* NewL( HbVideoBasePlaybackView* aView );
    64         virtual ~CMPXVideoViewWrapper();
    64         virtual ~CMPXVideoViewWrapper();
    65 
    65 
    66     private:
    66     private:
    67         CMPXVideoViewWrapper( HbVideoBasePlaybackView* aView );        
    67         CMPXVideoViewWrapper( HbVideoBasePlaybackView* aView );
    68         void ConstructL();
    68         void ConstructL();
    69 
    69 
    70     public:
    70     public:
    71         virtual void HandleCommandL( TInt aCommand );
    71         virtual void HandleCommandL( TInt aCommand );
    72 
    72 
    73         void RetrieveFileNameAndModeL( CMPXCommand* aCmd );
    73         void RetrieveFileNameAndModeL( CMPXCommand* aCmd );
    74         
    74 
    75         /*
    75         /*
    76          *  From MMPXViewActivationObserver
    76          *  From MMPXViewActivationObserver
    77          *  Handle view activation.
    77          *  Handle view activation.
    78          *
    78          *
    79          *  @param aCurrentViewType Current view type Uid.
    79          *  @param aCurrentViewType Current view type Uid.
    80          *  @param aPreviousViewType Previous view type Uid.
    80          *  @param aPreviousViewType Previous view type Uid.
    81          */
    81          */
    82         inline void HandleViewActivation( const TUid& /*aCurrentViewType*/,
    82         inline void HandleViewActivation( const TUid& /*aCurrentViewType*/,
    83                                           const TUid& /*aPreviousViewType*/ ) {}        
    83                                           const TUid& /*aPreviousViewType*/ ) {}
    84 
    84 
    85         /**
    85         /**
    86         * From MMPXPlaybackObserver
    86         * From MMPXPlaybackObserver
    87         * Handle playback message
    87         * Handle playback message
    88         *
    88         *
   161         /**
   161         /**
   162         * Set property
   162         * Set property
   163         */
   163         */
   164         void SetPropertyL( TMPXPlaybackProperty aProperty, TInt aValue );
   164         void SetPropertyL( TMPXPlaybackProperty aProperty, TInt aValue );
   165         virtual void RetrievePdlInformationL();
   165         virtual void RetrievePdlInformationL();
   166                      
   166 
   167         TBool IsLive();
   167         TBool IsLive();
   168         
   168 
   169         TBool IsPlaylist();
   169         TBool IsPlaylist();
   170        
   170 
   171         void IssueVideoAppForegroundCmdL(TBool aForeground);        
   171         void IssueVideoAppForegroundCmdL(TBool aForeground);
   172         
   172 
   173         void RequestMediaL();  
   173         void RequestMediaL();
   174         
   174 
   175         void CreateGeneralPlaybackCommandL( TMPXPlaybackCommand aCmd, TBool aDoSync = ETrue );
   175         void CreateGeneralPlaybackCommandL( TMPXPlaybackCommand aCmd, TBool aDoSync = ETrue );
   176         
   176 
   177         TBool IsAppInFrontL();
   177         TBool IsAppInFrontL();
   178         
   178 
   179         /*
   179         /*
   180          *  Activates an active object to close the player
   180          *  Activates an active object to close the player
   181          *  @since 5.0
   181          *  @since 5.0
   182          */
   182          */
   183         void ActivateClosePlayerActiveObject();
   183         void ActivateClosePlayerActiveObject();
   201          *  Called by CIdle iIdle
   201          *  Called by CIdle iIdle
   202          *  @since 3.2
   202          *  @since 3.2
   203          *  @param aPtr Pointer to callback class
   203          *  @param aPtr Pointer to callback class
   204          *  @return KErrNone
   204          *  @return KErrNone
   205          */
   205          */
   206         static TInt ClosePlayerL( TAny* aPtr );
   206         static TInt ClosePlayer( TAny* aPtr );
   207 
   207 
   208         /*
   208         /*
   209          *  Called to stop and exit the player
   209          *  Called to stop and exit the player
   210          *  @since 3.2
   210          *  @since 3.2
   211          *  @return void
   211          *  @return void
   212          */
   212          */
   213         void DoClosePlayerL();
   213         void DoClosePlayer();
   214 
   214 
   215         void HandleVideoPlaybackMessage( CMPXMessage* aMessage );
   215         void HandleVideoPlaybackMessage( CMPXMessage* aMessage );
   216 
   216 
   217     private:
   217     private:
   218 
   218 
   246 
   246 
   247         void DoHandleStateChangeL( TInt aNewState );
   247         void DoHandleStateChangeL( TInt aNewState );
   248 
   248 
   249         void HandleGeneralPlaybackMessageL( CMPXMessage* aMessage );
   249         void HandleGeneralPlaybackMessageL( CMPXMessage* aMessage );
   250 
   250 
   251         void SetAspectRatioL( TMPXVideoPlaybackCommand aCmd );        
   251         void SetAspectRatioL( TMPXVideoPlaybackCommand aCmd );
   252 
   252 
   253         void HandleVolumeCmdL( TMPXPlaybackCommand aCmd );
   253         void HandleVolumeCmdL( TMPXPlaybackCommand aCmd );
   254 
   254 
   255         void HandleShortPressBackwardL();
   255         void HandleShortPressBackwardL();
   256 
   256 
   266 
   266 
   267         HbVideoBasePlaybackView*             iView;
   267         HbVideoBasePlaybackView*             iView;
   268         CMPXVideoPlaybackDisplayHandler*     iDisplayHandler;
   268         CMPXVideoPlaybackDisplayHandler*     iDisplayHandler;
   269         CMPXVideoPlaybackUserInputHandler*   iUserInputHandler;
   269         CMPXVideoPlaybackUserInputHandler*   iUserInputHandler;
   270         QMPXVideoPlaybackControlsController* iControlsController;
   270         QMPXVideoPlaybackControlsController* iControlsController;
   271         
   271 
   272         TMPXMediaRequestStatus               iMediaRequestStatus;
   272         TMPXMediaRequestStatus               iMediaRequestStatus;
   273         TBool                                iPlaylistView;
   273         TBool                                iPlaylistView;
       
   274         int                                  iPlayPosition;
       
   275         
       
   276     public:
       
   277         friend class HbVideoBasePlaybackView;        
   274 };
   278 };
   275 
   279 
   276 #endif  // __MPXVIDEOVIEWWRAPPER_H__
   280 #endif  // __MPXVIDEOVIEWWRAPPER_H__
   277 
   281 
   278 // EOF
   282 // EOF