|
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: LandmarksUi Content File - Provides LM Application class methods. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 // INCLUDE FILES |
|
25 #include "CLmkMsgViewerApp.h" |
|
26 #include "CLmkMsgViewerDocument.h" |
|
27 #include "LmkUID.h" |
|
28 #include<eikstart.h> |
|
29 |
|
30 |
|
31 // ================= MEMBER FUNCTIONS ======================= |
|
32 |
|
33 // --------------------------------------------------------- |
|
34 // CLmkMsgViewerApp::AppDllUid() |
|
35 // Returns application UID |
|
36 // --------------------------------------------------------- |
|
37 // |
|
38 TUid CLmkMsgViewerApp::AppDllUid() const |
|
39 { |
|
40 return TUid::Uid( KLmkMsgViewerAppUID3 ); |
|
41 } |
|
42 |
|
43 // --------------------------------------------------------- |
|
44 // CLocApp::CreateDocumentL() |
|
45 // Creates CLmkMsgViewerDocument object |
|
46 // --------------------------------------------------------- |
|
47 // |
|
48 CApaDocument* CLmkMsgViewerApp::CreateDocumentL() |
|
49 { |
|
50 return CLmkMsgViewerDocument::NewL( *this ); |
|
51 } |
|
52 |
|
53 // ================= OTHER EXPORTED FUNCTIONS ============== |
|
54 // |
|
55 |
|
56 LOCAL_C CApaApplication* NewApplication() |
|
57 { |
|
58 return new CLmkMsgViewerApp; |
|
59 } |
|
60 |
|
61 GLDEF_C TInt E32Main() |
|
62 { |
|
63 return EikStart::RunApplication(NewApplication); |
|
64 } |
|
65 |
|
66 #if defined(_WINS_) |
|
67 EXPORT_C TInt WinsMain(TDesC* /*aCmdLine*/) |
|
68 { |
|
69 //return EikStart::RunApplication(NewApplication, aCmdLine); |
|
70 return EikStart::RunApplication(NewApplication); |
|
71 } |
|
72 #endif |
|
73 // End of File |