|
1 /* |
|
2 * Copyright (c) 2002-2007 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 * Defines CSatUiApplication class |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include "CSatUiDocument.h" |
|
23 #include "CSatUiApplication.h" |
|
24 #include <eikpanic.h> |
|
25 #include <eikstart.h> |
|
26 #include "tflogger.h" |
|
27 |
|
28 // ================= MEMBER FUNCTIONS ======================= |
|
29 |
|
30 // --------------------------------------------------------- |
|
31 // CSatUiApplication::AppDllUid |
|
32 // Returns application UID. |
|
33 // (other items were commented in a header). |
|
34 // --------------------------------------------------------- |
|
35 // |
|
36 TUid CSatUiApplication::AppDllUid() const |
|
37 { |
|
38 TFLOGSTRING( "CSatUiApplication::AppDllUid() called" ) |
|
39 return KUidSATUI; |
|
40 } |
|
41 |
|
42 // --------------------------------------------------------- |
|
43 // CSatUiApplication::CreateDocumentL |
|
44 // Creates the document object. |
|
45 // (other items were commented in a header). |
|
46 // --------------------------------------------------------- |
|
47 // |
|
48 CApaDocument* CSatUiApplication::CreateDocumentL() |
|
49 { |
|
50 TFLOGSTRING( "CSatUiApplication::CreateDocumentL() called" ) |
|
51 CSatUiDocument* document = new ( ELeave ) CSatUiDocument( *this ); |
|
52 CleanupStack::PushL( document ); |
|
53 document->ConstructL(); |
|
54 CleanupStack::Pop( document ); |
|
55 TFLOGSTRING( "CSatUiApplication::CreateDocumentL() exit" ) |
|
56 return( document ); |
|
57 } |
|
58 |
|
59 // ================= OTHER EXPORTED FUNCTIONS ============== |
|
60 |
|
61 LOCAL_C CApaApplication* NewApplication() |
|
62 { |
|
63 TFLOGSTRING( "NewApplication() called" ) |
|
64 return new CSatUiApplication; |
|
65 } |
|
66 |
|
67 GLDEF_C TInt E32Main() |
|
68 { |
|
69 TFLOGSTRING( "E32Main() called" ) |
|
70 return EikStart::RunApplication(NewApplication); |
|
71 } |
|
72 |
|
73 // |
|
74 // --------------------------------------------------------- |
|
75 // Panic |
|
76 // The needed panic method. |
|
77 // Returns: void |
|
78 // |
|
79 GLREF_C void Panic( |
|
80 TEikPanic aPanic) |
|
81 { |
|
82 _LIT(KPanicText,"satui.app"); |
|
83 User::Panic(KPanicText,aPanic); |
|
84 } |
|
85 |
|
86 // End of File |