|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : helpexampledocument.cpp 00004 * Part of : Help 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 "HelpExampleAppUi.h" 00018 #include "HelpExampleDocument.h" 00019 00020 // ============================ MEMBER FUNCTIONS =============================== 00021 00022 // ----------------------------------------------------------------------------- 00023 // CHelpExampleDocument::NewL() 00024 // Two-phased constructor. 00025 // ----------------------------------------------------------------------------- 00026 // 00027 CHelpExampleDocument* CHelpExampleDocument::NewL( CEikApplication& aApp ) 00028 { 00029 CHelpExampleDocument* self = NewLC( aApp ); 00030 CleanupStack::Pop( self ); 00031 return self; 00032 } 00033 00034 // ----------------------------------------------------------------------------- 00035 // CHelpExampleDocument::NewLC() 00036 // Two-phased constructor. 00037 // ----------------------------------------------------------------------------- 00038 // 00039 CHelpExampleDocument* CHelpExampleDocument::NewLC( CEikApplication& aApp ) 00040 { 00041 CHelpExampleDocument* self = new ( ELeave ) CHelpExampleDocument( aApp ); 00042 CleanupStack::PushL( self ); 00043 self->ConstructL(); 00044 return self; 00045 } 00046 00047 // ---------------------------------------------------------------------------- 00048 // CHelpExampleDocument::ConstructL() 00049 // 2nd phase construction 00050 // ---------------------------------------------------------------------------- 00051 // 00052 void CHelpExampleDocument::ConstructL() 00053 { 00054 // No implementation required 00055 } 00056 00057 // ---------------------------------------------------------------------------- 00058 // CHelpExampleDocument::CHelpExampleDocument() 00059 // Constructor. 00060 // ---------------------------------------------------------------------------- 00061 // 00062 CHelpExampleDocument::CHelpExampleDocument( CEikApplication& aApp ): 00063 CAknDocument( aApp ) 00064 { 00065 // No implementation required 00066 } 00067 00068 // ---------------------------------------------------------------------------- 00069 // CHelpExampleDocument::~CHelpExampleDocument() 00070 // Destructor. 00071 // ---------------------------------------------------------------------------- 00072 // 00073 CHelpExampleDocument::~CHelpExampleDocument() 00074 { 00075 // No implementation required 00076 } 00077 00078 // ---------------------------------------------------------------------------- 00079 // CHelpExampleDocument::CreateAppUiL() 00080 // Create the application user interface, and return a pointer to it; 00081 // the framework takes ownership of this object 00082 // ---------------------------------------------------------------------------- 00083 // 00084 CEikAppUi* CHelpExampleDocument::CreateAppUiL() 00085 { 00086 return ( static_cast<CEikAppUi*> ( new ( ELeave ) CHelpExampleAppUi ) ); 00087 } 00088 00089 // End of File
|
© Nokia 2009 |