|
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 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: Application class declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 |
|
22 #include "PushViewerApp.h" |
|
23 #include "PushViewerDoc.h" |
|
24 #include "PushViewerDef.h" |
|
25 #include "PushViewerAppServer.h" |
|
26 #include <eikstart.h> |
|
27 |
|
28 |
|
29 // ================= MEMBER FUNCTIONS ======================= |
|
30 |
|
31 // --------------------------------------------------------- |
|
32 // CPushViewerApplication::AppDllUid |
|
33 // --------------------------------------------------------- |
|
34 // |
|
35 TUid CPushViewerApplication::AppDllUid() const |
|
36 { |
|
37 return KUidPushViewerApp; |
|
38 } |
|
39 |
|
40 // --------------------------------------------------------- |
|
41 // CPushViewerApplication::CreateDocumentL |
|
42 // --------------------------------------------------------- |
|
43 // |
|
44 CApaDocument* CPushViewerApplication::CreateDocumentL() |
|
45 { |
|
46 return CPushViewerDocument::NewL( *this ); |
|
47 } |
|
48 |
|
49 // --------------------------------------------------------- |
|
50 // CPushViewerApplication::NewAppServerL |
|
51 // --------------------------------------------------------- |
|
52 // |
|
53 void CPushViewerApplication::NewAppServerL |
|
54 ( CApaAppServer*& aAppServer ) |
|
55 { |
|
56 aAppServer = new (ELeave) CPushViewerAppServer; |
|
57 } |
|
58 |
|
59 // ================= OTHER EXPORTED FUNCTIONS ============== |
|
60 |
|
61 LOCAL_C CApaApplication* NewApplication() |
|
62 { |
|
63 return new CPushViewerApplication; |
|
64 } |
|
65 |
|
66 GLDEF_C TInt E32Main() |
|
67 { |
|
68 return EikStart::RunApplication( NewApplication ); |
|
69 } |
|
70 |