|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : WebClientDocument.cpp 00004 * Part of : WebClient 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 "WebClientAppUi.h" 00018 #include "WebClientDocument.h" 00019 00020 // ---------------------------------------------------------------------------- 00021 // CWebClientDocument::NewL() 00022 // Creates instance of CWebClientDocument. 00023 // ---------------------------------------------------------------------------- 00024 // 00025 CWebClientDocument* CWebClientDocument::NewL( CEikApplication& aApp ) 00026 { 00027 CWebClientDocument* self = NewLC( aApp ); 00028 CleanupStack::Pop( self ); 00029 return self; 00030 } 00031 00032 // ---------------------------------------------------------------------------- 00033 // CWebClientDocument::NewLC() 00034 // Creates instance of CWebClientDocument. 00035 // ---------------------------------------------------------------------------- 00036 // 00037 CWebClientDocument* CWebClientDocument::NewLC( CEikApplication& aApp ) 00038 { 00039 CWebClientDocument* self = new (ELeave) CWebClientDocument( aApp ); 00040 CleanupStack::PushL( self ); 00041 self->ConstructL(); 00042 return self; 00043 } 00044 00045 // ---------------------------------------------------------------------------- 00046 // CWebClientDocument::ConstructL() 00047 // Second phase construction. 00048 // ---------------------------------------------------------------------------- 00049 // 00050 void CWebClientDocument::ConstructL() 00051 { 00052 // no implementation required 00053 } 00054 00055 // ---------------------------------------------------------------------------- 00056 // CWebClientDocument::CWebClientDocument() 00057 // First phase construction. 00058 // ---------------------------------------------------------------------------- 00059 // 00060 CWebClientDocument::CWebClientDocument( CEikApplication& aApp ) 00061 : CAknDocument( aApp ) 00062 { 00063 // no implementation required 00064 } 00065 00066 // ---------------------------------------------------------------------------- 00067 // CWebClientDocument::~CWebClientDocument() 00068 // Destructor. 00069 // ---------------------------------------------------------------------------- 00070 // 00071 CWebClientDocument::~CWebClientDocument() 00072 { 00073 // no implementation required 00074 } 00075 00076 // ---------------------------------------------------------------------------- 00077 // CWebClientDocument::CreateAppUiL() 00078 // Creates the application user interface, and returns a pointer to it, 00079 // the framework takes ownership of this object 00080 // ---------------------------------------------------------------------------- 00081 // 00082 CEikAppUi* CWebClientDocument::CreateAppUiL() 00083 { 00084 return ( static_cast <CEikAppUi*> ( new (ELeave) CWebClientAppUi )); 00085 } 00086
|
© Nokia 2006 |