S60 3rd Edition SDK FP1 for Symbian OS
Example Applications Guide

SimpleCubeDocument.h

00001 /*
00002  * ==============================================================================
00003  *  Name        : SimpleCubeDocument.h
00004  *  Part of     : OpenGLEx / SimpleCube
00005  *
00006  *  Copyright (c) 2004-2006 Nokia Corporation.
00007  *  This material, including documentation and any related
00008  *  computer programs, is protected by copyright controlled by
00009  *  Nokia Corporation.
00010  * ==============================================================================
00011  */
00012 
00013 #ifndef SIMPLECUBEDOCUMENT_H
00014 #define SIMPLECUBEDOCUMENT_H
00015 
00016 // INCLUDES
00017 #include <akndoc.h>
00018 
00019 // FORWARD DECLARATIONS
00020 class  CEikAppUi;
00021 
00022 // CLASS DECLARATION
00023 
00024 /**
00025  * Document class that is just used as the container for the application
00026  * (as required by the Symbian UI application architecture).
00027  */
00028 class CSimpleCubeDocument : public CAknDocument
00029     {
00030     public: // Constructors and destructor
00031 
00032         /**
00033          * Factory method for creating a new CSimpleCubeDocument object.
00034          */
00035         static CSimpleCubeDocument* NewL(CEikApplication& aApp);
00036 
00037         /**
00038          * Destructor. Does nothing.
00039          */
00040         virtual ~CSimpleCubeDocument();
00041 
00042     private:  // Functions from base classes
00043 
00044         /**
00045          * C++ constructor. Just passes the given application reference to the baseclass.
00046          */
00047         CSimpleCubeDocument(CEikApplication& aApp);
00048 
00049         /**
00050          * Second phase constructor. Does nothing.
00051          */
00052         void ConstructL();
00053 
00054     private: // New functions
00055 
00056         /**
00057          * From CEikDocument, creates and returns CSimpleCubeAppUi application UI object.
00058          */
00059         CEikAppUi* CreateAppUiL();
00060     };
00061 
00062 #endif
00063 
00064 // End of File
00065 

© Nokia 2006

Back to top