|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : FloatingDuckDocument.cpp 00004 * Part of : OpenGLEx / FloatingDuck 00005 * 00006 * Copyright (c) 2005-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 "FloatingDuckDocument.h" 00015 #include "FloatingDuckAppUi.h" 00016 00017 // ================= MEMBER FUNCTIONS ======================= 00018 00019 // ---------------------------------------------------- 00020 // CFloatingDuckDocument::CFloatingDuckDocument() 00021 // Default constructor that must never leave. 00022 // ---------------------------------------------------- 00023 // 00024 CFloatingDuckDocument::CFloatingDuckDocument( CEikApplication& aApp ) 00025 : CAknDocument( aApp ) 00026 { 00027 } 00028 00029 // ---------------------------------------------------- 00030 // CFloatingDuckDocument::~CFloatingDuckDocument() 00031 // Destructor. 00032 // ---------------------------------------------------- 00033 // 00034 CFloatingDuckDocument::~CFloatingDuckDocument() 00035 { 00036 } 00037 00038 // ---------------------------------------------------- 00039 // CFloatingDuckDocument::ConstructL() 00040 // EPOC default constructor can leave. 00041 // ---------------------------------------------------- 00042 // 00043 void CFloatingDuckDocument::ConstructL() 00044 { 00045 } 00046 00047 // ---------------------------------------------------- 00048 // CFloatingDuckDocument::NewL() 00049 // Second phase constructor. 00050 // ---------------------------------------------------- 00051 // 00052 CFloatingDuckDocument* CFloatingDuckDocument::NewL( CEikApplication& aApp ) 00053 { 00054 CFloatingDuckDocument* self = new (ELeave) CFloatingDuckDocument( aApp ); 00055 CleanupStack::PushL( self ); 00056 self->ConstructL(); 00057 CleanupStack::Pop(); 00058 00059 return self; 00060 } 00061 00062 // ---------------------------------------------------- 00063 // CFloatingDuckDocument::CreateAppUiL() 00064 // constructs CFloatingDuckAppUi 00065 // ---------------------------------------------------- 00066 // 00067 CEikAppUi* CFloatingDuckDocument::CreateAppUiL() 00068 { 00069 return new (ELeave) CFloatingDuckAppUi; 00070 } 00071 00072 // End of File
|
© Nokia 2009 |