|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 ============================================================================ 00003 Name : HsWidgetAppUi.h 00004 Author : 00005 Copyright : This material, including documentation and any related computer 00006 programs, is protected by copyright controlled by Nokia Corporation. 00007 Description : Declares UI class for application. 00008 ============================================================================ 00009 */ 00010 00011 #ifndef __HSWIDGETAPPUI_H__ 00012 #define __HSWIDGETAPPUI_H__ 00013 00014 // INCLUDES 00015 #include <aknappui.h> 00016 00017 // FORWARD DECLARATIONS 00018 class CHsWidgetAppView; 00019 class CHsWidgetExample; 00020 class CHsSMWidgetExample; 00021 00022 // CLASS DECLARATION 00023 /** 00024 * CHsWidgetAppUi application UI class. 00025 * Interacts with the user through the UI and requests message processing 00026 * from the handler class 00027 */ 00028 class CHsWidgetAppUi : public CAknAppUi 00029 { 00030 public: 00031 // Constructors and destructor 00032 00033 /** 00034 * ConstructL. 00035 * 2nd phase constructor. 00036 */ 00037 void ConstructL(); 00038 00039 /** 00040 * CHsWidgetAppUi. 00041 * C++ default constructor. This needs to be public due to 00042 * the way the framework constructs the AppUi 00043 */ 00044 CHsWidgetAppUi(); 00045 00046 /** 00047 * ~CHsWidgetAppUi. 00048 * Virtual Destructor. 00049 */ 00050 virtual ~CHsWidgetAppUi(); 00051 00052 /** 00053 * DynInitMenuPaneL. 00054 * Dynamically initialises a menu pane. 00055 * @param aResourceId 00056 * @param aMenuPane The in-memory representation of the menu bar. 00057 */ 00058 void DynInitMenuPaneL( TInt aResourceId,CEikMenuPane* aMenuPane ); 00059 00060 private: 00061 // Functions from base classes 00062 00063 /** 00064 * From CEikAppUi, HandleCommandL. 00065 * Takes care of the command handling. 00066 * @param aCommand Command to be handled. 00067 */ 00068 void HandleCommandL(TInt aCommand); 00069 00070 /** 00071 * HandleStatusPaneSizeChange. 00072 * Called by the framework when the application status pane 00073 * size is changed. 00074 */ 00075 void HandleStatusPaneSizeChange(); 00076 00077 /** 00078 * HandleResourceChangeL 00079 * Called by the framework when system resources are changed, 00080 * for example the change of current theme 00081 */ 00082 void HandleResourceChangeL(TInt aType); 00083 00084 /** 00085 * From CCoeAppUi, HelpContextL. 00086 * Provides help context for the application. 00087 * size is changed. 00088 */ 00089 CArrayFix<TCoeHelpContext>* HelpContextL() const; 00090 00091 /** 00092 * From CAknAppUi 00093 * Intercept and process received command parameters 00094 */ 00095 TBool ProcessCommandParametersL( CApaCommandLine &aCommandLine ); 00096 00097 private: 00098 // Data 00099 00100 /** 00101 * The application view 00102 * Owned by CHsWidgetAppUi 00103 */ 00104 CHsWidgetAppView* iAppView; 00105 00106 /** 00107 * Pointer to Homescreen widget instance 00108 */ 00109 CHsWidgetExample* iWidgetExample; 00110 00111 /** 00112 * Pointer to Homescreen widget instance 00113 */ 00114 CHsSMWidgetExample* iSMWidgetExample; 00115 00116 }; 00117 00118 #endif // __HSWIDGETAPPUI_H__ 00119 // End of File
|
© Nokia 2009 |