chxavsettingsviewwindow.h
Upload User: dangjiwu
Upload Date: 2013-07-19
Package Size: 42019k
Code Size: 2k
Category:

Symbian

Development Platform:

Visual C++

  1. /************************************************************************
  2.  * chxavsettingsviewwindow.h
  3.  * -------------------------
  4.  *
  5.  * Synopsis:
  6.  * Contains the declaration of the setting view window.  
  7.  * This window entering/altering player settings.
  8.  *
  9.  * Target:
  10.  * Symbian OS
  11.  *
  12.  *
  13.  * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
  14.  *
  15.  ************************************************************************/
  16. #ifndef _chxavsettingsviewwindow_h_
  17. #define _chxavsettingsviewwindow_h_
  18. // Helix includes...
  19. #include <aknlists.h>
  20. // Includes from this project...
  21. #include "chxavrefptr.h"
  22. #include "chxsmartptr.h"
  23. #include "comptr.h"
  24. #include "chxavsettingslist.h"
  25. // forward decl
  26. //class CEikColumnListBox;
  27. //class CAknSearchField;
  28. //class CEikFormattedCellListBox;
  29. class CAknNavigationControlContainer;
  30. class CAknNavigationDecorator;
  31. class CAknTitlePane;
  32. class CAknTabGroup;
  33. class CHXAvSettingsView;
  34. class CHXLitePrefs;
  35. // class CHXAvSettingsViewWindow
  36. class CHXAvSettingsViewWindow
  37. : public CCoeControl
  38. , public CHXBody
  39. {
  40. public:
  41.     // Construction...
  42.     CHXAvSettingsViewWindow(CHXAvSettingsView* pView);
  43.     ~CHXAvSettingsViewWindow();
  44.     void ConstructL(const TRect& rc, TInt idxInitTab = 0);
  45. public:
  46.     void EditCurrentItemL();
  47.     void ApplyChangesL();
  48.     void UpdateNaviPaneL();
  49.     void ShowPageL(TInt idxPage);
  50.     TInt GetCurrentPageIndex() const;
  51.     void UpdateTopAndBottomL();
  52. // CCoeControl
  53.     CCoeControl* ComponentControl( TInt aIndex ) const;
  54.     TInt CountComponentControls() const;
  55.     void SizeChanged();
  56.     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
  57.     void GetHelpContext(TCoeHelpContext& aContext) const;
  58. private:
  59. // implementation helpers
  60.     void CreateTabsL(TInt idxInitTab);
  61.     void CleanUpTabs();
  62.     
  63. private:
  64. // data
  65.     refptr<CHXAvSettingsList>         m_spList; // list for active tab
  66.     CAknNavigationControlContainer* m_pNaviPane;
  67.     CAknNavigationDecorator* m_pDecoratedTabGroup;
  68.     CAknTitlePane* m_pTitlePane;
  69.     CAknTabGroup* m_pTabGroup;
  70.     CHXAvSettingsView* m_pView;
  71.     CHXAvSettingsDataPtr m_spData;
  72.     comptr<CHXLitePrefs>                m_prefs;
  73.     comptr<IHXCommonClassFactory>       m_factory;
  74. };
  75. typedef CHXSmartPtr<CHXAvSettingsViewWindow> CHXAvSettingsViewWindowPtr;
  76. #endif //_chxavsettingsviewwindow_h_