|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : OpenCHelloGlibEventExUi.h 00004 * Part of : OpenC Hello World with Glib Events Example 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2007 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 #ifndef __OPENCHELLOGLIBEVENTEXUI_H__ 00017 #define __OPENCHELLOGLIBEVENTEXUI_H__ 00018 00019 // INCLUDES 00020 #include <aknappui.h> 00021 #include "OpenCHelloGlibEventExHandler.h" 00022 #include <glib.h> 00023 00024 00025 // FORWARD DECLARATIONS 00026 class COpenCHelloGlibEventExView; 00027 00028 00029 // CLASS DECLARATION 00030 /** 00031 * COpenCHelloGlibEventExUi application UI class. 00032 * Interacts with the user through the UI and request message processing 00033 * from the handler class 00034 */ 00035 class COpenCHelloGlibEventExUi : public CAknAppUi 00036 { 00037 public: // Constructors and destructor 00038 00039 /** 00040 * ConstructL. 00041 * 2nd phase constructor. 00042 */ 00043 void ConstructL(); 00044 00045 /** 00046 * COpenCHelloGlibEventExUi. 00047 * C++ default constructor. This needs to be public due to 00048 * the way the framework constructs the AppUi 00049 */ 00050 COpenCHelloGlibEventExUi(); 00051 00052 /** 00053 * ~COpenCHelloGlibEventExUi. 00054 * Virtual Destructor. 00055 */ 00056 virtual ~COpenCHelloGlibEventExUi(); 00057 00058 private: // Functions from base classes 00059 00060 /** 00061 * From CEikAppUi, HandleCommandL. 00062 * Takes care of command handling. 00063 * @param aCommand Command to be handled. 00064 */ 00065 void HandleCommandL( TInt aCommand ); 00066 00067 /** 00068 * HandleStatusPaneSizeChange. 00069 * Called by the framework when the application status pane 00070 * size is changed. 00071 */ 00072 00073 void HandleStatusPaneSizeChange(); 00074 00075 private: // Data 00076 00077 /** 00078 * The application view 00079 * Owned by CHelloWorldBasicAppUi 00080 */ 00081 COpenCHelloGlibEventExView* iAppView; 00082 00083 /** 00084 * GMainContext to add the Timeout Source 00085 */ 00086 GMainContext* iMainContext; 00087 00088 /** 00089 * Glib Timeout Source 00090 */ 00091 GSource* iTimeoutSource; 00092 00093 /** 00094 * Event Handler Active Object 00095 */ 00096 COpenCHelloGlibEventExHandler* iGlibEventHandler; 00097 }; 00098 00099 #endif // __OPENCHELLOGLIBEVENTEXUI_H__ 00100 00101 // End of File 00102
|
© Nokia 2009 |