Nokia N97 SDK
Example Applications Guide

HsWidgetApplication.h

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

© Nokia 2009

Back to top