1 /* |
|
2 * Copyright (c) 2007-2007 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: CSC Applications AppUi |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CSCAPPUI_H |
|
20 #define C_CSCAPPUI_H |
|
21 |
|
22 #include <aknViewAppUi.h> |
|
23 |
|
24 #include "mcscengcchobserver.h" |
|
25 #include "mcscengserviceobserver.h" |
|
26 #include "mcscengconnectionobserver.h" |
|
27 #include "mcscenguiextensionobserver.h" |
|
28 #include "mcscengprovisioningobserver.h" |
|
29 |
|
30 class CEikAppUi; |
|
31 class CAknViewAppUi; |
|
32 class CCSCServiceView; |
|
33 class CCSCEngCCHHandler; |
|
34 class CCSCEngStartupHandler; |
|
35 class CCSCEngServiceHandler; |
|
36 class CCSCEngBrandingHandler; |
|
37 class CCSCEngConnectionHandler; |
|
38 class CCSCEngServicePluginHandler; |
|
39 class CCSCEngUiExtensionPluginHandler; |
|
40 |
|
41 // View ID's for CSC views. |
|
42 const TUid KCSCServiceViewId = {947873}; |
|
43 |
|
44 |
|
45 /** |
|
46 * An instance of class CCSCAppUi. |
|
47 * User Interface part of AVKON application framework for CSC application |
|
48 * |
|
49 * @lib |
|
50 * @since S60 v3.2 |
|
51 */ |
|
52 NONSHARABLE_CLASS( CCSCAppUi ) : public CAknViewAppUi, |
|
53 public MCSCEngProvisioningObserver, |
|
54 public MCSCEngUiExtensionObserver, |
|
55 public MCSCEngConnectionObserver, |
|
56 public MCSCEngServiceObserver, |
|
57 public MCSCEngCCHObserver |
|
58 { |
|
59 public: |
|
60 |
|
61 void ConstructL(); |
|
62 |
|
63 CCSCAppUi(); |
|
64 |
|
65 |
|
66 /** |
|
67 * Destructor. |
|
68 */ |
|
69 virtual ~CCSCAppUi(); |
|
70 |
|
71 |
|
72 // from base class CEikAppUi |
|
73 |
|
74 /** |
|
75 * From CEikAppUi |
|
76 * |
|
77 * |
|
78 * @since |
|
79 * @param aCommand Defines the command codes used to indicate the way |
|
80 * an application is to be launched. Not used in CSC. |
|
81 * @param aDocumentName A buffer that can contain the name of a file. |
|
82 * Used in CSC to pass startup parameters instead of file name. |
|
83 * @param aTail |
|
84 */ |
|
85 TBool ProcessCommandParametersL( |
|
86 TApaCommand aCommand, |
|
87 TFileName& aDocumentName, |
|
88 const TDesC8& aTail); |
|
89 |
|
90 |
|
91 /** |
|
92 * From CEikAppUi |
|
93 * |
|
94 * |
|
95 * @since |
|
96 * @param aUid |
|
97 * @param aParams startup parameters. |
|
98 */ |
|
99 void ProcessMessageL( TUid aUid, const TDesC8 &aParams ); |
|
100 |
|
101 // from base class CAknViewAppUi |
|
102 |
|
103 /** |
|
104 * From CAknViewAppUi |
|
105 * Handles user menu selections. |
|
106 * |
|
107 * @since S60 v3.0 |
|
108 * @param aCommand The enumerated code for the option selected |
|
109 */ |
|
110 void HandleCommandL( TInt aCommand ); |
|
111 |
|
112 |
|
113 /** |
|
114 * From CAknViewAppUi |
|
115 * Handling changing of the skin and layout. |
|
116 * |
|
117 * @since S60 v3.0 |
|
118 * @param aType for type of the change |
|
119 */ |
|
120 void HandleResourceChangeL( TInt aType ); |
|
121 |
|
122 |
|
123 // from base class MCSCProvisioningObserver |
|
124 |
|
125 /** |
|
126 * From MCSCProvisioningObserver |
|
127 * Notifies when configuring of service plug-in is done. |
|
128 * |
|
129 * @since S60 v3.2 |
|
130 * @param aResponse plug-in response type |
|
131 * @param aIndex index |
|
132 * @param aPluginUid plugins uid |
|
133 */ |
|
134 void NotifyServicePluginResponse( |
|
135 const CCSCEngServicePluginHandler::TServicePluginResponse& aResponse, |
|
136 const TInt aIndex, |
|
137 const TUid& aPluginUid ); |
|
138 |
|
139 |
|
140 // from base class MCSCUiExtensionObserver |
|
141 |
|
142 /** |
|
143 * From MCSCUiExtensionObserver |
|
144 * Notifies when ui extension plug-in is exited |
|
145 * |
|
146 * @since S60 v3.2 |
|
147 * @param aResponse plug-in response type |
|
148 * @param aIndex index |
|
149 * @param aPluginUid plugins uid |
|
150 */ |
|
151 void NotifyUiExtensionPluginResponse( |
|
152 const CCSCEngUiExtensionPluginHandler::TUiExtensionPluginResponse& |
|
153 aResponse, |
|
154 const TInt aIndex, |
|
155 const TUid& aPluginUid ); |
|
156 |
|
157 |
|
158 // from base class MCSCEngServiceObserver |
|
159 |
|
160 /** |
|
161 * Called when change in service(s) occur |
|
162 * |
|
163 * @since S60 v3.2 |
|
164 */ |
|
165 void NotifyServiceChange(); |
|
166 |
|
167 |
|
168 // from base class MCSCEngCCHObserver |
|
169 |
|
170 /** |
|
171 * From MCSCEngCCHObserver. |
|
172 */ |
|
173 void ServiceStatusChanged( |
|
174 TUint aServiceId, |
|
175 TCCHSubserviceType aType, |
|
176 const TCchServiceStatus& aServiceStatus ); |
|
177 |
|
178 |
|
179 // from base class MCSCEngConnectionObserver |
|
180 |
|
181 /** |
|
182 * From MCSCEngConnectionObserver. |
|
183 */ |
|
184 void NotifyConnectionEvent( |
|
185 CCSCEngConnectionHandler::TConnectionEvent aConnectionEvent ); |
|
186 |
|
187 |
|
188 private: |
|
189 |
|
190 /* |
|
191 * For checking if SNAP is still in use. |
|
192 * |
|
193 * @since S60 3.2 |
|
194 * @param aServiceId service id |
|
195 */ |
|
196 void SnapCheckL( TUint aServiceId ) const; |
|
197 |
|
198 private: // data |
|
199 |
|
200 /** |
|
201 * For CSC Application startup parameter handling |
|
202 * Own. |
|
203 */ |
|
204 CCSCEngStartupHandler* iStartupHandler; |
|
205 |
|
206 /** |
|
207 * For CSC Application service handling |
|
208 * Own. |
|
209 */ |
|
210 CCSCEngServiceHandler* iServiceHandler; |
|
211 |
|
212 /** |
|
213 * For CSC Application branding handling |
|
214 * Own. |
|
215 */ |
|
216 CCSCEngBrandingHandler* iBrandingHandler; |
|
217 |
|
218 /** |
|
219 * For CSC Application CCH handling |
|
220 * Own. |
|
221 */ |
|
222 CCSCEngCCHHandler* iCCHHandler; |
|
223 |
|
224 /** |
|
225 * For CSC Application RConnection monitoring |
|
226 * Own. |
|
227 */ |
|
228 CCSCEngConnectionHandler* iConnectionHandler; |
|
229 |
|
230 /** |
|
231 * Pointer to CCSCServiceView |
|
232 * Not own. |
|
233 */ |
|
234 CCSCServiceView* iServiceView; |
|
235 |
|
236 /** |
|
237 * Service which is monitored when disabling and removing service |
|
238 */ |
|
239 TUint iMonitoredService; |
|
240 |
|
241 #ifdef _DEBUG |
|
242 friend class UT_CSC; |
|
243 #endif |
|
244 |
|
245 }; |
|
246 |
|
247 #endif // C_CSCAPPUI_H |
|