chxavplayerstatedispatch.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:2k
源码类别:
Symbian
开发平台:
Visual C++
- /************************************************************************
- * 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_