|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : AddressBookApp.cpp 00004 * Part of : AddressBook 00005 * Interface : 00006 * Description : An application class, CAddressBookApp 00007 * - starting point of the program 00008 * Version : 00009 * 00010 * Copyright (c) 2002-2006 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. 00014 * ============================================================================== 00015 */ 00016 00017 // INCLUDES 00018 #include "AddressBookApp.h" 00019 #include "AddressBookDocument.h" 00020 #include <eikstart.h> 00021 00022 // ================= MEMBER FUNCTIONS ======================= 00023 00024 // ---------------------------------------------------------------------------- 00025 // CAddressBookApp::CreateDocumentL() 00026 // Creates CAddressBookDocument object and return a pointer to it 00027 // ---------------------------------------------------------------------------- 00028 // 00029 CApaDocument* CAddressBookApp::CreateDocumentL() 00030 { 00031 return (static_cast<CApaDocument*>(CAddressBookDocument::NewL(*this))); 00032 } 00033 00034 // ---------------------------------------------------------------------------- 00035 // AddressBookApp::AppDllUid() 00036 // Returns application UID 00037 // ---------------------------------------------------------------------------- 00038 // 00039 TUid CAddressBookApp::AppDllUid() const 00040 { 00041 return KUidAddressBookApp; 00042 } 00043 00044 // ---------------------------------------------------------------------------- 00045 // NewApplication() 00046 // Constructs CAddressBookApp 00047 // Returns: created application object 00048 // ---------------------------------------------------------------------------- 00049 // 00050 LOCAL_C CApaApplication* NewApplication() 00051 { 00052 return (static_cast<CApaApplication*>(new CAddressBookApp)); 00053 } 00054 00055 // ---------------------------------------------------------------------------- 00056 // E32Main 00057 // Executable entry point 00058 // ---------------------------------------------------------------------------- 00059 // 00060 GLDEF_C TInt E32Main() 00061 { 00062 return EikStart::RunApplication(NewApplication); 00063 } 00064 00065 // End of File 00066
|
© Nokia 2006 |