00001 /* 00002 * Copyright © 2008 Nokia Corporation. 00003 */ 00004 00005 // INCLUDE FILES 00006 #include <eikstart.h> 00007 #include "ContactsModelApp.h" 00008 #include "ContactsModelDocument.h" 00009 00010 // ================= MEMBER FUNCTIONS ======================= 00011 00012 // --------------------------------------------------------- 00013 // CContactsModelApp::AppDllUid() 00014 // Returns application UID 00015 // --------------------------------------------------------- 00016 // 00017 TUid CContactsModelApp::AppDllUid() const 00018 { 00019 return KUidContactsModel; 00020 } 00021 00022 // --------------------------------------------------------- 00023 // CContactsModelApp::CreateDocumentL() 00024 // Creates CContactsModelDocument object 00025 // --------------------------------------------------------- 00026 // 00027 CApaDocument* CContactsModelApp::CreateDocumentL() 00028 { 00029 return CContactsModelDocument::NewL( *this ); 00030 } 00031 00032 // ================= OTHER EXPORTED FUNCTIONS ============== 00033 // 00034 // --------------------------------------------------------- 00035 // NewApplication() 00036 // Constructs CContactsModelApp 00037 // Returns: created application object 00038 // --------------------------------------------------------- 00039 // 00040 EXPORT_C CApaApplication* NewApplication() 00041 { 00042 return new CContactsModelApp; 00043 } 00044 00045 // --------------------------------------------------------- 00046 // E32Main() 00047 // Entry point function for new (>= 9.0) EPOC Apps (exe) 00048 // Returns: Sistem Wide error codes or KErrNone if all goes well 00049 // --------------------------------------------------------- 00050 // 00051 GLDEF_C TInt E32Main() 00052 { 00053 return EikStart::RunApplication( NewApplication ); 00054 } 00055 // End of File 00056