S60 3rd Edition SDK for Symbian OS
Example Applications Guide

SimpleCubeDocument.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : SimpleCubeDocument.cpp
00004 *  Part of     : OpenGLEx / SimpleCube
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 
00017 // INCLUDE FILES
00018 #include "SimpleCubeDocument.h"
00019 #include "SimpleCubeAppUi.h"
00020 
00021 // ================= MEMBER FUNCTIONS =======================
00022 
00023 // -----------------------------------------------------------------------------
00024 // CSimpleCubeDocument::CSimpleCubeDocument
00025 // 
00026 // Just calls the base class constructor.
00027 // -----------------------------------------------------------------------------
00028 //
00029 
00030 CSimpleCubeDocument::CSimpleCubeDocument(CEikApplication& aApp)
00031 : CAknDocument(aApp)    
00032     {
00033     }
00034 
00035 // -----------------------------------------------------------------------------
00036 // CSimpleCubeDocument::~CSimpleCubeDocument
00037 // 
00038 // Empty destructor.
00039 // -----------------------------------------------------------------------------
00040 //
00041 
00042 CSimpleCubeDocument::~CSimpleCubeDocument()
00043     {
00044     }
00045 
00046 // -----------------------------------------------------------------------------
00047 // CSimpleCubeDocument::ConstructL
00048 // 
00049 // Empty 2nd phase constructor.
00050 // -----------------------------------------------------------------------------
00051 //
00052 
00053 void CSimpleCubeDocument::ConstructL()
00054     {
00055     }
00056 
00057 // -----------------------------------------------------------------------------
00058 // CSimpleCubeDocument::NewL
00059 // 
00060 // -----------------------------------------------------------------------------
00061 //
00062 
00063 CSimpleCubeDocument* CSimpleCubeDocument::NewL(
00064         CEikApplication& aApp)     // CSimpleCubeApp reference
00065     {
00066     CSimpleCubeDocument* self = new (ELeave) CSimpleCubeDocument( aApp );
00067     CleanupStack::PushL( self );
00068     self->ConstructL();
00069     CleanupStack::Pop();
00070 
00071     return self;
00072     }
00073     
00074 // ----------------------------------------------------
00075 // CSimpleCubeDocument::CreateAppUiL()
00076 // Constructs and returns a CSimpleCubeAppUi object.
00077 // ----------------------------------------------------
00078 //
00079 
00080 CEikAppUi* CSimpleCubeDocument::CreateAppUiL()
00081     {
00082     return new (ELeave) CSimpleCubeAppUi;
00083     }
00084 
00085 // End of File  

© Nokia 2006

Back to top