Alexandre Lision | 8af73cb | 2013-12-10 14:11:20 -0500 | [diff] [blame] | 1 | /* |
| 2 | ======================================================================== |
| 3 | Name : pjsuaApplication.cpp |
| 4 | Author : nanang |
| 5 | Copyright : Copyright (C) 2013 Teluu Inc. (http://www.teluu.com) |
| 6 | Description : |
| 7 | ======================================================================== |
| 8 | */ |
| 9 | // [[[ begin generated region: do not modify [Generated System Includes] |
| 10 | // ]]] end generated region [Generated System Includes] |
| 11 | |
| 12 | // [[[ begin generated region: do not modify [Generated Includes] |
| 13 | #include "pjsuaApplication.h" |
| 14 | #include "pjsuaDocument.h" |
| 15 | #ifdef EKA2 |
| 16 | #include <eikstart.h> |
| 17 | #endif |
| 18 | // ]]] end generated region [Generated Includes] |
| 19 | |
| 20 | /** |
| 21 | * @brief Returns the application's UID (override from CApaApplication::AppDllUid()) |
| 22 | * @return UID for this application (KUidpjsuaApplication) |
| 23 | */ |
| 24 | TUid CpjsuaApplication::AppDllUid() const |
| 25 | { |
| 26 | return KUidpjsuaApplication; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * @brief Creates the application's document (override from CApaApplication::CreateDocumentL()) |
| 31 | * @return Pointer to the created document object (CpjsuaDocument) |
| 32 | */ |
| 33 | CApaDocument* CpjsuaApplication::CreateDocumentL() |
| 34 | { |
| 35 | return CpjsuaDocument::NewL( *this ); |
| 36 | } |
| 37 | |
| 38 | #ifdef EKA2 |
| 39 | |
| 40 | /** |
| 41 | * @brief Called by the application framework to construct the application object |
| 42 | * @return The application (CpjsuaApplication) |
| 43 | */ |
| 44 | LOCAL_C CApaApplication* NewApplication() |
| 45 | { |
| 46 | return new CpjsuaApplication; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * @brief This standard export is the entry point for all Series 60 applications |
| 51 | * @return error code |
| 52 | */ |
| 53 | GLDEF_C TInt E32Main() |
| 54 | { |
| 55 | return EikStart::RunApplication( NewApplication ); |
| 56 | } |
| 57 | |
| 58 | #else // Series 60 2.x main DLL program code |
| 59 | |
| 60 | /** |
| 61 | * @brief This standard export constructs the application object. |
| 62 | * @return The application (CpjsuaApplication) |
| 63 | */ |
| 64 | EXPORT_C CApaApplication* NewApplication() |
| 65 | { |
| 66 | return new CpjsuaApplication; |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * @brief This standard export is the entry point for all Series 60 applications |
| 71 | * @return error code |
| 72 | */ |
| 73 | GLDEF_C TInt E32Dll(TDllReason /*reason*/) |
| 74 | { |
| 75 | return KErrNone; |
| 76 | } |
| 77 | |
| 78 | #endif // EKA2 |