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