chxavsettingslist.cpp
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:2k
- /************************************************************************
- * chxavsettingslist.cpp
- * ---------------------
- *
- * Synopsis:
- * Initializes settings list items with proper data values.
- *
- * Target:
- * Symbian OS
- *
- *
- * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- ************************************************************************/
- // Symbian includes...
- #include <akntextsettingpage.h>
- // Includes from this project...
- #include "chxavmisc.h"
- #include "chxavsettingsview.h"
- #include "chxavsettingslist.h"
- /////////////////////////////////////////////////////
- //
- CHXAvSettingsList::CHXAvSettingsList(const CHXAvSettingsDataPtr& pData)
- : m_spData(pData)
- {
- }
- ////////////////////////////////////////////////////
- //
- CHXAvSettingsList::~CHXAvSettingsList()
- {
- }
- ////////////////////////////////////////////////////////////
- // called after all settings items created and constructed;
- // now we can change items without having changes overwritten
- void CHXAvSettingsList::OnPostConstructL()
- {
- #if(0)
- if( m_pNetBWItem && !m_spData->IsMaxDelivBWConsistent() )
- {
- // show indication that max delivery bw as shown is approximate
- _LIT(KMismatchIndicationText, "*");
- m_pItem->SetCompulsoryIndTextL(KMismatchIndicationText);
- HandleChangeInItemArrayOrVisibilityL();
- }
- #endif
- }
- ///////////////////////////////////////////////////////////
- // called when user wants to edit a setting item
- void CHXAvSettingsList::EditItemL(TInt aIndex, TBool aCalledFromMenu)
- {
- CAknSettingItemArray* pArray = SettingItemArray();
- CAknSettingItem* pItem = pArray->At(aIndex);
-
- m_spData->EditItemL(pItem);
- CAknSettingItemList::EditItemL(aIndex, aCalledFromMenu);
- }
- ////////////////////////////////////////////////////
- // called when constructing from resource
- CAknSettingItem* CHXAvSettingsList::CreateSettingItemL(TInt id)
- {
- CAknSettingItem* pItem = m_spData->CreateSettingItemL(id);
- return pItem;
- }
- ////////////////////////////////////////////////////
- //
- TKeyResponse CHXAvSettingsList::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
- {
- return CAknSettingItemList::OfferKeyEventL(aKeyEvent, aType);
- }