sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "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: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @test sl@0: @internalComponent sl@0: */ sl@0: sl@0: #include sl@0: #include "t_fpsappeng.h" sl@0: #include "t_fpsappview.h" sl@0: #include "t_fpsapp.h" sl@0: #include "t_fpsappui.h" sl@0: sl@0: // sl@0: // CFpsAppUi sl@0: // sl@0: sl@0: /** sl@0: * constructL method that creates the AppView object sl@0: * sl@0: */ sl@0: void CFpsAppUi::ConstructL() sl@0: { sl@0: RDebug::Print(_L("Create App Framework\n")); sl@0: BaseConstructL(); sl@0: iAppView = CFpsAppView::NewL(ClientRect()); sl@0: } sl@0: sl@0: /** sl@0: * Destructor sl@0: * sl@0: */ sl@0: CFpsAppUi::~CFpsAppUi() sl@0: { sl@0: delete iAppView; sl@0: } sl@0: sl@0: /** sl@0: * Handles the Menu events sl@0: * @param aCommand - command to be passed based on the menu item sl@0: * selected by the user sl@0: * sl@0: */ sl@0: void CFpsAppUi::HandleCommandL(TInt aCommand) sl@0: { sl@0: switch (aCommand) sl@0: { sl@0: case EEikCmdExit: sl@0: { sl@0: Exit(); sl@0: break; sl@0: } sl@0: default: sl@0: { sl@0: User::Leave(KErrAbort); sl@0: break; sl@0: } sl@0: } sl@0: } sl@0: sl@0: sl@0: sl@0: