Nokia N97 SDK
Example Applications Guide

HsWidgetDocument.h

00001 /*
00002  ============================================================================
00003  Name           : HsWidgetDocument.h
00004  Author   : 
00005  Copyright   : Your copyright notice
00006  Description : Declares document class for application.
00007  ============================================================================
00008  */
00009 
00010 #ifndef __HSWIDGETDOCUMENT_H__
00011 #define __HSWIDGETDOCUMENT_H__
00012 
00013 // INCLUDES
00014 #include <akndoc.h>
00015 
00016 // FORWARD DECLARATIONS
00017 class CHsWidgetAppUi;
00018 class CEikApplication;
00019 
00020 // CLASS DECLARATION
00021 
00022 /**
00023  * CHsWidgetDocument application class.
00024  * An instance of class CHsWidgetDocument is the Document part of the
00025  * AVKON application framework for the HsWidget example application.
00026  */
00027 class CHsWidgetDocument : public CAknDocument
00028         {
00029 public:
00030         // Constructors and destructor
00031 
00032         /**
00033          * NewL.
00034          * Two-phased constructor.
00035          * Construct a CHsWidgetDocument for the AVKON application aApp
00036          * using two phase construction, and return a pointer
00037          * to the created object.
00038          * @param aApp Application creating this document.
00039          * @return A pointer to the created instance of CHsWidgetDocument.
00040          */
00041         static CHsWidgetDocument* NewL(CEikApplication& aApp);
00042 
00043         /**
00044          * NewLC.
00045          * Two-phased constructor.
00046          * Construct a CHsWidgetDocument for the AVKON application aApp
00047          * using two phase construction, and return a pointer
00048          * to the created object.
00049          * @param aApp Application creating this document.
00050          * @return A pointer to the created instance of CHsWidgetDocument.
00051          */
00052         static CHsWidgetDocument* NewLC(CEikApplication& aApp);
00053 
00054         /**
00055          * ~CHsWidgetDocument
00056          * Virtual Destructor.
00057          */
00058         virtual ~CHsWidgetDocument();
00059 
00060 public:
00061         // Functions from base classes
00062 
00063         /**
00064          * CreateAppUiL
00065          * From CEikDocument, CreateAppUiL.
00066          * Create a CHsWidgetAppUi object and return a pointer to it.
00067          * The object returned is owned by the Uikon framework.
00068          * @return Pointer to created instance of AppUi.
00069          */
00070         CEikAppUi* CreateAppUiL();
00071 
00072 private:
00073         // Constructors
00074 
00075         /**
00076          * ConstructL
00077          * 2nd phase constructor.
00078          */
00079         void ConstructL();
00080 
00081         /**
00082          * CHsWidgetDocument.
00083          * C++ default constructor.
00084          * @param aApp Application creating this document.
00085          */
00086         CHsWidgetDocument(CEikApplication& aApp);
00087 
00088         };
00089 
00090 #endif // __HSWIDGETDOCUMENT_H__
00091 // End of File

© Nokia 2009

Back to top