FepSetupAppUi.cpp
资源名称:Symbian.zip [点击查看]
上传用户:tjsjht
上传日期:2021-01-13
资源大小:25k
文件大小:3k
源码类别:
输入法编程
开发平台:
Visual C++
- /*
- * ============================================================================
- * Name : CFepSetupAppUi from FepSetupAppUi.cpp
- * Part of : FepSetup
- * Created : 02/23/2003 by Forum Nokia
- * Implementation notes:
- * Initial content was generated by Series 60 AppWizard.
- * Version :
- * Copyright:
- * ============================================================================
- */
- // INCLUDE FILES
- #include "FepSetupAppUi.h"
- #include "FepSetupContainer.h"
- #include <FepSetup.rsg>
- #include "fepsetup.hrh"
- #include <avkon.hrh>
- // ================= MEMBER FUNCTIONS =======================
- //
- // ----------------------------------------------------------
- // CFepSetupAppUi::ConstructL()
- // ?implementation_description
- // ----------------------------------------------------------
- //
- void CFepSetupAppUi::ConstructL()
- {
- BaseConstructL();
- iAppContainer = new (ELeave) CFepSetupContainer;
- iAppContainer->SetMopParent(this);
- iAppContainer->ConstructL( ClientRect() );
- AddToStackL( iAppContainer );
- }
- // ----------------------------------------------------
- // CFepSetupAppUi::~CFepSetupAppUi()
- // Destructor
- // Frees reserved resources
- // ----------------------------------------------------
- //
- CFepSetupAppUi::~CFepSetupAppUi()
- {
- if (iAppContainer)
- {
- RemoveFromStack( iAppContainer );
- delete iAppContainer;
- }
- }
- // ------------------------------------------------------------------------------
- // CFepSetupAppUi::::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)
- // This function is called by the EIKON framework just before it displays
- // a menu pane. Its default implementation is empty, and by overriding it,
- // the application can set the state of menu items dynamically according
- // to the state of application data.
- // ------------------------------------------------------------------------------
- //
- void CFepSetupAppUi::DynInitMenuPaneL(
- TInt /*aResourceId*/,CEikMenuPane* /*aMenuPane*/)
- {
- }
- // ----------------------------------------------------
- // CFepSetupAppUi::HandleKeyEventL(
- // const TKeyEvent& aKeyEvent,TEventCode /*aType*/)
- // ?implementation_description
- // ----------------------------------------------------
- //
- TKeyResponse CFepSetupAppUi::HandleKeyEventL(
- const TKeyEvent& /*aKeyEvent*/,TEventCode /*aType*/)
- {
- return EKeyWasNotConsumed;
- }
- // ----------------------------------------------------
- // CFepSetupAppUi::HandleCommandL(TInt aCommand)
- // ?implementation_description
- // ----------------------------------------------------
- //
- void CFepSetupAppUi::HandleCommandL(TInt aCommand)
- {
- switch ( aCommand )
- {
- case EAknSoftkeyBack:
- case EEikCmdExit:
- {
- Exit();
- break;
- }
- case EFepSetupCmdAppInstallFep:
- {
- iAppContainer->InstallFepL();
- break;
- }
- case EFepSetupCmdAppUninstallFep:
- {
- iAppContainer->UnInstallFepL();
- break;
- }
- // TODO: Add Your command handling code here
- default:
- break;
- }
- }
- // End of File