|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : ChatDocument.cpp 00004 * Part of : Chat 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2005-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 "ChatDocument.h" 00018 #include "ChatAppui.h" 00019 00020 // ================= MEMBER FUNCTIONS ======================= 00021 00022 // ---------------------------------------------------------------------------- 00023 // CChatDocument::CChatDocument( CEikApplication& aApp ) 00024 // constructor 00025 // ---------------------------------------------------------------------------- 00026 // 00027 CChatDocument::CChatDocument( CEikApplication& aApp ) 00028 : CAknDocument( aApp ) 00029 { 00030 } 00031 00032 // ---------------------------------------------------------------------------- 00033 // CChatDocument::~CChatDocument() 00034 // destructor 00035 // ---------------------------------------------------------------------------- 00036 // 00037 CChatDocument::~CChatDocument() 00038 { 00039 } 00040 00041 // ---------------------------------------------------------------------------- 00042 // CChatDocument::ConstructL() 00043 // default constructor can leave. 00044 // ---------------------------------------------------------------------------- 00045 // 00046 void CChatDocument::ConstructL() 00047 { 00048 } 00049 00050 // ---------------------------------------------------------------------------- 00051 // CChatDocument* CChatDocument::NewL( CEikApplication& aApp ) 00052 // Two-phased constructor. 00053 // ---------------------------------------------------------------------------- 00054 // 00055 CChatDocument* CChatDocument::NewL( CEikApplication& aApp ) 00056 { 00057 CChatDocument* self = new (ELeave) CChatDocument( aApp ); 00058 CleanupStack::PushL( self ); 00059 self->ConstructL(); 00060 CleanupStack::Pop( self ); 00061 00062 return self; 00063 } 00064 00065 // ---------------------------------------------------- 00066 // CChatDocument::CreateAppUiL() 00067 // constructs CChatAppUi 00068 // ---------------------------------------------------- 00069 // 00070 CEikAppUi* CChatDocument::CreateAppUiL() 00071 { 00072 return new (ELeave) CChatAppUi; 00073 } 00074 00075 // End of File
|
© Nokia 2006 |