|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : focuseventappui.h 00004 * Part of : Focus event example 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004 - 2006 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 __FOCUSEVENT_APPUI_H__ 00017 #define __FOCUSEVENT_APPUI_H__ 00018 00019 // INCLUDES 00020 #include <aknappui.h> 00021 00022 // FORWARD DECLARATIONS 00023 class CFocusEventAppView; 00024 00025 // CLASS DECLARATION 00026 /** 00027 * CFocusEventAppUi application UI class. 00028 * Interacts with the user through the UI and request message processing 00029 * from the handler class 00030 */ 00031 class CFocusEventAppUi : public CAknAppUi 00032 { 00033 public: // Constructors and destructors 00034 00035 /** 00036 * CFocusEventAppUi. 00037 * C++ default constructor. This needs to be public due to 00038 * the way the framework constructs the AppUi 00039 */ 00040 CFocusEventAppUi(); 00041 00042 /** 00043 * ~CFocusEventAppUi. 00044 * Virtual Destructor. 00045 */ 00046 virtual ~CFocusEventAppUi(); 00047 00048 public: // Functions from base classes 00049 00050 /** 00051 * From CAknAppUi, HandleForegroundEventL. 00052 * Handles a change of focus. 00053 * @param aForeground is ETrue is this application has focus. 00054 */ 00055 void HandleForegroundEventL( TBool aForeground ); 00056 00057 /** 00058 * From CEikAppUi, HandleCommandL. 00059 * Takes care of command handling. 00060 * @param aCommand Command to be handled. 00061 */ 00062 void HandleCommandL( TInt aCommand ); 00063 00064 private: // Constructors 00065 00066 /** 00067 * ConstructL. 00068 * 2nd phase constructor. 00069 */ 00070 void ConstructL(); 00071 00072 private: // Data 00073 00074 /** 00075 * The application view 00076 * Owned by CFocusEventAppUi 00077 */ 00078 CFocusEventAppView* iAppView; 00079 }; 00080 00081 #endif // __FOCUSEVENT_APPUI_H__ 00082 00083 // End of File
|
© Nokia 2009 |