chxavplayerstatedispatch.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:2k
源码类别:

Symbian

开发平台:

Visual C++

  1. /************************************************************************
  2.  * chxavplayerstatedispatch.h
  3.  * ------------------------
  4.  *
  5.  * Synopsis:
  6.  * Contains interface CHXAvPlayerStateObserver.   
  7.  *
  8.  * Target:
  9.  * Symbian OS
  10.  *
  11.  *
  12.  * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
  13.  *
  14.  ************************************************************************/
  15. #ifndef _chxavplayerstatedispatch_h_
  16. #define _chxavplayerstatedispatch_h_
  17. // Helix includes...
  18. #include "unkimp.h"
  19. #include "ihxpckts.h"
  20. #include "hxstring.h"
  21. #include "hxurl.h"
  22. #include "hxwintyp.h"
  23. #include "hxcom.h"
  24. #include "hxcomm.h"
  25. #include "hxmon.h"
  26. #include "hxslist.h"
  27. #include "hxfiles.h"
  28. #include "hxstring.h"
  29. #include "ihxpckts.h"
  30. #include "hxurl.h"
  31. // Include for this project...
  32. #include "ihxsymplayerstateobserver.h"
  33. // class epPlayerStateObserverDispatch
  34. class CHXAvPlayerStateDispatch
  35. : public IHXSymPlayerStateObserver
  36. {
  37. public:
  38.     
  39.     CHXAvPlayerStateDispatch();
  40.     virtual ~CHXAvPlayerStateDispatch();
  41.      // IHXSymPlayerStateObserver
  42.     void OnPlayInitiate(const char* url);
  43.     void OnNetConnect();
  44.     void OnLoadSession(IHXRequest* request);
  45.     void OnResume();
  46.     void OnStop();
  47.     void OnPause();
  48.     void OnBeginBuffering(bool bIsBegin);
  49.     void OnBuffering(UINT16 percent);
  50.     void OnBeginSeek();
  51.     void OnVolume(unsigned int percentVol);
  52.     void OnMute(bool bMute);
  53.     void OnNewPos (ULONG32 msNewTime);
  54.     void OnError(HX_RESULT code);
  55.     void OnAdvancePlaylist();
  56.     void AddObserver(IHXSymPlayerStateObserver *pObserver);
  57.     void RemoveObserver(IHXSymPlayerStateObserver *pObserver);
  58. private:
  59.     CHXSimpleList m_observers;
  60. };
  61. #endif // _chxavplayerstatedispatch_h_