1 /* |
|
2 * ============================================================================ |
|
3 * Name : hgteleportdocument.cpp |
|
4 * Part of : Hg Teleport |
|
5 * Description : Document class |
|
6 * Version : %version: 4 % |
|
7 * |
|
8 * Copyright © 2008 Nokia. All rights reserved. |
|
9 * This material, including documentation and any related computer |
|
10 * programs, is protected by copyright controlled by Nokia. All |
|
11 * rights are reserved. Copying, including reproducing, storing, |
|
12 * adapting or translating, any or all of this material requires the |
|
13 * prior written consent of Nokia. This material also contains |
|
14 * confidential information which may not be disclosed to others |
|
15 * without the prior written consent of Nokia. |
|
16 * ============================================================================ |
|
17 * |
|
18 */ |
|
19 |
|
20 #include <apgwgnam.h> |
|
21 |
|
22 #include "hgteleportappui.h" |
|
23 #include "hgteleportdocument.h" |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CHgTeleportDocument::NewLC( ) |
|
27 // Create a CHgTeleportDocument object and return a pointer to it |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 CHgTeleportDocument* CHgTeleportDocument::NewL( CEikApplication& aApp ) |
|
31 { |
|
32 CHgTeleportDocument* self = NewLC ( aApp ); |
|
33 CleanupStack::Pop ( self ); |
|
34 return self; |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // CHgTeleportDocument::NewLC( ) |
|
39 // Create a CHgTeleportDocument object and return a pointer to it |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 CHgTeleportDocument* CHgTeleportDocument::NewLC( CEikApplication& aApp ) |
|
43 { |
|
44 CHgTeleportDocument* self = new ( ELeave ) CHgTeleportDocument( aApp ); |
|
45 CleanupStack::PushL ( self ); |
|
46 self->ConstructL ( ); |
|
47 return self; |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // CHgTeleportDocument::ConstructL( ) |
|
52 // Second phase constructor |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 void CHgTeleportDocument::ConstructL( ) |
|
56 { |
|
57 // no implementation required |
|
58 } |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 // CHgTeleportDocument::~CHgTeleportDocument( ) |
|
62 // First phase constructor |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 CHgTeleportDocument::CHgTeleportDocument( CEikApplication& aApp ) : |
|
66 CAknDocument( aApp ) |
|
67 { |
|
68 // no implementation required |
|
69 } |
|
70 |
|
71 // ----------------------------------------------------------------------------- |
|
72 // CHgTeleportDocument::~CHgTeleportDocument( ) |
|
73 // Destructor |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 CHgTeleportDocument::~CHgTeleportDocument( ) |
|
77 { |
|
78 // no implementation required |
|
79 } |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // CHgTeleportDocument::CreateAppUiL( ) |
|
83 // Create a CHgTeleportAppUi object and return a pointer to it |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 CEikAppUi* CHgTeleportDocument::CreateAppUiL( ) |
|
87 { |
|
88 // Create the application user interface, and return a pointer to it, |
|
89 // the framework takes ownership of this object |
|
90 CEikAppUi* appUi = new ( ELeave ) CHgTeleportAppUi; |
|
91 return appUi; |
|
92 } |
|
93 |
|
94 // ----------------------------------------------------------------------------- |
|
95 // CHgTeleportDocument::UpdateTaskNameL( ) |
|
96 // Makes app hidden in fastswap window |
|
97 // ----------------------------------------------------------------------------- |
|
98 // |
|
99 void CHgTeleportDocument::UpdateTaskNameL( CApaWindowGroupName* aWgName ) |
|
100 { |
|
101 CEikDocument::UpdateTaskNameL ( aWgName ); |
|
102 aWgName->SetHidden ( ETrue ); |
|
103 } |
|
104 |
|
105 |
|
106 // End of file |
|