|
1 /* |
|
2 * Copyright (c) 2006-2006 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: Implementation for peninput server application |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "peninputserverapp.h" |
|
21 #include "peninputserverdocument.h" |
|
22 |
|
23 |
|
24 // ================= MEMBER FUNCTIONS ======================= |
|
25 |
|
26 // --------------------------------------------------------------------------- |
|
27 // CPeninputServerApp::AppDllUid() |
|
28 // Returns application UID |
|
29 // --------------------------------------------------------------------------- |
|
30 // |
|
31 TUid CPeninputServerApp::AppDllUid() const |
|
32 { |
|
33 return KUidPeninputserver; |
|
34 } |
|
35 |
|
36 // --------------------------------------------------------------------------- |
|
37 // CPeninputServerApp::~CPeninputServerApp() |
|
38 // --------------------------------------------------------------------------- |
|
39 // |
|
40 CPeninputServerApp::~CPeninputServerApp() |
|
41 { |
|
42 } |
|
43 |
|
44 // --------------------------------------------------------------------------- |
|
45 // CPeninputServerApp::CreateDocumentL() |
|
46 // Creates CPenInputServerDocument object |
|
47 // --------------------------------------------------------------------------- |
|
48 // |
|
49 CApaDocument* CPeninputServerApp::CreateDocumentL() |
|
50 { |
|
51 // create the server (leave it on the cleanup stack) |
|
52 return CPeninputServerDocument::NewL( *this ); |
|
53 } |
|
54 |
|
55 // ================= OTHER EXPORTED FUNCTIONS ============== |
|
56 |
|
57 #ifdef RD_APPS_TO_EXES |
|
58 |
|
59 #include <eikstart.h> |
|
60 |
|
61 // |
|
62 // --------------------------------------------------------------------------- |
|
63 // NewApplication() |
|
64 // Constructs CPeninputServerApp |
|
65 // Returns: created application object |
|
66 // --------------------------------------------------------------------------- |
|
67 // |
|
68 LOCAL_C CApaApplication* NewApplication() |
|
69 { |
|
70 return new CPeninputServerApp; |
|
71 } |
|
72 |
|
73 // |
|
74 // --------------------------------------------------------------------------- |
|
75 // NE32Main() |
|
76 // Application entry point |
|
77 // --------------------------------------------------------------------------- |
|
78 // |
|
79 GLDEF_C TInt E32Main() |
|
80 { |
|
81 return EikStart::RunApplication(NewApplication); |
|
82 } |
|
83 |
|
84 #if defined(__WINS__) && !defined(EKA2) |
|
85 GLDEF_C TInt E32Dll(TDllReason) |
|
86 { |
|
87 return KErrNone; |
|
88 } |
|
89 |
|
90 EXPORT_C TInt WinsMain(TDesC* aCmdLine) |
|
91 { |
|
92 return EikStart::RunApplication(NewApplication, aCmdLine); |
|
93 } |
|
94 #endif |
|
95 |
|
96 #else // !RD_APPS_TO_EXES |
|
97 EXPORT_C CApaApplication* NewApplication() |
|
98 { |
|
99 return new CPeninputServerApp; |
|
100 } |
|
101 |
|
102 // --------------------------------------------------------------------------- |
|
103 // E32Dll(TDllReason) |
|
104 // Entry point function for EPOC Apps |
|
105 // --------------------------------------------------------------------------- |
|
106 // |
|
107 #ifndef EKA2 |
|
108 GLDEF_C TInt E32Dll( TDllReason ) |
|
109 { |
|
110 return KErrNone; |
|
111 } |
|
112 #endif |
|
113 |
|
114 #endif // RD_APPS_TO_EXES |
|
115 |
|
116 // End of File |