chxavcheckboxlistsettingitem.h
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:2k
源码类别:
Symbian
开发平台:
C/C++
- /************************************************************************
- * chxavcheckboxlistsettingitem.h
- * --------------------
- *
- * Synopsis:
- *
- * settings page item comprising checkbox list for configuring mask value
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- #ifndef CHXAVCHECKBOXLISTSETTINGITEM_H__
- #define CHXAVCHECKBOXLISTSETTINGITEM_H__
- // Symbian includes...
- #include <aknlists.h>
- #include <akncheckboxsettingpage.h>
- #include <aknsettingitemlist.h>
- // class CHXAvCheckBoxListSettingItem
- class CHXAvCheckBoxListSettingItem
- : public CAknSettingItem
- {
- public:
- CHXAvCheckBoxListSettingItem( TInt aIdentifier, TUint& mask);
- ~CHXAvCheckBoxListSettingItem();
- // CAknSettingItem
- virtual void StoreL();
- virtual void EditItemL(TBool aCalledFromMenu);
- virtual const TDesC& SettingTextL();
- virtual void HandleSettingPageEventL(CAknSettingPage* pSettingPage,
- TAknSettingPageEvent eventType);
- private:
- // implementation helpers
- void CleanupList();
- CSelectionItemList* CreateListL();
- TUint CalculateMask();
- private:
- enum
- {
- k_maxHexDigits = 10 // 8 digits + 2 for '0x'
- };
- TUint& m_mask;
- CSelectionItemList* m_pSelectionList;
- TBuf<k_maxHexDigits> m_textBuf;
- };
- // class CHXAvCheckBoxListSettingPage
- class CHXAvCheckBoxListSettingPage : public CAknCheckBoxSettingPage
- {
- public:
- CHXAvCheckBoxListSettingPage(TInt idRes, CSelectionItemList* pItemArray);
- protected:
- virtual void ProcessCommandL(TInt aCommandId);
- };
- #endif //CHXAVCHECKBOXLISTSETTINGITEM_H__