mplayeruicontrollerlistener.h

来自「symbian video 的 实现」· C头文件 代码 · 共 74 行

H
74
字号
/*
* ==============================================================================
*  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__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?