chxavselectsettingsviewwindow.h
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:2k
源码类别:
Symbian
开发平台:
C/C++
- /************************************************************************
- * chxavselectsettingsviewwindow.h
- * -------------------------------
- *
- * Synopsis:
- * Window for the CHXAvSelectSettingsView view.
- *
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- #ifndef _chxavselectsettingsviewwindow_h_
- #define _chxavselectsettingsviewwindow_h_
- // Symbian includes...
- #include <eiklbo.h> // MEikListBoxObserver
- #include <aknlists.h>
- // Includes fromt this project...
- #include "chxbody.h"
- #include "chxsmartptr.h"
- #include "chxmakesmartptr.h"
- #include "chxavrefptr.h"
- // forward decl
- class CHXAvSelectSettingsView;
- // class avSelectSettingsViewWindow
- class CHXAvSelectSettingsViewWindow
- : public CCoeControl
- , public MEikListBoxObserver
- , public CHXBody
- {
- public:
- // ctor and dtor
- CHXAvSelectSettingsViewWindow(CHXAvSelectSettingsView* pView);
- virtual ~CHXAvSelectSettingsViewWindow();
- void ConstructL(const TRect& rc, TInt idxInit = 0);
- void UpdateTopAndBottomL();
- private:
- // disallow assignment and copy
- CHXAvSelectSettingsViewWindow(const CHXAvSelectSettingsViewWindow& rhs);
- CHXAvSelectSettingsViewWindow& operator=(const CHXAvSelectSettingsViewWindow& rhs);
- public:
- // methods
- // CCoeControl
- CCoeControl* ComponentControl( TInt aIndex ) const;
- TInt CountComponentControls() const;
- void SizeChanged();
- void GetHelpContext(TCoeHelpContext& aContext) const;
- TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- // MEikListBoxObserver
- void HandleListBoxEventL(CEikListBox* /*aListBox*/,TListBoxEvent aEventType);
- TInt GetCurrentSelectionIndex() const;
- private:
- // implementation
- void ShowMainSelectionListBoxL(TInt idxInit);
- void SetMainSelectionListBoxIconsL();
- CDesCArrayFlat* AllocListItemsL() const;
- void AddItemHelperL(CDesCArrayFlat* pItems, TInt idxIcon, TInt resId) const;
- private:
- // data
- refptr<CAknSingleLargeStyleListBox> m_spCategoryListBox;
- CHXAvSelectSettingsView* m_wpView;
- };
- typedef CHXSmartPtr<CHXAvSelectSettingsViewWindow> CHXAvSelectSettingsViewWindowPtr;
- #endif // _chxavselectsettingsviewwindow_h_