|
1 |
|
2 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // INCLUDE FILES |
|
16 // |
|
17 |
|
18 |
|
19 |
|
20 #include "SIPExApp.h" |
|
21 #include "SIPExDoc.h" |
|
22 |
|
23 #ifdef EKA2 |
|
24 #include <eikstart.h> |
|
25 #endif |
|
26 |
|
27 |
|
28 // ============================ MEMBER FUNCTIONS =============================== |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // CSIPExApp::CreateDocumentL |
|
32 // Creates a document and returns a pointer to it |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 CApaDocument* CSIPExApp::CreateDocumentL() |
|
36 { |
|
37 CApaDocument* document = CSIPExDoc::NewL( *this ); |
|
38 return document; |
|
39 } |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // CSIPExApp::AppDllUid |
|
43 // Returns the UID for the SIPEx application |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 TUid CSIPExApp::AppDllUid() const |
|
47 { |
|
48 // Return the UID for the SIP Example game application |
|
49 return KUidSIPExApp; |
|
50 } |
|
51 |
|
52 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // NewApplication() implements the creation of the application class |
|
56 // Creates an application, and return a pointer to it |
|
57 // Returns: CApaApplication*: Pointer to the application class instance |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 EXPORT_C CApaApplication* NewApplication() |
|
61 { |
|
62 CApaApplication* app = new CSIPExApp; |
|
63 return app; |
|
64 } |
|
65 |
|
66 #ifdef EKA2 |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // E32MAin() is the entry point to the application DLL in application |
|
70 // framework V2 |
|
71 // Returns: TInt: Always KErrNone |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 GLDEF_C TInt E32Main() |
|
75 { |
|
76 return EikStart::RunApplication( NewApplication ); |
|
77 } |
|
78 |
|
79 #else |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // E32Dll() is the entry point to the application DLL |
|
83 // DLL entry point in EKA1 |
|
84 // Returns: TInt: Always KErrNone |
|
85 // ----------------------------------------------------------------------------- |
|
86 // |
|
87 GLDEF_C TInt E32Dll( TDllReason /*aReason*/ ) |
|
88 { |
|
89 return KErrNone; |
|
90 } |
|
91 |
|
92 #endif // EKA2 |
|
93 |
|
94 |
|
95 // End of file |
|
96 |