|
1 /* |
|
2 * Copyright (c) 2002 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 Notepad Viewer Application class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "NpdViewerApp.h" |
|
21 #include "NpdViewerDocument.h" |
|
22 |
|
23 |
|
24 |
|
25 #include <eikstart.h> |
|
26 |
|
27 LOCAL_C CApaApplication* NewApplication() |
|
28 { |
|
29 return new CNotepadViewerApp; |
|
30 } |
|
31 |
|
32 GLDEF_C TInt E32Main() |
|
33 { |
|
34 return EikStart::RunApplication(NewApplication); |
|
35 } |
|
36 |
|
37 #if defined(__WINS__) && !defined(EKA2) |
|
38 GLDEF_C TInt E32Dll(TDllReason) |
|
39 { |
|
40 return KErrNone; |
|
41 } |
|
42 |
|
43 EXPORT_C TInt WinsMain(TDesC* aCmdLine) |
|
44 { |
|
45 return EikStart::RunApplication(NewApplication, aCmdLine); |
|
46 } |
|
47 #endif |
|
48 |
|
49 // ============================ MEMBER FUNCTIONS =============================== |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // CNotepadViewerApp::CreateDocumentL() |
|
53 // Creates CNotepadViewerDocument object |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 CApaDocument* CNotepadViewerApp::CreateDocumentL() |
|
57 { |
|
58 return new(ELeave) CNotepadViewerDocument(*this); |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // CNotepadViewerApp::AppDllUid() |
|
63 // Returns application UID |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 TUid CNotepadViewerApp::AppDllUid() const |
|
67 { |
|
68 return KUidNpdViewer; |
|
69 } |
|
70 |
|
71 |
|
72 |
|
73 // End of File |
|
74 |