equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004 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: Implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "CTcApplication.h" |
|
19 #include "CTcDocument.h" |
|
20 #include "tcuid.h" |
|
21 |
|
22 |
|
23 #ifdef EKA2 |
|
24 #include <eikstart.h> |
|
25 #endif |
|
26 |
|
27 EXPORT_C CApaApplication* NewApplication() |
|
28 { |
|
29 return new CTcApplication; |
|
30 } |
|
31 |
|
32 #ifdef EKA2 |
|
33 GLDEF_C TInt E32Main() |
|
34 { |
|
35 return EikStart::RunApplication(NewApplication); |
|
36 } |
|
37 #endif |
|
38 |
|
39 CTcApplication::CTcApplication() |
|
40 { |
|
41 } |
|
42 |
|
43 CTcApplication::~CTcApplication() |
|
44 { |
|
45 } |
|
46 |
|
47 TUid CTcApplication::AppDllUid() const |
|
48 { |
|
49 return TUid::Uid( TCUID ); |
|
50 } |
|
51 |
|
52 CApaDocument* CTcApplication::CreateDocumentL() |
|
53 { |
|
54 // Create a new document, and return a pointer to it |
|
55 return CTcDocument::NewL( *this ); |
|
56 } |
|
57 |