|
1 /* |
|
2 * Copyright (c) 2002-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: Base class of all Xuikon-based applications |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include "xnapplication.h" |
|
20 #include "xndocument.h" |
|
21 |
|
22 // ============================ MEMBER FUNCTIONS =============================== |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // CXnApplication::CXnApplication |
|
26 // C++ default constructor can NOT contain any code, that |
|
27 // might leave. |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 EXPORT_C CXnApplication::CXnApplication( TUid aApplicationUid ) |
|
31 { |
|
32 iApplicationUid = aApplicationUid; |
|
33 } |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // Destructor |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 EXPORT_C CXnApplication::~CXnApplication() |
|
40 { |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // CXnApplication::AppDllUid |
|
45 // Returns the application uid. |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 EXPORT_C TUid CXnApplication::AppDllUid() const |
|
49 { |
|
50 return iApplicationUid; |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // CXnApplication::CreateDocumentL |
|
55 // Creates a document |
|
56 // ----------------------------------------------------------------------------- |
|
57 // |
|
58 EXPORT_C CApaDocument* CXnApplication::CreateDocumentL() |
|
59 { |
|
60 return new ( ELeave ) CXnDocument( *this, iApplicationUid ); |
|
61 } |