chxavplayerstatedispatch.h

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

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

#ifndef _chxavplayerstatedispatch_h_
#define _chxavplayerstatedispatch_h_

// Helix includes...
#include "unkimp.h"
#include "ihxpckts.h"
#include "hxstring.h"
#include "hxurl.h"
#include "hxwintyp.h"
#include "hxcom.h"
#include "hxcomm.h"
#include "hxmon.h"
#include "hxslist.h"
#include "hxfiles.h"
#include "hxstring.h"
#include "ihxpckts.h"
#include "hxurl.h"

// Include for this project...
#include "ihxsymplayerstateobserver.h"


// class epPlayerStateObserverDispatch
class CHXAvPlayerStateDispatch
: public IHXSymPlayerStateObserver
{
public:
    
    CHXAvPlayerStateDispatch();
    virtual ~CHXAvPlayerStateDispatch();

     // IHXSymPlayerStateObserver
    void OnPlayInitiate(const char* url);
    void OnNetConnect();
    void OnLoadSession(IHXRequest* request);
    void OnResume();
    void OnStop();
    void OnPause();
    void OnBeginBuffering(bool bIsBegin);
    void OnBuffering(UINT16 percent);
    void OnBeginSeek();
    void OnVolume(unsigned int percentVol);
    void OnMute(bool bMute);
    void OnNewPos (ULONG32 msNewTime);
    void OnError(HX_RESULT code);
    void OnAdvancePlaylist();


    void AddObserver(IHXSymPlayerStateObserver *pObserver);
    void RemoveObserver(IHXSymPlayerStateObserver *pObserver);

private:

    CHXSimpleList m_observers;

};



#endif // _chxavplayerstatedispatch_h_

⌨️ 快捷键说明

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