|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : ccontapp.cpp 00004 * Part of : Contacts database example 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004 - 2006 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 <eikstart.h> 00018 00019 #include "CContApp.h" 00020 #include "CContDocument.h" 00021 00022 // ================= MEMBER FUNCTIONS ======================= 00023 00024 // --------------------------------------------------------- 00025 // CContApp::AppDllUid() 00026 // Returns application UID 00027 // --------------------------------------------------------- 00028 // 00029 TUid CContApp::AppDllUid() const 00030 { 00031 return KUidContacts; 00032 } 00033 00034 00035 // --------------------------------------------------------- 00036 // CContApp::CreateDocumentL() 00037 // Creates CCContDocument object 00038 // --------------------------------------------------------- 00039 // 00040 CApaDocument* CContApp::CreateDocumentL() 00041 { 00042 return CContDocument::NewL( *this ); 00043 } 00044 00045 // ================= OTHER EXPORTED FUNCTIONS ============== 00046 // 00047 // --------------------------------------------------------- 00048 // NewApplication() 00049 // Constructs CCContApp 00050 // Returns: created application object 00051 // --------------------------------------------------------- 00052 // 00053 EXPORT_C CApaApplication* NewApplication() 00054 { 00055 return new CContApp; 00056 } 00057 00058 // --------------------------------------------------------- 00059 // E32Dll(TDllReason) 00060 // Entry point function 00061 // Returns: KErrNone: No error 00062 // --------------------------------------------------------- 00063 // 00064 GLDEF_C TInt E32Main() 00065 { 00066 return EikStart::RunApplication( NewApplication ); 00067 } 00068 00069 // End of File 00070
|
© Nokia 2009 |