|
1 /* |
|
2 * Copyright (c) 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 * |
|
16 */ |
|
17 |
|
18 #include "SyncFwCustomizerApplication.h" |
|
19 #include "SyncFwCustomizerDocument.h" |
|
20 |
|
21 #ifdef EKA2 |
|
22 #include <eikstart.h> |
|
23 #endif |
|
24 |
|
25 /** |
|
26 * @brief Returns the application's UID (override from CApaApplication::AppDllUid()) |
|
27 * @return UID for this application (KUidSyncFwCustomizerApplication) |
|
28 */ |
|
29 TUid CSyncFwCustomizerApplication::AppDllUid() const |
|
30 { |
|
31 return KUidSyncFwCustomizerApplication; |
|
32 } |
|
33 |
|
34 /** |
|
35 * @brief Creates the application's document (override from CApaApplication::CreateDocumentL()) |
|
36 * @return Pointer to the created document object (CSyncFwCustomizerDocument) |
|
37 */ |
|
38 CApaDocument* CSyncFwCustomizerApplication::CreateDocumentL() |
|
39 { |
|
40 return CSyncFwCustomizerDocument::NewL( *this ); |
|
41 } |
|
42 |
|
43 #ifdef EKA2 |
|
44 |
|
45 /** |
|
46 * @brief Called by the application framework to construct the application object |
|
47 * @return The application (CSyncFwCustomizerApplication) |
|
48 */ |
|
49 LOCAL_C CApaApplication* NewApplication() |
|
50 { |
|
51 return new CSyncFwCustomizerApplication; |
|
52 } |
|
53 |
|
54 /** |
|
55 * @brief This standard export is the entry point for all Series 60 applications |
|
56 * @return error code |
|
57 */ |
|
58 GLDEF_C TInt E32Main() |
|
59 { |
|
60 return EikStart::RunApplication( NewApplication ); |
|
61 } |
|
62 |
|
63 #else // Series 60 2.x main DLL program code |
|
64 |
|
65 /** |
|
66 * @brief This standard export constructs the application object. |
|
67 * @return The application (CSyncFwCustomizerApplication) |
|
68 */ |
|
69 EXPORT_C CApaApplication* NewApplication() |
|
70 { |
|
71 return new CSyncFwCustomizerApplication; |
|
72 } |
|
73 |
|
74 /** |
|
75 * @brief This standard export is the entry point for all Series 60 applications |
|
76 * @return error code |
|
77 */ |
|
78 GLDEF_C TInt E32Dll(TDllReason /*reason*/) |
|
79 { |
|
80 return KErrNone; |
|
81 } |
|
82 |
|
83 #endif // EKA2 |