Example Application Guide

 

geoprofilesappui.cpp

00001 /*
00002 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
00003 * All rights reserved.
00004 * This component and the accompanying materials are made available
00005 * under the terms of the License "Eclipse Public License v1.0"
00006 * which accompanies this distribution, and is available
00007 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
00008 *
00009 * Initial Contributors:
00010 * Nokia Corporation - initial contribution.
00011 *
00012 * Contributors:
00013 *
00014 * Description:  Application class for Geo Profiles Application UI.
00015 *
00016 */
00017 
00018 
00019 // SYSTEM FILES
00020 #include <avkon.hrh>
00021 
00022 // USER INCLUDES
00023 #include "geoprofilesappui.h"
00024 #include "geoprofiles.hrh"
00025 #include "geoprofilesview.h"
00026 
00027 // ----------------- Member funtions for CGeoProfilesApp ------------------------------
00028 
00029 // ---------------------------------------------------------------------------
00030 // void CGeoProfilesAppUi::ConstructL
00031 // ---------------------------------------------------------------------------
00032 //
00033 void CGeoProfilesAppUi::ConstructL()
00034     {
00035     BaseConstructL( EAknEnableSkin | EAknEnableMSK );
00036         
00037     // Create the View object and add it to the View stack
00038     CGeoProfilesView* view = CGeoProfilesView::NewL();
00039     CleanupStack::PushL( view );        
00040     AddViewL( view );
00041     CleanupStack::Pop( view );
00042     iGeoProfilesView = view;
00043     }
00044 
00045 // ---------------------------------------------------------------------------
00046 // CGeoProfilesAppUi::~CGeoProfilesAppUi
00047 // ---------------------------------------------------------------------------
00048 //
00049 CGeoProfilesAppUi::~CGeoProfilesAppUi()
00050     {        
00051     }
00052 
00053 // ---------------------------------------------------------------------------
00054 // TKeyResponse CGeoProfilesAppUi::HandleKeyEventL
00055 // ---------------------------------------------------------------------------
00056 //
00057 TKeyResponse CGeoProfilesAppUi::HandleKeyEventL( 
00058                                     const TKeyEvent& /*aKeyEvent*/,
00059                                           TEventCode /*aType*/ )
00060     {
00061     return EKeyWasNotConsumed;
00062     }
00063 
00064 // ---------------------------------------------------------------------------
00065 // void CGeoProfilesAppUi::HandleCommandL
00066 // ---------------------------------------------------------------------------
00067 //
00068 void CGeoProfilesAppUi::HandleCommandL( TInt aCommand )
00069     {
00070     switch ( aCommand )
00071         {
00072         case EAknSoftkeyExit: 
00073         case EEikCmdExit:
00074             {
00075             Exit();
00076             break;
00077             }
00078        default: 
00079             {                                       
00080             break; 
00081             }
00082         }
00083     }

© Nokia 2009

Back to top