Nokia N97 SDK
Example Applications Guide

openchelloglibeventexdoc.h

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

© Nokia 2009

Back to top