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