MPlayerUIControllerListener.h
上传用户:xinrui0099
上传日期:2010-03-05
资源大小:48k
文件大小:2k
源码类别:
Symbian
开发平台:
C/C++
- /*
- * ==============================================================================
- * Name : MPlayerUIControllerListener.h
- * Part of : Video
- * Created : 10/14/2003 by Forum Nokia
- * Interface :
- * Description : Declares UI control listener
- * Version :
- * Copyright : Nokia Corporation, 2003
- * ==============================================================================
- */
- #ifndef __MPLAYERUICONTROLLERLISTENER_H__
- #define __MPLAYERUICONTROLLERLISTENER_H__
- const TInt KMPOneSecond( 1000000 );
- const TInt KMPOneMinute( 60000000 );
- const TInt KOneHourInSeconds( 3600 );
- // UI controller Commands
- enum TMPControlCommands
- {
- EMPControlCmdPlay,
- EMPControlCmdPause,
- EMPControlCmdStop,
- EMPControlCmdStartSeekForward,
- EMPControlCmdStartSeekBackward,
- EMPControlCmdStopSeeking,
- EMPControlCmdVolumeUpByOne,
- EMPControlCmdVolumeDownByOne,
- EMPControlCmdVolumeMute,
- EMPControlCmdVolumeUnMute,
- EMPControlCmdOpenNextPlaylistItem,
- EMPControlCmdClose,
- EMPControlCmdReOpen
- };
- /**
- * MPlayerUIControllerListener
- * An interface class. Defines callback to be called from engine. It should be
- * implemented by the application UI class.
- */
- class MPlayerUIControllerListener
- {
- public: // New functions
- /**
- * Called when UI controller has been initialized
- * @param aError, KErrNone or one of the system wide error codes.
- * @return void
- */
- virtual void InitControllerCompletedL(TInt aError)=0;
- /**
- * Called when UI controller has finished playing media
- * @param aError, KErrNone or one of the system wide error codes.
- * @return void
- */
- virtual void PlayCompletedL(TInt aError)=0;
- /**
- * Called when UI controller's playback position is changed
- * @param aPlaybackPosInSeconds, New playback postions
- * @param aTotalLengthInSeconds, Clips duration
- * @return void
- */
- virtual void PlaybackPositionChangedL(TInt64 aPlaybackPosInSeconds, TInt64 aTotalLengthInSeconds)=0;
- };
- #endif // __MPLAYERUICONTROLLERLISTENER_H__