|
Nokia N97 SDK Example Applications Guide |
00001 /** 00002 * Copyright (c) 2007 Nokia Corporation. 00003 * This material, including documentation and any related 00004 * computer programs, is protected by 00005 * copyright controlled by Nokia Corporation. 00006 */ 00007 00008 00009 00010 // INCLUDE FILES 00011 #include <avkon.hrh> 00012 #include <aknform.h> 00013 00014 #include "UEEx.pan" 00015 #include "UEExAppUi.h" 00016 #include "ueexform.h" 00017 #include "UEEx.hrh" 00018 #include "UEEx.rsg" 00019 00020 00021 // ============================ MEMBER FUNCTIONS =============================== 00022 00023 // ----------------------------------------------------------------------------- 00024 // CUEExAppUi::ConstructL() 00025 // Symbian 2nd phase constructor can leave. 00026 // ----------------------------------------------------------------------------- 00027 // 00028 void CUEExAppUi::ConstructL() 00029 { 00030 BaseConstructL( EAknEnableSkin ); 00031 00032 // Show the form and get out of here 00033 CUEExForm* form = new ( ELeave ) CUEExForm; 00034 CleanupStack::PushL( form ); 00035 form->ConstructL( R_FORM_MENUBAR ); 00036 CleanupStack::Pop(); 00037 form->ExecuteLD( R_DIALOG1 ); 00038 Exit(); 00039 } 00040 00041 // ----------------------------------------------------------------------------- 00042 // CUEExAppUi::CUEExAppUi() 00043 // C++ default constructor can NOT contain any code, that might leave. 00044 // ----------------------------------------------------------------------------- 00045 // 00046 CUEExAppUi::CUEExAppUi() 00047 { 00048 // no implementation required 00049 } 00050 00051 // ----------------------------------------------------------------------------- 00052 // CUEExAppUi::~CUEExAppUi() 00053 // Destructor. 00054 // ----------------------------------------------------------------------------- 00055 // 00056 CUEExAppUi::~CUEExAppUi() 00057 { 00058 } 00059 00060 // ----------------------------------------------------------------------------- 00061 // CUEExAppUi::HandleCommandL() 00062 // Takes care of command handling. 00063 // ----------------------------------------------------------------------------- 00064 // 00065 void CUEExAppUi::HandleCommandL( TInt aCommand ) 00066 { 00067 switch( aCommand ) 00068 { 00069 case EEikCmdExit: 00070 case EAknSoftkeyExit: 00071 Exit(); 00072 break; 00073 00074 default: 00075 Panic( EUEExBasicUi ); 00076 break; 00077 } 00078 } 00079 00080 00081
|
© Nokia 2009 |