videoplayback/videohelix/inc/mpxvideoplaybackstate.h
branchRCL_3
changeset 45 baf439b22ddd
parent 23 8f0df5c82986
child 41 229f037ce963
equal deleted inserted replaced
26:67eb01668b0e 45:baf439b22ddd
    14 * Description:   This class plays files with the Helix Engine
    14 * Description:   This class plays files with the Helix Engine
    15  *
    15  *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // Version : %version: 19 %
    19 // Version : %version: 20 %
    20 
    20 
    21 
    21 
    22 #ifndef _CMPXVIDEOPLAYBACKSTATE_H_
    22 #ifndef _CMPXVIDEOPLAYBACKSTATE_H_
    23 #define _CMPXVIDEOPLAYBACKSTATE_H_
    23 #define _CMPXVIDEOPLAYBACKSTATE_H_
    24 
    24 
   118 
   118 
   119 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   119 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   120         virtual void OpenFile64L( const RFile64& aMediaFile );
   120         virtual void OpenFile64L( const RFile64& aMediaFile );
   121 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   121 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
   122 
   122 
       
   123         void IssuePlayCommand( TMPXVideoPlaybackState aState,
       
   124                                MMPXPlaybackPluginObserver::TEvent aEvent,
       
   125                                TBool aSendEvent = ETrue );
       
   126 
   123     protected:
   127     protected:
   124         /*
   128         /*
   125          *  C++ default constructor
   129          *  C++ default constructor
   126          */
   130          */
   127         CMPXVideoPlaybackState();
   131         CMPXVideoPlaybackState();
   129         /*
   133         /*
   130          *  the second phase constructor ConstructL to safely construct things
   134          *  the second phase constructor ConstructL to safely construct things
   131          *  that can leave
   135          *  that can leave
   132          */
   136          */
   133         void ConstructL(CMPXVideoPlaybackController* aVideoPlaybackCtlr);
   137         void ConstructL(CMPXVideoPlaybackController* aVideoPlaybackCtlr);
   134 
       
   135         void IssuePlayCommand( TMPXVideoPlaybackState aState,
       
   136                                MMPXPlaybackPluginObserver::TEvent aEvent,
       
   137                                TBool aSendEvent = ETrue );
       
   138 
   138 
   139     protected:
   139     protected:
   140         //
   140         //
   141         //  Data
   141         //  Data
   142         //
   142         //
   311         // Commands received from the Framework
   311         // Commands received from the Framework
   312         virtual void HandlePlay();
   312         virtual void HandlePlay();
   313         virtual void HandleStop();
   313         virtual void HandleStop();
   314         virtual void HandleStartSeekL( TBool aForward );
   314         virtual void HandleStartSeekL( TBool aForward );
   315         virtual void HandlePlayPause();
   315         virtual void HandlePlayPause();
   316         virtual void HandleSetPosterFrame();        
   316         virtual void HandleSetPosterFrame();
   317         virtual void HandleForeground();
   317         virtual void HandleForeground();
   318         virtual void HandleCustomPlay();
   318         virtual void HandleCustomPlay();
       
   319         virtual void HandleUnexpectedError( TInt aError );
   319 
   320 
   320         // general method
   321         // general method
   321         virtual void HandleSetPositionL( TInt aPosition );
   322         virtual void HandleSetPositionL( TInt aPosition );
   322 
   323 
   323         inline virtual TMPXVideoPlaybackState GetState();
   324         inline virtual TMPXVideoPlaybackState GetState();
   363         virtual void HandleClose();
   364         virtual void HandleClose();
   364 
   365 
   365         // general method
   366         // general method
   366         virtual void HandleSetPositionL(TInt aPosition);
   367         virtual void HandleSetPositionL(TInt aPosition);
   367         virtual void ResolveTimeoutError( TInt aError );
   368         virtual void ResolveTimeoutError( TInt aError );
       
   369         virtual void HandleUnexpectedError( TInt aError );
   368 
   370 
   369         inline virtual TMPXVideoPlaybackState GetState();
   371         inline virtual TMPXVideoPlaybackState GetState();
   370 };
   372 };
   371 
   373 
   372 // INLINE METHODS
   374 // INLINE METHODS