Nokia N97 SDK
Example Applications Guide

sensorexampledocument.h

00001     /*
00002 * ==============================================================================
00003 *  Name        : sensorexampledocument.h
00004 *  Part of     : sensorexample
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 #ifndef __SENSOREXAMPLEDOCUMENT_H__
00017 #define __SENSOREXAMPLEDOCUMENT_H__
00018 
00019 // INCLUDES
00020 #include <akndoc.h>
00021 
00022 // FORWARD DECLARATIONS
00023 class CSensorExampleAppUi;
00024 class CEikApplication;
00025 
00026 
00027 // CLASS DECLARATION
00028 
00029 /**
00030 * CSensorExampleDocument application class.
00031 * An instance of class CSensorExampleDocument is the Document part of the
00032 * AVKON application framework for the sensor example application.
00033 */
00034 class CSensorExampleDocument : public CAknDocument
00035     {
00036     public: // Constructors and destructor
00037 
00038         /**
00039         * NewL.
00040         * Two-phased constructor.
00041         * Construct a CSensorExampleDocument 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 CSensorExampleDocument.
00046         */
00047         static CSensorExampleDocument* NewL( CEikApplication& aApp );
00048 
00049         /**
00050         * NewLC.
00051         * Two-phased constructor.
00052         * Construct a CSensorExampleDocument 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 CSensorExampleDocument.
00057         */
00058         static CSensorExampleDocument* NewLC( CEikApplication& aApp );
00059 
00060         /**
00061         * ~CSensorExampleDocument
00062         * Virtual Destructor.
00063         */
00064         virtual ~CSensorExampleDocument();
00065 
00066     public: // Functions from base classes
00067 
00068         /**
00069         * CreateAppUiL
00070         * From CEikDocument, CreateAppUiL.
00071         * Create a CSensorExampleAppUi 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         * CSensorExampleDocument.
00087         * C++ default constructor.
00088         * @param aApp Application creating this document.
00089         */
00090         CSensorExampleDocument( CEikApplication& aApp );
00091 
00092     };
00093 
00094 #endif // __SENSOREXAMPLEDOCUMENT_H__
00095 
00096 // End of File

© Nokia 2009

Back to top