Nokia N97 SDK
Example Applications Guide

SimpleCubePbufferDocument.cpp

00001 /*
00002  * ==============================================================================
00003  *  Name        : SimpleCubePbufferDocument.cpp
00004  *  Part of     : OpenGLEx / SimpleCubePbuffer
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 
00014 // INCLUDE FILES
00015 #include "SimpleCubePbufferDocument.h"
00016 #include "SimpleCubePbufferAppUi.h"
00017 
00018 // ================= MEMBER FUNCTIONS =======================
00019 
00020 // -----------------------------------------------------------------------------
00021 // CSimpleCubePbufferDocument::CSimpleCubePbufferDocument
00022 //
00023 // Just calls the base class constructor.
00024 // -----------------------------------------------------------------------------
00025 //
00026 CSimpleCubePbufferDocument::CSimpleCubePbufferDocument(CEikApplication& aApp)
00027 : CAknDocument(aApp)
00028     {
00029     }
00030 
00031 // destructor
00032 CSimpleCubePbufferDocument::~CSimpleCubePbufferDocument()
00033     {
00034     }
00035 
00036 // -----------------------------------------------------------------------------
00037 // CSimpleCubePbufferDocument::ConstructL
00038 //
00039 // Empty 2nd phase constructor.
00040 // -----------------------------------------------------------------------------
00041 //
00042 void CSimpleCubePbufferDocument::ConstructL()
00043     {
00044     }
00045 
00046 // -----------------------------------------------------------------------------
00047 // CSimpleCubeDocument::NewL
00048 //
00049 // -----------------------------------------------------------------------------
00050 //
00051 CSimpleCubePbufferDocument* CSimpleCubePbufferDocument::NewL(
00052         CEikApplication& aApp)     // CSimpleCubePbufferApp reference
00053     {
00054     CSimpleCubePbufferDocument* self = new (ELeave) CSimpleCubePbufferDocument( aApp );
00055     CleanupStack::PushL( self );
00056     self->ConstructL();
00057     CleanupStack::Pop();
00058 
00059     return self;
00060     }
00061 
00062 // ----------------------------------------------------
00063 // CSimpleCubePbufferDocument::CreateAppUiL()
00064 // constructs CSimpleCubePbufferAppUi
00065 // ----------------------------------------------------
00066 //
00067 CEikAppUi* CSimpleCubePbufferDocument::CreateAppUiL()
00068     {
00069     return new (ELeave) CSimpleCubePbufferAppUi;
00070     }
00071 
00072 // End of File

© Nokia 2009

Back to top