|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : HierarchyDocument.cpp 00004 * Part of : OpenGLEx / Hierarchy 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 "HierarchyDocument.h" 00015 #include "HierarchyAppUi.h" 00016 00017 // EXTERNAL DATA STRUCTURES 00018 00019 // EXTERNAL FUNCTION PROTOTYPES 00020 00021 // CONSTANTS 00022 00023 // MACROS 00024 00025 // LOCAL CONSTANTS AND MACROS 00026 00027 // MODULE DATA STRUCTURES 00028 00029 // LOCAL FUNCTION PROTOTYPES 00030 00031 // FORWARD DECLARATIONS 00032 00033 // ================= MEMBER FUNCTIONS ======================= 00034 00035 // ----------------------------------------------------------------------------- 00036 // CHierarchyDocument::CHierarchyDocument 00037 // C++ default constructor can NOT contain any code, that 00038 // might leave. 00039 // ----------------------------------------------------------------------------- 00040 // 00041 CHierarchyDocument::CHierarchyDocument(CEikApplication& aApp) 00042 : CAknDocument(aApp) 00043 { 00044 } 00045 00046 // destructor 00047 CHierarchyDocument::~CHierarchyDocument() 00048 { 00049 } 00050 00051 // ----------------------------------------------------------------------------- 00052 // CHierarchyDocument::ConstructL 00053 // Symbian 2nd phase constructor can leave. 00054 // ----------------------------------------------------------------------------- 00055 // 00056 void CHierarchyDocument::ConstructL() 00057 { 00058 } 00059 00060 // ----------------------------------------------------------------------------- 00061 // CHierarchyDocument::NewL 00062 // Two-phased constructor. 00063 // ----------------------------------------------------------------------------- 00064 // 00065 CHierarchyDocument* CHierarchyDocument::NewL( 00066 CEikApplication& aApp) // CHierarchyApp reference 00067 { 00068 CHierarchyDocument* self = new (ELeave) CHierarchyDocument( aApp ); 00069 CleanupStack::PushL( self ); 00070 self->ConstructL(); 00071 CleanupStack::Pop(); 00072 00073 return self; 00074 } 00075 00076 // ---------------------------------------------------- 00077 // CHierarchyDocument::CreateAppUiL() 00078 // constructs CHierarchyAppUi 00079 // ---------------------------------------------------- 00080 // 00081 CEikAppUi* CHierarchyDocument::CreateAppUiL() 00082 { 00083 return new (ELeave) CHierarchyAppUi; 00084 } 00085 00086 // End of File
|
© Nokia 2009 |