S60 3rd Edition SDK for Symbian OS Example Applications Guide

# helloworldbasicdocument.h

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

© Nokia 2006 |