|
1 /* |
|
2 * Copyright (c) 2009-2010 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 * CBootstrapDocument class implementation. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include "BootstrapAppUi.h" |
|
23 #include "BootstrapDocument.h" |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CBootstrapDocument::NewL() |
|
29 // Two-phased constructor. |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 CBootstrapDocument* CBootstrapDocument::NewL( CEikApplication& aApp ) |
|
33 { |
|
34 CBootstrapDocument* self = NewLC( aApp ); |
|
35 CleanupStack::Pop( self ); |
|
36 return self; |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CBootstrapDocument::NewLC() |
|
41 // Two-phased constructor. |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 CBootstrapDocument* CBootstrapDocument::NewLC( CEikApplication& |
|
45 aApp ) |
|
46 { |
|
47 CBootstrapDocument* self = |
|
48 new ( ELeave ) CBootstrapDocument( aApp ); |
|
49 |
|
50 CleanupStack::PushL( self ); |
|
51 self->ConstructL(); |
|
52 return self; |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // CBootstrapDocument::ConstructL() |
|
57 // Symbian 2nd phase constructor can leave. |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 void CBootstrapDocument::ConstructL() |
|
61 { |
|
62 // No implementation required |
|
63 } |
|
64 |
|
65 // ----------------------------------------------------------------------------- |
|
66 // CBootstrapDocument::CBootstrapDocument() |
|
67 // C++ default constructor can NOT contain any code, that might leave. |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 CBootstrapDocument::CBootstrapDocument( CEikApplication& aApp ) |
|
71 : CAknDocument( aApp ) |
|
72 { |
|
73 // No implementation required |
|
74 } |
|
75 |
|
76 // --------------------------------------------------------------------------- |
|
77 // CBootstrapDocument::~CBootstrapDocument() |
|
78 // Destructor. |
|
79 // --------------------------------------------------------------------------- |
|
80 // |
|
81 CBootstrapDocument::~CBootstrapDocument() |
|
82 { |
|
83 // No implementation required |
|
84 } |
|
85 |
|
86 // --------------------------------------------------------------------------- |
|
87 // CBootstrapDocument::CreateAppUiL() |
|
88 // Constructs CreateAppUi. |
|
89 // --------------------------------------------------------------------------- |
|
90 // |
|
91 CEikAppUi* CBootstrapDocument::CreateAppUiL() |
|
92 { |
|
93 // Create the application user interface, and return a pointer to it; |
|
94 // the framework takes ownership of this object |
|
95 return ( static_cast <CEikAppUi*> ( new ( ELeave ) |
|
96 CBootstrapAppUi ) ); |
|
97 } |
|
98 |
|
99 // End of File |