|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : ccontdocument.cpp 00004 * Part of : Contacts database example 00005 * Interface : 00006 * Description : 00007 * Version : 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 "CContDocument.h" 00018 #include "CContAppUi.h" 00019 00020 // ================= MEMBER FUNCTIONS ======================= 00021 00022 // --------------------------------------------------------- 00023 // CContDocument::CContDocument() 00024 // constructor 00025 // --------------------------------------------------------- 00026 // 00027 CContDocument::CContDocument( CEikApplication& aApp ) 00028 : CAknDocument( aApp ) 00029 { 00030 } 00031 00032 // --------------------------------------------------------- 00033 // CContDocument::~CContDocument () 00034 // destructor 00035 // --------------------------------------------------------- 00036 // 00037 CContDocument::~CContDocument() 00038 { 00039 } 00040 00041 // --------------------------------------------------------- 00042 // CContDocument::ConstructL() 00043 // Two phased constructor 00044 // --------------------------------------------------------- 00045 // 00046 void CContDocument::ConstructL() 00047 { 00048 } 00049 00050 00051 // --------------------------------------------------------- 00052 // CContDocument::NewL() 00053 // Two phased constructor 00054 // --------------------------------------------------------- 00055 // 00056 CContDocument* CContDocument::NewL( 00057 CEikApplication& aApp ) // CContApp reference 00058 { 00059 CContDocument* self = new (ELeave) CContDocument( aApp ); 00060 CleanupStack::PushL( self ); 00061 self->ConstructL(); 00062 CleanupStack::Pop(); 00063 00064 return self; 00065 } 00066 00067 // ---------------------------------------------------- 00068 // CContDocument::CreateAppUiL() 00069 // constructs CContAppUi 00070 // ---------------------------------------------------- 00071 // 00072 CEikAppUi* CContDocument::CreateAppUiL() 00073 { 00074 return new (ELeave) CContAppUi; 00075 } 00076 00077 // End of File
|
© Nokia 2009 |