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