S60 3rd Edition SDK for Symbian OS
Example Applications Guide

RainDocument.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : RainDocument.h
00004 *  Part of     : OpenGLEx / Rain
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 RAINDOCUMENT_H
00017 #define RAINDOCUMENT_H
00018 
00019 // INCLUDES
00020 #include <akndoc.h>
00021    
00022 // FORWARD DECLARATIONS
00023 class  CEikAppUi;
00024 
00025 // CLASS DECLARATION
00026 
00027 /**
00028  * Document class that is just used as the container for the application
00029  * (as required by the Symbian UI application architecture).
00030  */
00031 class CRainDocument : public CAknDocument
00032     {
00033     public: // Constructors and destructor
00034 
00035         /**
00036          * Factory method for creating a new CRainDocument object.
00037          */
00038         static CRainDocument* NewL(CEikApplication& aApp);
00039 
00040         /**
00041          * Destructor. Does nothing.
00042          */
00043         virtual ~CRainDocument();
00044 
00045     private: // Functions from base classes
00046 
00047         /**
00048          * C++ constructor. Just passes the given application reference to the baseclass.
00049          */
00050         CRainDocument(CEikApplication& aApp);
00051 
00052         /**
00053          * Second phase constructor. Does nothing.
00054          */
00055         void ConstructL();
00056 
00057     private:
00058 
00059         /**
00060          * From CEikDocument, creates and returns CRainAppUi application UI object.
00061          */
00062         CEikAppUi* CreateAppUiL();
00063     };
00064 
00065 #endif
00066 
00067 // End of File
00068 

© Nokia 2006

Back to top