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