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