|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Source file for Application class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 |
|
21 #include "WidgetStartupDocument.h" |
|
22 #include "WidgetStartupApp.h" |
|
23 #include <eikstart.h> |
|
24 |
|
25 |
|
26 // LOCAL FUNCTION PROTOTYPES |
|
27 |
|
28 // LOCAL CONSTANTS |
|
29 |
|
30 // ==================== LOCAL FUNCTIONS ==================== |
|
31 |
|
32 // ================= MEMBER FUNCTIONS ======================= |
|
33 |
|
34 // --------------------------------------------------------- |
|
35 // CWidgetStartupApplication::CreateDocumentL |
|
36 // Creates a CNTSubHandlerAppDocument object fully constructed and |
|
37 // returns a pointer to it. |
|
38 // (other items were commented in a header). |
|
39 // --------------------------------------------------------- |
|
40 // |
|
41 |
|
42 CApaDocument* CWidgetStartupApplication::CreateDocumentL() |
|
43 { |
|
44 return CWidgetStartupDocument::NewL(*this); |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------- |
|
48 // CNTSubHandlerAppApplication::AppDllUid |
|
49 // returns the UID of NTSubHandlerApp application |
|
50 // (other items were commented in a header). |
|
51 // --------------------------------------------------------- |
|
52 // |
|
53 TUid CWidgetStartupApplication::AppDllUid() const |
|
54 { |
|
55 return KUidWidgetStartupApp; |
|
56 } |
|
57 |
|
58 |
|
59 // --------------------------------------------------------- |
|
60 // NewApplication |
|
61 // The entry point for the application code. It creates |
|
62 // an instance of the CApaApplication derived |
|
63 // class, CWidgetPreInstaller. |
|
64 // Returns: pointer to CApaApplication |
|
65 // --------------------------------------------------------- |
|
66 // |
|
67 LOCAL_C CApaApplication* NewApplication() |
|
68 { |
|
69 return new CWidgetStartupApplication; |
|
70 } |
|
71 |
|
72 GLDEF_C TInt E32Main() |
|
73 { |
|
74 return EikStart::RunApplication( NewApplication ); |
|
75 } |
|
76 |
|
77 // End of File |