|
1 /* |
|
2 * Copyright (c) 2002 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: Document class of the application. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <apgwgnam.h> |
|
21 |
|
22 #include "StartupDocument.h" |
|
23 #include "StartupAppUi.h" |
|
24 |
|
25 // ================= MEMBER FUNCTIONS ======================= |
|
26 |
|
27 // --------------------------------------------------------- |
|
28 // CStartupDocument::~CStartupDocument() |
|
29 // --------------------------------------------------------- |
|
30 CStartupDocument::~CStartupDocument() |
|
31 { |
|
32 } |
|
33 |
|
34 // --------------------------------------------------------- |
|
35 // CStartupDocument::ConstructL() |
|
36 // --------------------------------------------------------- |
|
37 void CStartupDocument::ConstructL() |
|
38 { |
|
39 } |
|
40 |
|
41 // --------------------------------------------------------- |
|
42 // CStartupDocument::NewL() |
|
43 // --------------------------------------------------------- |
|
44 CStartupDocument* CStartupDocument::NewL( |
|
45 CEikApplication& aApp) // CStartupApp reference |
|
46 { |
|
47 CStartupDocument* self = new (ELeave) CStartupDocument(aApp); |
|
48 CleanupStack::PushL(self); |
|
49 self->ConstructL(); |
|
50 CleanupStack::Pop(); // self |
|
51 return self; |
|
52 } |
|
53 |
|
54 // ---------------------------------------------------- |
|
55 // CStartupDocument::CreateAppUiL() |
|
56 // ---------------------------------------------------- |
|
57 CEikAppUi* CStartupDocument::CreateAppUiL() |
|
58 { |
|
59 return new(ELeave) CStartupAppUi; |
|
60 } |
|
61 |
|
62 // ---------------------------------------------------- |
|
63 // CStartupDocument::UpdateTaskNameL() |
|
64 // Makes Startup-application hidden in menu shell and fastswap window |
|
65 // ---------------------------------------------------- |
|
66 void CStartupDocument::UpdateTaskNameL( CApaWindowGroupName* aWgName ) |
|
67 { |
|
68 CEikDocument::UpdateTaskNameL( aWgName ); |
|
69 aWgName->SetHidden( ETrue ); |
|
70 } |
|
71 |
|
72 // End of file |