|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================ 00003 * Name : CFindItemTestAppApp from FindItemTestAppApp.cpp 00004 * Part of : FindItemTestApp 00005 * Interface : 00006 * Description : Find Item Test application implementation 00007 * Version : 00008 * 00009 * Copyright (c) 2002-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 #include "FindItemTestAppApp.h" 00019 #include "FindItemTestAppDocument.h" 00020 00021 // ================= MEMBER FUNCTIONS ======================= 00022 00023 // --------------------------------------------------------- 00024 // CFindItemTestAppApp::AppDllUid 00025 // Returns application UID 00026 // --------------------------------------------------------- 00027 // 00028 TUid CFindItemTestAppApp::AppDllUid() const 00029 { 00030 return KUidFindItemTestApp; 00031 } 00032 00033 // --------------------------------------------------------- 00034 // CFindItemTestAppApp::CreateDocumentL 00035 // Creates CFindItemTestAppDocument object 00036 // --------------------------------------------------------- 00037 // 00038 CApaDocument* CFindItemTestAppApp::CreateDocumentL() 00039 { 00040 return CFindItemTestAppDocument::NewL( *this ); 00041 } 00042 00043 00044 // ================= OTHER EXPORTED FUNCTIONS ============== 00045 // 00046 // --------------------------------------------------------- 00047 // NewApplication() 00048 // Constructs CFindItemTestAppApp 00049 // Returns: created application object 00050 // --------------------------------------------------------- 00051 // 00052 EXPORT_C CApaApplication* NewApplication() 00053 { 00054 return new CFindItemTestAppApp; 00055 } 00056 00057 00058 GLDEF_C TInt E32Main() 00059 { 00060 return EikStart::RunApplication(NewApplication); 00061 } 00062 00063 #if defined(__WINS__) && !defined(EKA2) 00064 // --------------------------------------------------------- 00065 // E32Dll(TDllReason) 00066 // Entry point function for EPOC Apps 00067 // Returns: KErrNone: No error 00068 // --------------------------------------------------------- 00069 // 00070 GLDEF_C TInt E32Dll(TDllReason) 00071 { 00072 return KErrNone; 00073 } 00074 00075 EXPORT_C TInt WinsMain(TDesC* aCmdLine) 00076 { 00077 return EikStart::RunApplication(NewApplication, aCmdLine); 00078 } 00079 #endif 00080 00081 #ifndef EKA2 00082 GLDEF_C TInt E32Dll( TDllReason ) 00083 { 00084 return KErrNone; 00085 } 00086 #endif 00087 00088 // End of File 00089
|
© Nokia 2006 |