Nokia N97 SDK
Example Applications Guide

SimpleLightDocument.cpp

00001 /*
00002  * ==============================================================================
00003  *  Name        : SimpleLightDocument.cpp
00004  *  Part of     : OpenGLEx / SimpleLight
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 // INCLUDE FILES
00014 #include "SimpleLightDocument.h"
00015 #include "SimpleLightAppUi.h"
00016 
00017 // ================= MEMBER FUNCTIONS =======================
00018 
00019 // -----------------------------------------------------------------------------
00020 // CSimpleLightDocument::CSimpleLightDocument
00021 // C++ default constructor can NOT contain any code, that
00022 // might leave.
00023 // -----------------------------------------------------------------------------
00024 //
00025 CSimpleLightDocument::CSimpleLightDocument(CEikApplication& aApp)
00026 : CAknDocument(aApp)
00027     {
00028     }
00029 
00030 // -----------------------------------------------------------------------------
00031 // ?classname::ConstructL
00032 // Symbian 2nd phase constructor can leave.
00033 // -----------------------------------------------------------------------------
00034 //
00035 void CSimpleLightDocument::ConstructL()
00036     {
00037     }
00038 
00039 // -----------------------------------------------------------------------------
00040 // CSimpleLightDocument::NewL
00041 // Two-phased constructor.
00042 // -----------------------------------------------------------------------------
00043 //
00044 CSimpleLightDocument* CSimpleLightDocument::NewL(
00045         CEikApplication& aApp)     // CSimpleLightApp reference
00046     {
00047     CSimpleLightDocument* self = new (ELeave) CSimpleLightDocument( aApp );
00048     CleanupStack::PushL( self );
00049     self->ConstructL();
00050     CleanupStack::Pop();
00051 
00052     return self;
00053     }
00054 
00055 // destructor
00056 CSimpleLightDocument::~CSimpleLightDocument()
00057     {
00058     }
00059 
00060 // ----------------------------------------------------
00061 // CSimpleLightDocument::CreateAppUiL()
00062 // constructs CSimpleLightAppUi
00063 // ----------------------------------------------------
00064 //
00065 CEikAppUi* CSimpleLightDocument::CreateAppUiL()
00066     {
00067     return new (ELeave) CSimpleLightAppUi;
00068     }
00069 
00070 // End of File

© Nokia 2009

Back to top