|
1 /* |
|
2 * Copyright (c) 2006 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 for SendUi service resolver |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include <centralrepository.h> |
|
21 #include <apgwgnam.h> //CApaWindowGroupName |
|
22 |
|
23 #include "senduisrappui.h" |
|
24 #include "senduisrdoc.h" |
|
25 |
|
26 |
|
27 // ======== LOCAL FUNCTIONS ======== |
|
28 |
|
29 // --------------------------------------------------------------------------- |
|
30 // Constructor |
|
31 // --------------------------------------------------------------------------- |
|
32 // |
|
33 CSendUiSrDocument::CSendUiSrDocument(CEikApplication& aApp) : CAknDocument(aApp) |
|
34 { |
|
35 // no implementation required |
|
36 } |
|
37 |
|
38 |
|
39 // ======== MEMBER FUNCTIONS ======== |
|
40 |
|
41 // --------------------------------------------------------------------------- |
|
42 // ConstructL |
|
43 // --------------------------------------------------------------------------- |
|
44 // |
|
45 void CSendUiSrDocument::ConstructL() |
|
46 { |
|
47 // no implementation required |
|
48 } |
|
49 |
|
50 |
|
51 // --------------------------------------------------------------------------- |
|
52 // NewL |
|
53 // --------------------------------------------------------------------------- |
|
54 // |
|
55 CSendUiSrDocument* CSendUiSrDocument::NewL(CEikApplication& aApp) |
|
56 { |
|
57 CSendUiSrDocument* self = NewLC(aApp); |
|
58 CleanupStack::Pop(self); |
|
59 return self; |
|
60 } |
|
61 |
|
62 // --------------------------------------------------------------------------- |
|
63 // NewLC |
|
64 // --------------------------------------------------------------------------- |
|
65 // |
|
66 CSendUiSrDocument* CSendUiSrDocument::NewLC(CEikApplication& aApp) |
|
67 { |
|
68 CSendUiSrDocument* self = new (ELeave) CSendUiSrDocument(aApp); |
|
69 CleanupStack::PushL(self); |
|
70 self->ConstructL(); |
|
71 return self; |
|
72 } |
|
73 |
|
74 // --------------------------------------------------------------------------- |
|
75 // Destructor |
|
76 // --------------------------------------------------------------------------- |
|
77 // |
|
78 CSendUiSrDocument::~CSendUiSrDocument() |
|
79 { |
|
80 // no implementation required |
|
81 } |
|
82 |
|
83 // --------------------------------------------------------------------------- |
|
84 // From CAknDocument. |
|
85 // --------------------------------------------------------------------------- |
|
86 // |
|
87 CEikAppUi* CSendUiSrDocument::CreateAppUiL() |
|
88 { |
|
89 // Create the application user interface, and return a pointer to it, |
|
90 // the framework takes ownership of this object |
|
91 |
|
92 CEikAppUi* appUi = new(ELeave)CSendUiSrAppUi; |
|
93 return appUi; |
|
94 } |
|
95 |
|
96 // --------------------------------------------------------------------------- |
|
97 // From CAknDocument. |
|
98 // Hide application from the fast swap list. |
|
99 // --------------------------------------------------------------------------- |
|
100 // |
|
101 void CSendUiSrDocument::UpdateTaskNameL(CApaWindowGroupName* aWgName) |
|
102 { |
|
103 CAknDocument::UpdateTaskNameL(aWgName); |
|
104 aWgName->SetHidden(ETrue); |
|
105 } |
|
106 |