|
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: Implementation for document base class |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include "xndocument.h" |
|
20 #include "xnappuiadapter.h" |
|
21 |
|
22 // ============================ MEMBER FUNCTIONS =============================== |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // CXnDocument::CXnDocument |
|
26 // C++ default constructor can NOT contain any code, that |
|
27 // might leave. |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 EXPORT_C CXnDocument::CXnDocument( CEikApplication& aApp, TUid aApplicationUid ) |
|
31 : CAknDocument( aApp ) |
|
32 { |
|
33 iApplicationUid = aApplicationUid; |
|
34 } |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // Destructor |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 EXPORT_C CXnDocument::~CXnDocument() |
|
41 { |
|
42 } |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // CXnDocument::CreateAppUiL |
|
46 // Creates an AppUi |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 EXPORT_C CEikAppUi* CXnDocument::CreateAppUiL() |
|
50 { |
|
51 CEikAppUi* appUi = new ( ELeave ) CXnAppUiAdapter( iApplicationUid ); |
|
52 return appUi; |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // CXnDocument::Uid |
|
57 // Get the application uid |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 EXPORT_C TUid CXnDocument::Uid() |
|
61 { |
|
62 return iApplicationUid; |
|
63 } |