sl@0: /* sl@0: * Copyright (c) 2009 Symbian Foundation Ltd sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Symbian Foundation Ltd - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * Implementation of CTigerAppUi class sl@0: */ sl@0: sl@0: sl@0: // INCLUDE FILES sl@0: #include "TigerAppUi.h" sl@0: #include "TigerContainer.h" sl@0: #include sl@0: #include "Tiger.hrh" sl@0: sl@0: #include sl@0: sl@0: // ================= MEMBER FUNCTIONS ======================= sl@0: // sl@0: // ---------------------------------------------------------- sl@0: // CTigerAppUi::ConstructL() sl@0: // ---------------------------------------------------------- sl@0: // sl@0: void CTigerAppUi::ConstructL() sl@0: { sl@0: BaseConstructL(); sl@0: iAppContainer = new (ELeave) CTigerContainer; sl@0: iAppContainer->SetMopParent(this); sl@0: iAppContainer->ConstructL( ClientRect() ); sl@0: AddToStackL( iAppContainer ); sl@0: } sl@0: sl@0: // ---------------------------------------------------- sl@0: // CTigerAppUi::~CTigerAppUi() sl@0: // Destructor sl@0: // Frees reserved resources sl@0: // ---------------------------------------------------- sl@0: // sl@0: CTigerAppUi::~CTigerAppUi() sl@0: { sl@0: if ( iAppContainer ) sl@0: { sl@0: RemoveFromStack( iAppContainer ); sl@0: delete iAppContainer; sl@0: } sl@0: } sl@0: sl@0: // ------------------------------------------------------------------------------ sl@0: // CTigerAppUi::::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane) sl@0: // This function is called by the EIKON framework just before it displays sl@0: // a menu pane. Its default implementation is empty, and by overriding it, sl@0: // the application can set the state of menu items dynamically according sl@0: // to the state of application data. sl@0: // ------------------------------------------------------------------------------ sl@0: // sl@0: void CTigerAppUi::DynInitMenuPaneL( sl@0: TInt /*aResourceId*/,CEikMenuPane* /*aMenuPane*/) sl@0: { sl@0: } sl@0: sl@0: // ---------------------------------------------------- sl@0: // CTigerAppUi::HandleKeyEventL( sl@0: // const TKeyEvent& aKeyEvent,TEventCode /*aType*/) sl@0: // Key event handler sl@0: // ---------------------------------------------------- sl@0: // sl@0: TKeyResponse CTigerAppUi::HandleKeyEventL( sl@0: const TKeyEvent& /*aKeyEvent*/ ,TEventCode /*aType*/) sl@0: { sl@0: return EKeyWasNotConsumed; sl@0: } sl@0: sl@0: // ---------------------------------------------------- sl@0: // CTigerAppUi::HandleCommandL(TInt aCommand) sl@0: // Command handler sl@0: // ---------------------------------------------------- sl@0: // sl@0: void CTigerAppUi::HandleCommandL(TInt aCommand) sl@0: { sl@0: switch ( aCommand ) sl@0: { sl@0: case EAknSoftkeyBack: sl@0: case EEikCmdExit: sl@0: { sl@0: Exit(); sl@0: break; sl@0: } sl@0: default: sl@0: break; sl@0: } sl@0: } sl@0: sl@0: // End of File