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

Symbian

开发平台:

Visual C++

  1. /************************************************************************
  2.  * chxavsettingsview.h
  3.  * -------------------
  4.  *
  5.  * Synopsis:
  6.  * Contains the declaration of the setting view, which manages prefs.
  7.  *
  8.  * Target:
  9.  * Symbian OS
  10.  *
  11.  *
  12.  * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
  13.  *
  14.  ************************************************************************/
  15. #ifndef _chxavsettingsview_h_
  16. #define _chxavsettingsview_h_
  17. // Helix includes...
  18. #include "hxprefs.h"
  19. // Includes from this project...
  20. #include "ihxsymplayerstateobserver.h"
  21. #include "chxavsettingsviewwindow.h"
  22. #include "chxavviewbase.h"
  23. #include "chxavplayerui.h"
  24. #include "comptr.h"
  25. // class CHXAvSettingsView
  26. class CHXAvSettingsView 
  27. : public CHXAvViewBase
  28. , public PrefChangeObserver
  29. {
  30.     friend class CHXSettingsViewWindow;
  31. public:
  32.     // Construction...
  33.     CHXAvSettingsView(TInt idxView, CHXAvPlayerUI *pContext);
  34.     virtual ~CHXAvSettingsView(); 
  35.     virtual void ConstructL();
  36. public:
  37.     void SetActivePageIndexL(TInt idxPage);
  38.     //PrefChangeObserver
  39.     void OnPrefsChanged();
  40. private:
  41.     // CHXAvViewBase implementation...
  42.     void UpdateViewStateL();
  43.     CCoeControl* CreateViewWindowForActivatingViewL();
  44.     void FinishViewDeactivateL();
  45.     // CAknView
  46.     void HandleCommandL(TInt command);
  47.     void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
  48.     // misc implementation
  49.     void DoBackL();
  50.     void SaveChangesL();
  51. private:
  52.     CHXAvSettingsViewWindowPtr m_spWindow;
  53.     TInt m_idxPendingActivePage;
  54.     CHXAvPlayerUI* m_pPlayerUi;
  55. };
  56. #endif // _chxavsettingsview_h_