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