|
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: |
|
15 * Provides CNotViewerApplication class methods. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDES |
|
22 #include "NotViewerDocument.h" // Documentpart of the Symbian OS - app |
|
23 |
|
24 #include "NotViewerAppServer.h" // ServerApplication |
|
25 |
|
26 #include "NotViewerApp.h" // Applicationpart of the Symbian OS - app |
|
27 #include "NotViewer.hrh" // Exception codes for MmsViewer |
|
28 |
|
29 // ================= MEMBER FUNCTIONS ======================= |
|
30 |
|
31 // --------------------------------------------------------- |
|
32 // CNotViewerApplication::AppDllUid |
|
33 // Returns the application's uid to the EIKON framework |
|
34 // --------------------------------------------------------- |
|
35 // |
|
36 TUid CNotViewerApplication::AppDllUid() const |
|
37 { |
|
38 return KUidNotViewer; |
|
39 } |
|
40 |
|
41 // --------------------------------------------------------- |
|
42 // CNotViewerApplication::CreateDocumentL |
|
43 // Part of the EIKON framework's application construction. Creates Doc-part. |
|
44 // --------------------------------------------------------- |
|
45 // |
|
46 CApaDocument* CNotViewerApplication::CreateDocumentL() |
|
47 { |
|
48 return CNotViewerDocument::NewL( *this ); |
|
49 } |
|
50 |
|
51 // --------------------------------------------------------- |
|
52 // CNotViewerApplication::NewAppServerL |
|
53 // Called by framework. Creates an instance of AppServer. |
|
54 // --------------------------------------------------------- |
|
55 // |
|
56 void CNotViewerApplication::NewAppServerL( CApaAppServer*& aAppServer ) |
|
57 { |
|
58 aAppServer = new (ELeave) CNotViewerAppServer; |
|
59 } |
|
60 |
|
61 // ================= OTHER EXPORTED FUNCTIONS ============== |
|
62 |
|
63 #include <eikstart.h> |
|
64 |
|
65 LOCAL_C CApaApplication* NewApplication() |
|
66 { |
|
67 return new CNotViewerApplication; |
|
68 } |
|
69 |
|
70 GLDEF_C TInt E32Main( ) |
|
71 { |
|
72 return EikStart::RunApplication( NewApplication ); |
|
73 } |
|
74 |
|
75 // --------------------------------------------------------- |
|
76 // Panic implements |
|
77 // panic handling for Notification Viewer |
|
78 // Returns: nothing |
|
79 // --------------------------------------------------------- |
|
80 // |
|
81 GLDEF_C void Panic( TNotViewerExceptions aPanic ) |
|
82 { |
|
83 _LIT( KPanicText,"NotViewer.app" ); |
|
84 User::Panic( KPanicText, aPanic ); |
|
85 } |
|
86 |
|
87 // End of File |