|
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: This is the implementation of application class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 |
|
21 #include "btui.h" // Global declarations |
|
22 #include "BTUIApp.h" |
|
23 #include "BTUIDocument.h" |
|
24 |
|
25 // --------------------------------------------------------- |
|
26 // CBTUIApp::AppDllUid() |
|
27 // Returns application UID |
|
28 // --------------------------------------------------------- |
|
29 // |
|
30 TUid CBTUIApp::AppDllUid() const |
|
31 { |
|
32 return KBtuiUid3; |
|
33 } |
|
34 |
|
35 // --------------------------------------------------------- |
|
36 // CBTUIApp::CreateDocumentL() |
|
37 // Creates CBTUIDocument object |
|
38 // --------------------------------------------------------- |
|
39 // |
|
40 CApaDocument* CBTUIApp::CreateDocumentL() |
|
41 { |
|
42 return CBTUIDocument::NewL( *this ); |
|
43 } |
|
44 |
|
45 #include <eikstart.h> |
|
46 |
|
47 // --------------------------------------------------------- |
|
48 // NewApplication() |
|
49 // --------------------------------------------------------- |
|
50 LOCAL_C CApaApplication* NewApplication() |
|
51 { |
|
52 return new CBTUIApp; |
|
53 } |
|
54 // --------------------------------------------------------- |
|
55 // E32Main() |
|
56 // --------------------------------------------------------- |
|
57 GLDEF_C TInt E32Main() |
|
58 { |
|
59 return EikStart::RunApplication(NewApplication); |
|
60 } |
|
61 |
|
62 |
|
63 |
|
64 |