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