|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : LandmarksDocument.cpp 00004 * Part of : Landmarks Reference Application 00005 * Interface : - 00006 * Description : Implementation of CLandmarksDocument 00007 * Version : 1.0 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 "LandmarksAppUi.h" 00018 #include "LandmarksDocument.h" 00019 00020 // ============================ MEMBER FUNCTIONS =============================== 00021 00022 // ----------------------------------------------------------------------------- 00023 // CLandmarksDocument::CLandmarksDocument 00024 // C++ constructor can NOT contain any code, that 00025 // might leave. 00026 // ----------------------------------------------------------------------------- 00027 // 00028 CLandmarksDocument::CLandmarksDocument(CEikApplication& aApp) : CAknDocument(aApp) 00029 { 00030 // No implementation required 00031 } 00032 00033 // ----------------------------------------------------------------------------- 00034 // CLandmarksDocument::ConstructL 00035 // Symbian 2nd phase constructor can leave. 00036 // ----------------------------------------------------------------------------- 00037 // 00038 void CLandmarksDocument::ConstructL() 00039 { 00040 // No implementation required 00041 } 00042 00043 // ----------------------------------------------------------------------------- 00044 // CLandmarksDocument::NewL 00045 // Two-phased constructor. 00046 // ----------------------------------------------------------------------------- 00047 // 00048 CLandmarksDocument* CLandmarksDocument::NewL(CEikApplication& aApp) 00049 { 00050 CLandmarksDocument* self = new (ELeave) CLandmarksDocument(aApp); 00051 CleanupStack::PushL(self); 00052 self->ConstructL(); 00053 CleanupStack::Pop(self); 00054 return self; 00055 } 00056 00057 // Destructor 00058 CLandmarksDocument::~CLandmarksDocument() 00059 { 00060 // No implementation required 00061 } 00062 00063 // ----------------------------------------------------------------------------- 00064 // CLandmarksDocument::CreateAppUiL 00065 // 00066 // (other items were commented in a header). 00067 // ----------------------------------------------------------------------------- 00068 // 00069 CEikAppUi* CLandmarksDocument::CreateAppUiL() 00070 { 00071 // Create the application user interface, and return a pointer to it, 00072 // the framework takes ownership of this object 00073 CEikAppUi* appUi = new (ELeave) CLandmarksAppUi; 00074 return appUi; 00075 } 00076 00077 // End of File 00078
|
© Nokia 2006 |