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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "TestAppDocument.h" |
|
21 #include "TestAppAppUi.h" |
|
22 |
|
23 // ================= MEMBER FUNCTIONS ======================= |
|
24 |
|
25 // constructor |
|
26 CTestAppDocument::CTestAppDocument(CEikApplication& aApp) |
|
27 : CAknDocument(aApp) |
|
28 { |
|
29 } |
|
30 |
|
31 // destructor |
|
32 CTestAppDocument::~CTestAppDocument() |
|
33 { |
|
34 } |
|
35 |
|
36 // EPOC default constructor can leave. |
|
37 void CTestAppDocument::ConstructL() |
|
38 { |
|
39 } |
|
40 |
|
41 // Two-phased constructor. |
|
42 CTestAppDocument* CTestAppDocument::NewL( |
|
43 CEikApplication& aApp) // CTestAppApp reference |
|
44 { |
|
45 CTestAppDocument* self = new (ELeave) CTestAppDocument( aApp ); |
|
46 CleanupStack::PushL( self ); |
|
47 self->ConstructL(); |
|
48 CleanupStack::Pop( self ); |
|
49 |
|
50 return self; |
|
51 } |
|
52 |
|
53 // ---------------------------------------------------- |
|
54 // CTestAppDocument::CreateAppUiL() |
|
55 // constructs CTestAppAppUi |
|
56 // ---------------------------------------------------- |
|
57 // |
|
58 CEikAppUi* CTestAppDocument::CreateAppUiL() |
|
59 { |
|
60 return new (ELeave) CTestAppAppUi; |
|
61 } |
|
62 |
|
63 // End of File |
|