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