SettingsDialog.cpp
上传用户:sempras
上传日期:2007-03-04
资源大小:821k
文件大小:1k
- /*
- * ============================================================================
- * Name : CSettingsDialog from SettingsDialog.cpp
- * Part of : EmailExample
- * Created : 09/11/2003 by Forum Nokia
- * Implementation notes:
- * Dialog which implements custom choicelist
- *
- * Version : 1.0
- * Copyright: Nokia Corporation
- * ============================================================================
- */
- #include "SettingsDialog.h"
- #include "eikdialg.h"
- #include "EmailExample.hrh"
- #include "eikchlst.h"
- CSettingsDialog::CSettingsDialog()
- {
- }
- void CSettingsDialog::PreLayoutDynInitL()
- {
- CCoeControl* myControlPtr = this->Control(EChoiceListEditor1);
- CEikChoiceList* myChoiceList = static_cast<CEikChoiceList*>(myControlPtr);
- myChoiceList->SetCurrentItem( iEngine->iProtocolType );
- }
- TBool CSettingsDialog::OkToExitL(TInt /*aKeycode*/)
- {
- CCoeControl* myControlPtr = this->Control(EChoiceListEditor1);
- CEikChoiceList* myChoiceList = static_cast<CEikChoiceList*>(myControlPtr);
- iEngine->iSettingProtocolType = myChoiceList->CurrentItem();
- return ETrue;
- }