|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : sensorexampledocument.cpp 00004 * Part of : sensorexample 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2007 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 "sensorexampleappui.h" 00018 #include "sensorexampledocument.h" 00019 00020 // ============================ MEMBER FUNCTIONS =============================== 00021 00022 // ----------------------------------------------------------------------------- 00023 // CSensorExampleDocument::NewL() 00024 // Two-phased constructor. 00025 // ----------------------------------------------------------------------------- 00026 // 00027 CSensorExampleDocument* CSensorExampleDocument::NewL( CEikApplication& aApp ) 00028 { 00029 CSensorExampleDocument* self = NewLC( aApp ); 00030 CleanupStack::Pop( self ); 00031 return self; 00032 } 00033 00034 // ----------------------------------------------------------------------------- 00035 // CSensorExampleDocument::NewLC() 00036 // Two-phased constructor. 00037 // ----------------------------------------------------------------------------- 00038 // 00039 CSensorExampleDocument* CSensorExampleDocument::NewLC( CEikApplication& aApp ) 00040 { 00041 CSensorExampleDocument* self = new ( ELeave ) CSensorExampleDocument( aApp ); 00042 00043 CleanupStack::PushL( self ); 00044 self->ConstructL(); 00045 return self; 00046 } 00047 00048 // ----------------------------------------------------------------------------- 00049 // CSensorExampleDocument::ConstructL() 00050 // Symbian 2nd phase constructor can leave. 00051 // ----------------------------------------------------------------------------- 00052 // 00053 void CSensorExampleDocument::ConstructL() 00054 { 00055 // No implementation required 00056 } 00057 00058 // ----------------------------------------------------------------------------- 00059 // CSensorExampleDocument::CSensorExampleDocument() 00060 // C++ default constructor can NOT contain any code, that might leave. 00061 // ----------------------------------------------------------------------------- 00062 // 00063 CSensorExampleDocument::CSensorExampleDocument( CEikApplication& aApp ) 00064 : CAknDocument( aApp ) 00065 { 00066 // No implementation required 00067 } 00068 00069 // --------------------------------------------------------------------------- 00070 // CSensorExampleDocument::~CSensorExampleDocument() 00071 // Destructor. 00072 // --------------------------------------------------------------------------- 00073 // 00074 CSensorExampleDocument::~CSensorExampleDocument() 00075 { 00076 // No implementation required 00077 } 00078 00079 // --------------------------------------------------------------------------- 00080 // CSensorExampleDocument::CreateAppUiL() 00081 // Constructs CreateAppUi. 00082 // --------------------------------------------------------------------------- 00083 // 00084 CEikAppUi* CSensorExampleDocument::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 ) CSensorExampleAppUi ) ); 00089 } 00090 00091 // End of File
|
© Nokia 2009 |