Nokia N97 SDK Example Applications Guide |
00001 /* 00002 ============================================================================ 00003 Name : HsWidgetApplication.h 00004 Author : 00005 Copyright : Your copyright notice 00006 Description : Declares main application class. 00007 ============================================================================ 00008 */ 00009 00010 #ifndef __HSWIDGETAPPLICATION_H__ 00011 #define __HSWIDGETAPPLICATION_H__ 00012 00013 // INCLUDES 00014 #include <aknapp.h> 00015 #include "HsWidget.hrh" 00016 00017 // UID for the application; 00018 // this should correspond to the uid defined in the mmp file 00019 const TUid KUidHsWidgetApp = 00020 { 00021 _UID3 00022 }; 00023 00024 // CLASS DECLARATION 00025 00026 /** 00027 * CHsWidgetApplication application class. 00028 * Provides factory to create concrete document object. 00029 * An instance of CHsWidgetApplication is the application part of the 00030 * AVKON application framework for the HsWidget example application. 00031 */ 00032 class CHsWidgetApplication : public CAknApplication 00033 { 00034 public: 00035 // Functions from base classes 00036 00037 /** 00038 * From CApaApplication, AppDllUid. 00039 * @return Application's UID (KUidHsWidgetApp). 00040 */ 00041 TUid AppDllUid() const; 00042 00043 protected: 00044 // Functions from base classes 00045 00046 /** 00047 * From CApaApplication, CreateDocumentL. 00048 * Creates CHsWidgetDocument document object. The returned 00049 * pointer in not owned by the CHsWidgetApplication object. 00050 * @return A pointer to the created document object. 00051 */ 00052 CApaDocument* CreateDocumentL(); 00053 }; 00054 00055 #endif // __HSWIDGETAPPLICATION_H__ 00056 // End of File
© Nokia 2009 |