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