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