- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
chxavsettingslist.cpp
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:2k
源码类别:
Symbian
开发平台:
Visual C++
- /************************************************************************
- * 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);
- }