examples/SFExamples/RecipeEx/src/RecipeExAppUi.cpp

00001 // Symbian Foundation Example Code
00002 // 
00003 // This software is in the public domain. No copyright is claimed, and you 
00004 // may use it for any purpose without license from the Symbian Foundation.
00005 // No warranty for any purpose is expressed or implied by the authors or
00006 // the Symbian Foundation. 
00007  
00008 
00009 // INCLUDE FILES
00010 #include <avkon.hrh>
00011 #include <aknmessagequerydialog.h>
00012 #include <aknnotewrappers.h>
00013 #include <stringloader.h>
00014 
00015 #include <RecipeEx_0xE8FAA390.rsg>
00016 #include "RecipeEx.hrh"
00017 #include "RecipeEx.pan"
00018 #include "RecipeExApplication.h"
00019 #include "RecipeExAppUi.h"
00020 #include "MainView.h"
00021 #include "DeviceCapsView.h"
00022 #include "SensorView.h"
00023 #include "MobilityView.h"
00024 
00025 
00026 // ============================ MEMBER FUNCTIONS ===============================
00027 
00028 
00033 void CRecipeExAppUi::ConstructL()
00034         {
00035         // Initialise app UI with standard value.
00036         BaseConstructL(CAknAppUi::EAknEnableSkin);
00037 
00038         // Create view objects
00039     CMainView* mainView = CMainView::NewLC();
00040     AddViewL( mainView );        // transfer ownership to CAknViewAppUi
00041     CleanupStack::Pop( mainView );
00042 
00043     CDeviceCapsView* deviceCapsView = CDeviceCapsView::NewLC();
00044     AddViewL( deviceCapsView );        // transfer ownership to CAknViewAppUi
00045     CleanupStack::Pop( deviceCapsView );
00046     
00047     CSensorView* sensorView = CSensorView::NewLC();
00048     AddViewL( sensorView );        // transfer ownership to CAknViewAppUi
00049     CleanupStack::Pop( sensorView );
00050 
00051     CMobilityView* mobilityView = CMobilityView::NewLC();
00052     AddViewL( mobilityView );        // transfer ownership to CAknViewAppUi
00053     CleanupStack::Pop( mobilityView );
00054 
00055     SetDefaultViewL( *mainView );
00056         
00057         }
00062 CRecipeExAppUi::CRecipeExAppUi()
00063         {
00064         // No implementation required
00065         }
00066 
00071 CRecipeExAppUi::~CRecipeExAppUi()
00072         {
00073         }
00074 
00079 void CRecipeExAppUi::HandleCommandL(TInt aCommand)
00080         {
00081         switch (aCommand)
00082                 {
00083                 case EEikCmdExit:
00084                 case EAknSoftkeyExit:
00085                         Exit();
00086                         break;
00087                 default:
00088                         break;
00089                 }
00090         }
00091 
00092 
00093 
00094 // End of File

Generated by  doxygen 1.6.2