|
1 /* |
|
2 * Copyright (c) 2002-2005 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "cenrepeditordocument.h" |
|
21 #include "cenrepeditorappui.h" |
|
22 |
|
23 // ================= MEMBER FUNCTIONS ======================= |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CCenrepEditorDocument::CCenrepEditorDocument(CEikApplication& aApp) |
|
27 // C++ default constructor can NOT contain any code, that |
|
28 // might leave. |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 CCenrepEditorDocument::CCenrepEditorDocument(CEikApplication& aApp) |
|
32 : CAknDocument(aApp) |
|
33 { |
|
34 } |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // CCenrepEditorDocument::~CCenrepEditorDocument() |
|
38 // Destructor. |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 CCenrepEditorDocument::~CCenrepEditorDocument() |
|
42 { |
|
43 |
|
44 } |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // CCenrepEditorDocument::ConstructL() |
|
48 // Symbian 2nd phase constructor can leave. |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 void CCenrepEditorDocument::ConstructL() |
|
52 { |
|
53 |
|
54 } |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // CCenrepEditorDocument::NewL(CEikApplication& aApp) |
|
58 // Two-phased constructor. |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 CCenrepEditorDocument* CCenrepEditorDocument::NewL(CEikApplication& aApp) // CCenrepEditorApp reference |
|
62 { |
|
63 CCenrepEditorDocument* self = new (ELeave) CCenrepEditorDocument( aApp ); |
|
64 CleanupStack::PushL( self ); |
|
65 self->ConstructL(); |
|
66 CleanupStack::Pop(); |
|
67 return self; |
|
68 } |
|
69 |
|
70 // ---------------------------------------------------- |
|
71 // CCenrepEditorDocument::CreateAppUiL() |
|
72 // Constructs CCenrepEditorAppUi. |
|
73 // ---------------------------------------------------- |
|
74 // |
|
75 CEikAppUi* CCenrepEditorDocument::CreateAppUiL() |
|
76 { |
|
77 return new (ELeave) CCenrepEditorAppUi; |
|
78 } |
|
79 |