|
Nokia N97 SDK Example Applications Guide |
00001 /** 00002 * Copyright (c) 2007 Nokia Corporation. 00003 * This material, including documentation and any related 00004 * computer programs, is protected by 00005 * copyright controlled by Nokia Corporation. 00006 */ 00007 00008 00009 00010 // INCLUDE FILES 00011 #include "UEExAppUi.h" 00012 #include "UEExDocument.h" 00013 00014 00015 // ============================ MEMBER FUNCTIONS =============================== 00016 00017 // ----------------------------------------------------------------------------- 00018 // CUEExDocument::NewL() 00019 // Two-phased constructor. 00020 // ----------------------------------------------------------------------------- 00021 // 00022 CUEExDocument* CUEExDocument::NewL( CEikApplication& aApp ) 00023 { 00024 CUEExDocument* self = NewLC(aApp); 00025 CleanupStack::Pop(self); 00026 return self; 00027 } 00028 00029 // ----------------------------------------------------------------------------- 00030 // CUEExDocument::NewLC() 00031 // Two-phased constructor. 00032 // ----------------------------------------------------------------------------- 00033 // 00034 CUEExDocument* CUEExDocument::NewLC( CEikApplication& aApp ) 00035 { 00036 CUEExDocument* self = new ( ELeave ) CUEExDocument( aApp ); 00037 CleanupStack::PushL( self ); 00038 self->ConstructL(); 00039 return self; 00040 } 00041 00042 // ----------------------------------------------------------------------------- 00043 // CUEExDocument::ConstructL() 00044 // Symbian 2nd phase constructor can leave. 00045 // ----------------------------------------------------------------------------- 00046 // 00047 void CUEExDocument::ConstructL() 00048 { 00049 // no implementation required 00050 } 00051 00052 // ----------------------------------------------------------------------------- 00053 // CUEExDocument::CUEExDocument() 00054 // C++ default constructor can NOT contain any code, that might leave. 00055 // ----------------------------------------------------------------------------- 00056 // 00057 CUEExDocument::CUEExDocument( CEikApplication& aApp ) : CAknDocument( aApp ) 00058 { 00059 // no implementation required 00060 } 00061 00062 // --------------------------------------------------------------------------- 00063 // CUEExDocument::~CUEExDocument() 00064 // Destructor. 00065 // --------------------------------------------------------------------------- 00066 // 00067 CUEExDocument::~CUEExDocument() 00068 { 00069 // no implementation required 00070 } 00071 00072 // --------------------------------------------------------------------------- 00073 // CUEExDocument::CreateAppUiL() 00074 // Constructs CreateAppUi. 00075 // --------------------------------------------------------------------------- 00076 // 00077 CEikAppUi* CUEExDocument::CreateAppUiL() 00078 { 00079 // Create the application user interface, and return a pointer to it, 00080 // the framework takes ownership of this object 00081 CEikAppUi* appUi = new ( ELeave ) CUEExAppUi; 00082 return appUi; 00083 } 00084
|
© Nokia 2009 |