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