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