|
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 * Sms viewer application |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include "MsgSmsViewerDoc.h" // Documentpart of the Symbian OS app |
|
23 #include "MsgSmsViewerApp.h" // Applicationpart of the Symbian OS app |
|
24 #include "MsgSmsViewerPan.h" // Panic-codes for SmsViewer |
|
25 #include "MsgSmsViewerAppServer.h" |
|
26 |
|
27 // ================= MEMBER FUNCTIONS ======================= |
|
28 |
|
29 // --------------------------------------------------------- |
|
30 // CMsgSmsViewerApplication::AppDllUid |
|
31 // Returns the application's uid to the UIKON framework |
|
32 // |
|
33 // --------------------------------------------------------- |
|
34 TUid CMsgSmsViewerApplication::AppDllUid() const |
|
35 { |
|
36 return KUidSmsViewer; |
|
37 } |
|
38 |
|
39 // --------------------------------------------------------- |
|
40 // CMsgSmsViewerApplication::CreateDocumentL |
|
41 // Part of the UIKON framework's application construction. Creates Doc-part. |
|
42 // |
|
43 // --------------------------------------------------------- |
|
44 CApaDocument* CMsgSmsViewerApplication::CreateDocumentL() |
|
45 { |
|
46 return CMsgSmsViewerDocument::NewL(*this); |
|
47 } |
|
48 |
|
49 // --------------------------------------------------------- |
|
50 // CMsgSmsViewerApplication::NewAppServerL |
|
51 // |
|
52 // --------------------------------------------------------- |
|
53 void CMsgSmsViewerApplication::NewAppServerL( CApaAppServer*& aAppServer ) |
|
54 { |
|
55 aAppServer = new (ELeave) CSmsViewerAppServer; |
|
56 } |
|
57 // ================= OTHER EXPORTED FUNCTIONS ============== |
|
58 |
|
59 #include <eikstart.h> |
|
60 LOCAL_C CApaApplication* NewApplication() |
|
61 { |
|
62 return new CMsgSmsViewerApplication; |
|
63 } |
|
64 |
|
65 GLDEF_C TInt E32Main() |
|
66 { |
|
67 return EikStart::RunApplication( NewApplication ); |
|
68 } |
|
69 |
|
70 // --------------------------------------------------------- |
|
71 // Panic implements |
|
72 // panic handling for Sms Viewer |
|
73 // Returns: nothing |
|
74 GLDEF_C void Panic( |
|
75 TMsgSmsPanic aPanic) // enum for panic codes |
|
76 { |
|
77 _LIT(KPanicText,"SmsViewer.app"); |
|
78 User::Panic(KPanicText, aPanic); |
|
79 } |
|
80 |
|
81 // End of File |