00001 // Copyright: (c) 2006 Nokia Ltd. All rights reserved. 00002 00003 // INCLUDE FILES 00004 #include "S60MemoryLabAppUi.h" 00005 #include "S60MemoryLabDocument.h" 00006 00007 // ============================ MEMBER FUNCTIONS =============================== 00008 00009 // ----------------------------------------------------------------------------- 00010 // CS60MemoryLabDocument::NewL() 00011 // Two-phased constructor. 00012 // ----------------------------------------------------------------------------- 00013 // 00014 CS60MemoryLabDocument* CS60MemoryLabDocument::NewL(CEikApplication& aApp) 00015 { 00016 CS60MemoryLabDocument* self = NewLC( aApp ); 00017 CleanupStack::Pop( self ); 00018 return self; 00019 } 00020 00021 // ----------------------------------------------------------------------------- 00022 // CS60MemoryLabDocument::NewLC() 00023 // Two-phased constructor. 00024 // ----------------------------------------------------------------------------- 00025 // 00026 CS60MemoryLabDocument* CS60MemoryLabDocument::NewLC(CEikApplication& aApp) 00027 { 00028 CS60MemoryLabDocument* self = new (ELeave) CS60MemoryLabDocument(aApp); 00029 CleanupStack::PushL( self ); 00030 self->ConstructL(); 00031 00032 return self; 00033 } 00034 00035 // ----------------------------------------------------------------------------- 00036 // CS60MemoryLabDocument::ConstructL() 00037 // Symbian 2nd phase constructor can leave. 00038 // ----------------------------------------------------------------------------- 00039 // 00040 void CS60MemoryLabDocument::ConstructL() 00041 { 00042 // No implementation required 00043 } 00044 00045 // ----------------------------------------------------------------------------- 00046 // CS60MemoryLabDocument::CS60MemoryLabDocument() 00047 // C++ default constructor can NOT contain any code, that might leave. 00048 // ----------------------------------------------------------------------------- 00049 // 00050 CS60MemoryLabDocument::CS60MemoryLabDocument( CEikApplication& aApp ) 00051 : CAknDocument( aApp ) 00052 { 00053 // No implementation required 00054 } 00055 00056 // --------------------------------------------------------------------------- 00057 // CS60MemoryLabDocument::~CS60MemoryLabDocument() 00058 // Destructor. 00059 // --------------------------------------------------------------------------- 00060 // 00061 CS60MemoryLabDocument::~CS60MemoryLabDocument() 00062 { 00063 // No implementation required 00064 } 00065 00066 // --------------------------------------------------------------------------- 00067 // CS60MemoryLabDocument::CreateAppUiL() 00068 // Constructs CreateAppUi. 00069 // --------------------------------------------------------------------------- 00070 // 00071 CEikAppUi* CS60MemoryLabDocument::CreateAppUiL() 00072 { 00073 // Create the application user interface, and return a pointer to it; 00074 // the framework takes ownership of this object 00075 return (static_cast <CEikAppUi*>(new (ELeave) CS60MemoryLabAppUi)); 00076 } 00077 00078 // End of File