Nokia N97 SDK
Example Applications Guide

animationdocument.h

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

© Nokia 2009

Back to top