author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 15:01:35 +0300 | |
branch | RCL_3 |
changeset 55 | ea98413ce11f |
parent 49 | 10852b179f64 |
permissions | -rw-r--r-- |
45 | 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: SUPL Settings UI Engine. The engine is resposible for handling |
|
15 |
* all the UI components required for SUPL Settings UI. In addition |
|
16 |
* to this it also is responsible for interacting with the SUPL |
|
17 |
* Settings API |
|
18 |
* |
|
19 |
*/ |
|
20 |
||
21 |
||
22 |
#ifndef C_LOCSUPLSETTINGSUIENGINE_H_ |
|
23 |
#define C_LOCSUPLSETTINGSUIENGINE_H_ |
|
24 |
||
25 |
// System Includes |
|
26 |
#include <e32base.h> |
|
27 |
#include <agentdialog.h> // for RGenConAgentDialogServer |
|
28 |
||
29 |
// User Includes |
|
30 |
#include "locsuplsettingsadapterobserver.h" |
|
31 |
||
32 |
// Forward Declaration |
|
33 |
class CLocSUPLSettingsAdapter; |
|
34 |
class MLocSUPLSettingsUiEngObserver; |
|
35 |
class CTextResolver; |
|
36 |
class CAknGlobalConfirmationQuery; |
|
37 |
class CServerParams; |
|
38 |
class CTriggerParams; |
|
39 |
class CLocSUPLServerEditor; |
|
40 |
class MSuplServerEditorObserver; |
|
41 |
class MLocSUPLSettingsSessionObserver; |
|
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
42 |
class CCmApplicationSettingsUi; |
45 | 43 |
|
44 |
// Class Declaration |
|
45 |
/** |
|
46 |
* Engine for SUPL Settings UI |
|
47 |
* |
|
48 |
* Engine class for SUPL Settings UI. It is responsible for interacting with the |
|
49 |
* SUPL Settings API. Further, it handles all commands for SUPL settings UI. The |
|
50 |
* Engine launches all the dialogs associated with configuring the SUPL Settings. |
|
51 |
* It further observers the SUPL Settings UI for any changes to the Settings |
|
52 |
* values. |
|
53 |
*/ |
|
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
54 |
class CLocSUPLSettingsUiEngine : public CActive, |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
55 |
public MLocSUPLSettingsAdapterObserver |
45 | 56 |
{ |
57 |
public: |
|
58 |
/** |
|
59 |
* Two-phased constructor |
|
60 |
* |
|
61 |
* @param aObserver Referenece to the Engine observer |
|
62 |
* @return CLocSUPLSettingsUiEngine* Reference to the object created |
|
63 |
*/ |
|
64 |
static CLocSUPLSettingsUiEngine* NewL( |
|
65 |
MLocSUPLSettingsUiEngObserver& aObserver ); |
|
66 |
||
67 |
/** |
|
68 |
* Two-phased constructor. Leaves the object on the Cleanup stack |
|
69 |
* |
|
70 |
* @param aObserver Reference to the Engine observer |
|
71 |
* @return CLocSUPLSettingsUiEngine* Reference to the object created |
|
72 |
*/ |
|
73 |
static CLocSUPLSettingsUiEngine* NewLC( |
|
74 |
MLocSUPLSettingsUiEngObserver& aObserver ); |
|
75 |
||
76 |
/** |
|
77 |
* Initializes the Settings Engine. This is an asynchronous call the |
|
78 |
* completion of which is communicated through the observer |
|
79 |
* |
|
80 |
*/ |
|
81 |
void Initalize(); |
|
82 |
||
83 |
/** |
|
84 |
* Destructor. |
|
85 |
*/ |
|
86 |
virtual ~CLocSUPLSettingsUiEngine(); |
|
87 |
||
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
88 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
89 |
* Launches the confirmation query to select IAP |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
90 |
* |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
91 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
92 |
void SelectConnectionL(); |
45 | 93 |
|
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
94 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
95 |
* Launches the Access Point Configurator dialog |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
96 |
* |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
97 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
98 |
void LaunchApConfiguratorL( TInt64 aSlpId, |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
99 |
MSuplServerEditorObserver* aEditorObserver ); |
45 | 100 |
|
101 |
/** |
|
102 |
* Opens the exisitng server with its attributes |
|
103 |
* |
|
104 |
*/ |
|
105 |
void EditServerL( TBool iIsEditable, TInt64 aSlpId ); |
|
106 |
||
107 |
/** |
|
108 |
* returns exisitng server entries count |
|
109 |
* |
|
110 |
*/ |
|
111 |
TInt SlpCount(); |
|
112 |
||
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
113 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
114 |
* Launches the SUPL Usage configurator |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
115 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
116 |
void LaunchSuplUsageConfiguratorL(); |
45 | 117 |
|
118 |
/** |
|
119 |
* Closes the running Settings UI prematurely. |
|
120 |
*/ |
|
121 |
void Close(); |
|
122 |
||
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
123 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
124 |
* Obtains the SUPL Settings usage. |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
125 |
* |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
126 |
* @return TPtr16 SUPL settings usage. |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
127 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
128 |
TPtr16 GetSuplUsageL(); |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
129 |
|
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
130 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
131 |
* Obtains the SUPL usage |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
132 |
* |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
133 |
* @return The SUPL Usage value |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
134 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
135 |
TInt GetSuplUsage(); |
45 | 136 |
|
137 |
/** |
|
138 |
* Creates a new server entry in Supl Settings. |
|
139 |
*/ |
|
140 |
void AddNewServerL( |
|
141 |
const TDesC& aServerAddress, |
|
142 |
const TDesC& aIapName, |
|
143 |
const TBool aUsageInHomeNw |
|
144 |
); |
|
145 |
||
146 |
/** |
|
147 |
* Deletes server entry from SUPL settings storage. |
|
148 |
*/ |
|
149 |
void RemoveServerL( |
|
150 |
const TInt64 aSlpId |
|
151 |
); |
|
152 |
||
153 |
/** |
|
154 |
* Sets the priority of the server to the specified priority. |
|
155 |
*/ |
|
156 |
void ChangePriorityL( |
|
157 |
TInt64 aSlpId, |
|
158 |
TInt aPriority, |
|
159 |
TBool aDirection |
|
160 |
); |
|
161 |
||
162 |
/** |
|
163 |
* Gets properties of all servers from SUPL settings storage. |
|
164 |
* This method retrieves all properties for each server. |
|
165 |
*/ |
|
166 |
void GetAllSlpL( |
|
167 |
RPointerArray<CServerParams>& aParamValues |
|
168 |
) const; |
|
169 |
||
170 |
/** |
|
171 |
* Gets all properties of server from SUPL settings storage |
|
172 |
* based on SLP identification. |
|
173 |
*/ |
|
174 |
void GetSlpInfoFromIdL( |
|
175 |
const TInt64 aSlpId, |
|
176 |
CServerParams *aParamValues |
|
177 |
) const; |
|
178 |
||
179 |
/** |
|
180 |
* Sets the server address parameter in server settings |
|
181 |
*/ |
|
182 |
void SetServerAddressL( |
|
183 |
const TInt64 aSlpId, |
|
184 |
const TDesC& aServerAddress |
|
185 |
); |
|
186 |
||
187 |
/** |
|
188 |
* Obtains the server address parameter from server settings. Client |
|
189 |
* has to allocate memory for server address parameter. |
|
190 |
*/ |
|
191 |
void GetServerAddressL( |
|
192 |
TInt64 aSlpId, |
|
193 |
TDes& aServerAddress |
|
194 |
) const; |
|
195 |
||
196 |
/** |
|
197 |
* Sets the IAP Name in server parameters. IAP name refers to |
|
198 |
* the access point which is used to access the HSLP over the internet. |
|
199 |
*/ |
|
200 |
void SetIapNameL( |
|
201 |
const TInt64 aSlpId, |
|
202 |
const TDesC& aIapName |
|
203 |
); |
|
204 |
||
205 |
/** |
|
206 |
* Sets the parameter which indicates whether server |
|
207 |
* can be used for SUPL session or not. |
|
208 |
*/ |
|
209 |
void SetServerEnabledFlagL( |
|
210 |
const TInt64 aSlpId, |
|
211 |
const TBool aEnable |
|
212 |
) const; |
|
213 |
||
214 |
/** |
|
215 |
* Obtains the parameter which indicates whether server |
|
216 |
* can be used for SUPL session or not. |
|
217 |
*/ |
|
218 |
void GetServerEnabledFlagL( |
|
219 |
const TInt64 aSlpId, |
|
220 |
TBool& aEnable |
|
221 |
) const; |
|
222 |
||
223 |
/** |
|
224 |
* Sets the parameter which indicates whether server |
|
225 |
* can be used out side home network or not. |
|
226 |
*/ |
|
227 |
void SetUsageInHomwNwFlagL( |
|
228 |
const TInt64 aSlpId, |
|
229 |
const TBool aHomeNwFlag |
|
230 |
); |
|
231 |
||
232 |
||
233 |
/** |
|
234 |
* Sets the parameter which indicates whether server |
|
235 |
* details are editable or not. |
|
236 |
*/ |
|
237 |
void SetEditableFlagL( |
|
238 |
const TInt64 aSlpId, |
|
239 |
const TBool aEditFlag |
|
240 |
) const; |
|
241 |
||
242 |
/** |
|
243 |
* Gets the parameter which indicates whether server |
|
244 |
* details are editable or not. |
|
245 |
*/ |
|
246 |
void GetEditableFlagL( |
|
247 |
const TInt64 aSlpId, |
|
248 |
TBool& aEditFlag |
|
249 |
) const; |
|
250 |
||
251 |
/** |
|
252 |
* Obtains the count of active Supl sessions |
|
253 |
* |
|
254 |
*/ |
|
255 |
void GetActiveSessionsCountL( TInt& aAccessPointCount ); |
|
256 |
||
257 |
/** |
|
258 |
* Gets properties of all triggers from SUPL settings storage. |
|
259 |
* This method retrieves all properties for each trigger. |
|
260 |
*/ |
|
261 |
void GetTriggerParamsL( |
|
262 |
RPointerArray<CTriggerParams>& aParamValues |
|
263 |
) const; |
|
264 |
||
265 |
/** |
|
266 |
* Gets properties of all triggers from SUPL settings storage. |
|
267 |
* This method retrieves all properties for each trigger based on session id. |
|
268 |
*/ |
|
269 |
void GetTriggerParamsL( TInt64 aSessionId, |
|
270 |
CTriggerParams*& aTrigger |
|
271 |
) const; |
|
272 |
||
273 |
/** |
|
274 |
* Open the Active Session for the specified session id. |
|
275 |
* |
|
276 |
*/ |
|
277 |
void OpenSessionL( TInt64 aSessionId ); |
|
278 |
||
279 |
/** |
|
280 |
* Deletes a trigger session based on session id |
|
281 |
* |
|
282 |
*/ |
|
283 |
void RemoveTriggerSessionL( TInt64 aSessionId ) const; |
|
284 |
||
285 |
/** |
|
286 |
* Deletes a trigger sessions based on session ids |
|
287 |
* |
|
288 |
*/ |
|
289 |
void RemoveTriggerSessionsL( RArray< TInt64 >& aSessionIdList ) const; |
|
290 |
||
291 |
/** |
|
292 |
* Deletes all the trigger sessions |
|
293 |
* |
|
294 |
*/ |
|
295 |
void RemoveAllTriggerSessionsL( ) const; |
|
296 |
||
297 |
/** |
|
298 |
* Changes the notification status of an active session based on session id |
|
299 |
* |
|
300 |
*/ |
|
301 |
void ChangeNotificationStatusL( TInt64 aSessionId, TBool aTriggerNotificationStatus ) const; |
|
302 |
||
303 |
/** |
|
304 |
* Set the Observer for the specific Session |
|
305 |
* |
|
306 |
*/ |
|
307 |
void SetSessionObserver( MLocSUPLSettingsSessionObserver* aObserver ) const; |
|
308 |
||
309 |
/** |
|
310 |
* Remove the Session observer |
|
311 |
* |
|
312 |
*/ |
|
313 |
void RemoveSessionObserver( ) const; |
|
314 |
||
315 |
/** |
|
316 |
* Sets value of highlighted AP |
|
317 |
*/ |
|
318 |
void SetTempAPValue( TUint32 aAccessPoint); |
|
319 |
||
49
10852b179f64
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
320 |
/** |
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
321 |
* Launches the IAP Dialog |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
322 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
323 |
void LaunchIAPDialogL( ); |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
324 |
|
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
325 |
/** |
49
10852b179f64
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
326 |
* Generates IMSI address |
10852b179f64
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
327 |
*/ |
10852b179f64
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
328 |
void GenerateHslpAddressFromImsi(TDes& aIMSIAddress ); |
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
329 |
|
45 | 330 |
public: |
331 |
/** |
|
332 |
* Inherited from MLocSUPLSettingsAdapterObserver |
|
333 |
*/ |
|
334 |
void HandleSuplSettingsChangeL( TLocSUPLSettingsEvent aEvent ); |
|
335 |
||
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
336 |
protected: |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
337 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
338 |
* Inherited from CActive |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
339 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
340 |
void RunL(); |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
341 |
|
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
342 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
343 |
* Inherited from CActive |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
344 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
345 |
void DoCancel(); |
45 | 346 |
|
347 |
private: |
|
348 |
/** |
|
349 |
* C++ constructor. |
|
350 |
*/ |
|
351 |
CLocSUPLSettingsUiEngine( MLocSUPLSettingsUiEngObserver& aObserver ); |
|
352 |
||
353 |
/** |
|
354 |
* Second Phase constructor |
|
355 |
*/ |
|
356 |
void ConstructL(); |
|
357 |
||
358 |
/** |
|
359 |
* Obtains the index UID corresponding to the Access point name |
|
360 |
* |
|
361 |
* @param aIAPName Access point name |
|
362 |
* @return TUint UID corresponding to the AP Name. Zero if |
|
363 |
* the name does not exist |
|
364 |
*/ |
|
365 |
TUint ConvertIAPNameToIdL( const TDesC& aIAPName ); |
|
366 |
||
367 |
/** |
|
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
368 |
* Updates Access point for ALL SLPs which do not have AP defined. |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
369 |
* |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
370 |
* @param aAccessPoint Access point |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
371 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
372 |
void UpdateMissingIAPL(const TDesC& aAccessPoint ); |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
373 |
|
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
374 |
/** |
45 | 375 |
* Displays an Error note |
376 |
* |
|
377 |
* @param aError Error ID |
|
378 |
*/ |
|
379 |
void DisplayErrorL( TInt aError ); |
|
380 |
||
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
381 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
382 |
* Displays an Info note |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
383 |
* |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
384 |
* @param None |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
385 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
386 |
TInt ShowNoteL(); |
45 | 387 |
|
388 |
/** |
|
389 |
* Returns value of last highlighted AP |
|
390 |
*/ |
|
391 |
TUint32 GetTempAPValue(); |
|
392 |
||
393 |
private: |
|
394 |
/** |
|
395 |
* Reference to the Engine Observer |
|
396 |
*/ |
|
397 |
MLocSUPLSettingsUiEngObserver& iObserver; |
|
398 |
||
399 |
/** |
|
400 |
* SUPL Settings API Adapter |
|
401 |
* Owns |
|
402 |
*/ |
|
403 |
CLocSUPLSettingsAdapter* iSUPLSettingsAdapter; |
|
404 |
||
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
405 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
406 |
* Flag to denote whether any dialog is currently active |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
407 |
* Used in the Cancel method. If there are any requests |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
408 |
* outstanding then they have to be cancelled |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
409 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
410 |
TBool iDialogActive; |
45 | 411 |
|
412 |
/** |
|
413 |
* Temporary Buffer for returning values to the Accessor |
|
414 |
* functions. The accessor expects a 16 bit variant of the descriptor |
|
415 |
* Owns |
|
416 |
*/ |
|
417 |
HBufC16* iConversionBuffer; |
|
418 |
||
419 |
/** |
|
420 |
* Pointer to the Conversion Buffer |
|
421 |
*/ |
|
422 |
TPtr16 iConversionBufferPtr; |
|
423 |
||
424 |
/** |
|
425 |
* Temporary Buffer to hand over to the UI components and |
|
426 |
* access data from the Settinga API |
|
427 |
* Owns |
|
428 |
*/ |
|
429 |
HBufC* iSettingsBuffer; |
|
430 |
||
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
431 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
432 |
* Pointer to the Settings Buffer |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
433 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
434 |
TPtr iSettingsBufferPtr; |
45 | 435 |
|
436 |
/** |
|
437 |
* Standard Text resolver for converting Error codes to |
|
438 |
* standard texts |
|
439 |
*/ |
|
440 |
CTextResolver* iTextResolver; |
|
441 |
||
442 |
||
443 |
/** |
|
444 |
* Selected IAP ID |
|
445 |
*/ |
|
446 |
TUint32 iSelectedIap; |
|
447 |
||
448 |
/** |
|
449 |
* Launch Paramters |
|
450 |
*/ |
|
451 |
TInt iLaunchParams; |
|
452 |
||
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
453 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
454 |
* Akn Global confirmation query |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
455 |
* Owns |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
456 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
457 |
CAknGlobalConfirmationQuery* iConfirmQuery; |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
458 |
|
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
459 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
460 |
* Access point query |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
461 |
* Owns |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
462 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
463 |
CCmApplicationSettingsUi* iConnectionMgmtQuery; |
45 | 464 |
|
465 |
/** |
|
466 |
* Flag to denote whether access point selection requested or not |
|
467 |
*/ |
|
468 |
TBool iRequestIapSelect; |
|
469 |
||
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
470 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
471 |
* SUPL Servers SLP ID to get and set the server attributes. |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
472 |
* Owns. |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
473 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
474 |
TInt64 iCurrentSlpId; |
45 | 475 |
|
476 |
/** |
|
477 |
* Supl Server Editor |
|
478 |
* Owns |
|
479 |
*/ |
|
480 |
CLocSUPLServerEditor* iEditorDlg; |
|
481 |
||
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
482 |
/** |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
483 |
* Editor Observer |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
484 |
* Owns |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
485 |
*/ |
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
486 |
MSuplServerEditorObserver* iEditorObserver; |
45 | 487 |
|
488 |
/* |
|
489 |
* Current highlighted AP |
|
490 |
* Set to -1 if no changes made in edit dialog box, Set to Uid of access |
|
491 |
* point if changes made |
|
492 |
*/ |
|
55
ea98413ce11f
Revision: 201038
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
49
diff
changeset
|
493 |
TInt iTempAP; |
45 | 494 |
|
495 |
}; |
|
496 |
||
497 |
#endif // C_LOCSUPLSETTINGSUIENGINE_H_ |
|
498 |