|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : BillboardAppUi.cpp 00004 * Part of : OpenGLEx / Billboard 00005 * 00006 * Copyright (c) 2005-2006 Nokia Corporation. 00007 * This material, including documentation and any related 00008 * computer programs, is protected by copyright controlled by 00009 * Nokia Corporation. 00010 * ============================================================================== 00011 */ 00012 00013 // INCLUDE FILES 00014 #include "BillboardAppUi.h" 00015 #include "BillboardContainer.h" 00016 #include <Billboard.rsg> 00017 #include "billboard.hrh" 00018 00019 #include <avkon.hrh> 00020 00021 // ================= MEMBER FUNCTIONS ======================= 00022 // 00023 // ---------------------------------------------------------- 00024 // CBillboardAppUi::ConstructL() 00025 // ---------------------------------------------------------- 00026 // 00027 void CBillboardAppUi::ConstructL() 00028 { 00029 BaseConstructL(); 00030 iAppContainer = new (ELeave) CBillboardContainer; 00031 iAppContainer->SetMopParent(this); 00032 iAppContainer->ConstructL( ClientRect(), this ); 00033 AddToStackL( iAppContainer ); 00034 00035 // Series60 blocks simultaneous key presses by default. 00036 // To use multiple keys at the same time the keyblocking 00037 // must be disabled. 00038 SetKeyBlockMode( ENoKeyBlock ); 00039 } 00040 00041 // ---------------------------------------------------- 00042 // CBillboardAppUi::~CBillboardAppUi() 00043 // Destructor. Frees any reserved resources. 00044 // ---------------------------------------------------- 00045 // 00046 CBillboardAppUi::~CBillboardAppUi() 00047 { 00048 if ( iAppContainer ) 00049 { 00050 RemoveFromStack( iAppContainer ); 00051 delete iAppContainer; 00052 } 00053 } 00054 00055 // ------------------------------------------------------------------------------ 00056 // CBillboardAppUi::::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane) 00057 // This function is called by the EIKON framework just before it displays 00058 // a menu pane. Its default implementation is empty, and by overriding it, 00059 // the application can set the state of menu items dynamically according 00060 // to the state of application data. 00061 // ------------------------------------------------------------------------------ 00062 // 00063 void CBillboardAppUi::DynInitMenuPaneL( 00064 TInt /*aResourceId*/,CEikMenuPane* /*aMenuPane*/) 00065 { 00066 } 00067 00068 // ---------------------------------------------------- 00069 // CBillboardAppUi::HandleCommandL(TInt aCommand) 00070 // ---------------------------------------------------- 00071 // 00072 void CBillboardAppUi::HandleCommandL(TInt aCommand) 00073 { 00074 switch ( aCommand ) 00075 { 00076 case EAknSoftkeyBack: 00077 case EEikCmdExit: 00078 { 00079 Exit(); 00080 break; 00081 } 00082 default: 00083 break; 00084 } 00085 } 00086 00087 // End of File
|
© Nokia 2009 |