chxavnetconnectui.h
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:2k
- /************************************************************************
- * chxavnetconnectui.h
- * --------------------
- *
- * Synopsis:
- * Access point selector implementation.
- *
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- #ifndef CHXAVNETCONNECTUI_H__
- #define CHXAVNETCONNECTUI_H__
- // includes
- #include "hxcom.h"
- #include "hxccf.h"
- #include "hxprefs.h"
- #include "chxbody.h"
- #include "chxsmartptr.h"
- #include "ihxsymplayerstateobserver.h"
- #include "chxavaccesspointdb.h"
- #include "comptr.h"
- #include "chxavwaitnote.h"
- // forward declarations
- _INTERFACE IHXAccessPointManager;
- _INTERFACE IHXAccessPointSelectorResponse;
- // class CHXAvNetConnectUI
- class CHXAvNetConnectUI
- : public CHXBody
- , public IHXSymPlayerStateObserver
- {
- public:
- CHXAvNetConnectUI();
- virtual ~CHXAvNetConnectUI();
- void ConstructL(IUnknown* pUnk, const CHXAvCommand& cmdCancelConnect);
-
- HX_RESULT DoSelectAccessPointL(IHXAccessPointManager* pManager,
- IHXAccessPointSelectorResponse* pResponse);
- private:
- // IHXSymPlayerStateObserver
- void OnStop();
- void OnBeginBuffering(bool bIsBegin);
- void OnError(HX_RESULT code);
- void OnNetConnect();
- // implementation helpers
- TUint32 GetAndValidateDefaultAccessPointL(CHXAvAccessPointDB* pDb);
- TUint32 PromptForDefaultAccessPointL(CHXAvAccessPointDB* pDb);
- bool PromptForDisconnectL(CHXAvAccessPointDB* pDb, TUint32 activeAccessPointId);
- TUint32 GetAccessPointFromPrefsL(CHXAvAccessPointDB* pDb);
- void ShowConnectNote();
- void HideConnectNote();
- private:
- comptr<IHXCommonClassFactory> m_factory;
- comptr<IHXPreferences> m_prefs;
- CHXAvWaitNotePtr m_spConnectNote;
- bool m_bDoingSelect;
- };
- typedef CHXSmartPtr<CHXAvNetConnectUI> CHXAvNetConnectUIPtr;
- #endif // CHXAVNETCONNECTUI_H__