|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : sensorexampleapplication.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 "sensorexampledocument.h" 00018 #include "sensorexampleapplication.h" 00019 00020 // ============================ MEMBER FUNCTIONS =============================== 00021 00022 // UID for the application, 00023 // this should correspond to the uid defined in the mmp file 00024 const TUid KUidSensorExampleApp = { 0x2000B175 }; 00025 00026 // ----------------------------------------------------------------------------- 00027 // CSensorExampleApplication::CreateDocumentL() 00028 // Creates CApaDocument object 00029 // ----------------------------------------------------------------------------- 00030 // 00031 CApaDocument* CSensorExampleApplication::CreateDocumentL() 00032 { 00033 // Create an sensorexample document, and return a pointer to it 00034 return ( static_cast<CApaDocument*>( CSensorExampleDocument::NewL( *this ) ) ); 00035 } 00036 00037 // ----------------------------------------------------------------------------- 00038 // CSensorExampleApplication::AppDllUid() 00039 // Returns application UID 00040 // ----------------------------------------------------------------------------- 00041 // 00042 TUid CSensorExampleApplication::AppDllUid() const 00043 { 00044 // Return the UID for the sensorexample application 00045 return KUidSensorExampleApp; 00046 } 00047 00048 // End of File 00049
|
© Nokia 2009 |