ihxsymplayerstateobserver.h

来自「symbian 下的helix player源代码」· C头文件 代码 · 共 66 行

H
66
字号
/************************************************************************
 * ihxsymplayerstateobserver.h
 * ------------------------
 *
 * Synopsis:
 * Contains interface IHXSymPlayerStateObserver.   
 *
 * Target:
 * Symbian OS
 *
 *
 * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
 *
 ************************************************************************/

#ifndef _ihxsymplayerstateobserver_h_
#define _ihxsymplayerstateobserver_h_


#include "hxcom.h"
#include "hxcomm.h"
#include "hxmon.h"
#include "hxurl.h"
#include "hxrquest.h"


/****************************************************************************
 * 
 *  Interface:
 *
 *  	IHXSymPlayerStateObserver
 *
 *  Purpose:
 *
 *      Callback methods for receiving notification of player state
 *      changes and events.
 *
 ****************************************************************************/


class IHXSymPlayerStateObserver 
{
public:
    virtual ~IHXSymPlayerStateObserver() = 0;
    virtual void OnPlayInitiate (const char* /*pUrl*/) {};
    virtual void OnNetConnect() {};
    virtual void OnLoadSession(IHXRequest* /*pRequest*/) {};
    virtual void OnResume () {};
    virtual void OnStop () {};
    virtual void OnPause () {};
    virtual void OnBeginBuffering(bool /*bIsBegin*/) {}
    virtual void OnBuffering(UINT16 /*percent*/) {}
    virtual void OnBeginSeek () {};
    virtual void OnVolume (unsigned int /*percentVol*/) {};
    virtual void OnMute (bool /*bMute*/) {};
    virtual void OnNewPos (ULONG32 /*msNewTime*/) {};
    virtual void OnError(HX_RESULT /*code*/) {};
    virtual void OnAdvancePlaylist() {};
};

inline
IHXSymPlayerStateObserver::~IHXSymPlayerStateObserver() {}


#endif // _ihxsymplayerstateobserver_h_

⌨️ 快捷键说明

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