|
1 /* |
|
2 * Copyright (c) 2007-2007 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 the License "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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "testappmnguiApplication.h" |
|
20 #include <eikstart.h> |
|
21 |
|
22 #pragma message("Please ensure that you read the ReadMe file.") |
|
23 |
|
24 #ifdef __UI_FRAMEWORKS_V2__ |
|
25 |
|
26 // Create an application, and return a pointer to it |
|
27 CApaApplication* NewApplication() |
|
28 { |
|
29 return new CtestappmnguiApplication; |
|
30 } |
|
31 |
|
32 |
|
33 TInt E32Main() |
|
34 { |
|
35 return EikStart::RunApplication(NewApplication); |
|
36 |
|
37 } |
|
38 |
|
39 /////////////////////////////////////////////////////////////////////////////// |
|
40 // |
|
41 // The following is required for wins on EKA1 (using the exedll target) |
|
42 // |
|
43 #if defined(__WINS__) && !defined(EKA2) |
|
44 EXPORT_C TInt WinsMain(TDesC* aCmdLine) |
|
45 { |
|
46 return EikStart::RunApplication(NewApplication, aCmdLine); |
|
47 } |
|
48 |
|
49 TInt E32Dll(TDllReason) |
|
50 { |
|
51 return KErrNone; |
|
52 } |
|
53 #endif |
|
54 |
|
55 #else // __UI_FRAMEWORKS_V2__ |
|
56 |
|
57 // Create an application, and return a pointer to it |
|
58 EXPORT_C CApaApplication* NewApplication() |
|
59 { |
|
60 return new CtestappmnguiApplication; |
|
61 } |
|
62 |
|
63 // DLL entry point, return that everything is ok |
|
64 GLDEF_C TInt E32Dll(TDllReason) |
|
65 { |
|
66 return KErrNone; |
|
67 } |
|
68 |
|
69 #endif // __UI_FRAMEWORKS_V2__ |
|
70 |