|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================ 00003 * Name : LmUiRefAppUi.h 00004 * Part of : Landmarks UI Reference Application 00005 * Interface : 00006 * Description : 00007 * Declares UI class for application. 00008 * Version : 00009 * 00010 * Copyright (c) 2005-2006 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. 00014 * ============================================================================ 00015 */ 00016 00017 #ifndef LMUIREFAPPUI_H 00018 #define LMUIREFAPPUI_H 00019 00020 // INCLUDES 00021 #include <eikapp.h> 00022 #include <eikdoc.h> 00023 #include <e32std.h> 00024 #include <coeccntx.h> 00025 #include <aknappui.h> 00026 #include <AknViewAppUi.h> 00027 00028 #include <EPos_Landmarks.h> 00029 00030 // FORWARD DECLARATIONS 00031 class CLmkLandmarkSelectorDlg; 00032 class CLmUiRefAppDocument; 00033 00034 // CONSTANTS 00035 //const ?type ?constant_var = ?constant; 00036 00037 00038 // CLASS DECLARATION 00039 00040 /** 00041 * Application UI class. 00042 * Provides support for the following features: 00043 * - EIKON control architecture 00044 * 00045 */ 00046 class CLmUiRefAppUi : public CAknViewAppUi 00047 { 00048 public: // // Constructors and destructor 00049 00050 /** 00051 * EPOC default constructor. 00052 */ 00053 void ConstructL(); 00054 00055 /** 00056 * Destructor. 00057 */ 00058 ~CLmUiRefAppUi(); 00059 00060 public: // New functions 00061 00062 00063 /** 00064 *Return reference to document 00065 * @return reference to CLmkDocument 00066 */ 00067 00068 00069 CLmUiRefAppDocument& Document() const; 00070 00071 public: // Functions from base classes 00072 00073 private: 00074 // From MEikMenuObserver 00075 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); 00076 00077 private: 00078 /** 00079 * From CEikAppUi, takes care of command handling. 00080 * @param aCommand command to be handled 00081 */ 00082 void HandleCommandL(TInt aCommand); 00083 00084 /** 00085 * From CEikAppUi, handles key events. 00086 * @param aKeyEvent Event to handled. 00087 * @param aType Type of the key event. 00088 * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 00089 */ 00090 virtual TKeyResponse HandleKeyEventL( 00091 const TKeyEvent& aKeyEvent,TEventCode aType); 00092 00093 private: //Data 00094 00095 }; 00096 00097 #endif 00098 00099 // End of File
|
© Nokia 2006 |