|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Declares main application class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "UssdApp.h" |
|
21 #include "UssdDocument.h" |
|
22 #include <eikstart.h> |
|
23 |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CUssdApp::AppDllUid() |
|
29 // Returns application UID |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 TUid CUssdApp::AppDllUid() const |
|
33 { |
|
34 return KUidussd; |
|
35 } |
|
36 |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CUssdApp::CreateDocumentL() |
|
40 // Creates CUssdDocument object |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 CApaDocument* CUssdApp::CreateDocumentL() |
|
44 { |
|
45 return CUssdDocument::NewL(*this); |
|
46 } |
|
47 |
|
48 |
|
49 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // NewApplication() |
|
53 // Constructs CUssdApp |
|
54 // Returns: CApaDocument*: created application object |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 LOCAL_C CApaApplication* NewApplication() |
|
58 { |
|
59 return new CUssdApp; |
|
60 } |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // E32Main implements |
|
64 // |
|
65 // It is called when executable is started. |
|
66 // |
|
67 // Returns: error code. |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 GLDEF_C TInt E32Main() |
|
71 { |
|
72 return EikStart::RunApplication( NewApplication ); |
|
73 } |
|
74 |
|
75 // End of File |