1 /* |
|
2 * Copyright (c) 2009 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 of the document class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "das_doc.h" |
|
21 #include "das_appui.h" |
|
22 |
|
23 // ======== MEMBER FUNCTIONS ======== |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // Symbian 2-phased constructor |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 CDefaultAppDocument* CDefaultAppDocument::NewL(CEikApplication& aApp) |
|
30 { |
|
31 CDefaultAppDocument* self = NewLC(aApp); |
|
32 CleanupStack::Pop(self); |
|
33 return self; |
|
34 } |
|
35 |
|
36 // --------------------------------------------------------------------------- |
|
37 // Symbian 2-phased constructor |
|
38 // --------------------------------------------------------------------------- |
|
39 // |
|
40 CDefaultAppDocument* CDefaultAppDocument::NewLC(CEikApplication& aApp) |
|
41 { |
|
42 CDefaultAppDocument* self = new (ELeave) CDefaultAppDocument(aApp); |
|
43 CleanupStack::PushL(self); |
|
44 return self; |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------------------------- |
|
48 // Default constructor |
|
49 // --------------------------------------------------------------------------- |
|
50 // |
|
51 CDefaultAppDocument::CDefaultAppDocument(CEikApplication& aApp) : CAknDocument(aApp), iDefaultAppUi(NULL) |
|
52 { |
|
53 // No implementation required |
|
54 } |
|
55 |
|
56 // --------------------------------------------------------------------------- |
|
57 // Instantiates CDefaultAppAppUi |
|
58 // --------------------------------------------------------------------------- |
|
59 // |
|
60 CEikAppUi* CDefaultAppDocument::CreateAppUiL() |
|
61 { |
|
62 iAppUi = iDefaultAppUi = new (ELeave) CDefaultAppAppUi; |
|
63 return (static_cast<CEikAppUi*>(iAppUi)); |
|
64 } |
|
65 |
|