equal
deleted
inserted
replaced
48 * SUPL Settings API. Further, it handles all commands for SUPL settings UI. The |
48 * SUPL Settings API. Further, it handles all commands for SUPL settings UI. The |
49 * Engine launches all the dialogs associated with configuring the SUPL Settings. |
49 * Engine launches all the dialogs associated with configuring the SUPL Settings. |
50 * It further observers the SUPL Settings UI for any changes to the Settings |
50 * It further observers the SUPL Settings UI for any changes to the Settings |
51 * values. |
51 * values. |
52 */ |
52 */ |
53 class CLocSUPLSettingsUiEngine : public CActive, |
53 class CLocSUPLSettingsUiEngine : public MLocSUPLSettingsAdapterObserver |
54 public MLocSUPLSettingsAdapterObserver |
|
55 { |
54 { |
56 public: |
55 public: |
57 /** |
56 /** |
58 * Two-phased constructor |
57 * Two-phased constructor |
59 * |
58 * |
82 /** |
81 /** |
83 * Destructor. |
82 * Destructor. |
84 */ |
83 */ |
85 virtual ~CLocSUPLSettingsUiEngine(); |
84 virtual ~CLocSUPLSettingsUiEngine(); |
86 |
85 |
87 /** |
86 |
88 * Launches the confirmation query to select IAP |
|
89 * |
|
90 */ |
|
91 void SelectConnectionL(); |
|
92 |
|
93 /** |
|
94 * Launches the Access Point Configurator dialog |
|
95 * |
|
96 */ |
|
97 void LaunchApConfiguratorL( TInt64 aSlpId, |
|
98 MSuplServerEditorObserver* aEditorObserver ); |
|
99 |
87 |
100 /** |
88 /** |
101 * Opens the exisitng server with its attributes |
89 * Opens the exisitng server with its attributes |
102 * |
90 * |
103 */ |
91 */ |
107 * returns exisitng server entries count |
95 * returns exisitng server entries count |
108 * |
96 * |
109 */ |
97 */ |
110 TInt SlpCount(); |
98 TInt SlpCount(); |
111 |
99 |
112 /** |
|
113 * Launches the SUPL Usage configurator |
|
114 */ |
|
115 void LaunchSuplUsageConfiguratorL(); |
|
116 |
100 |
117 /** |
101 /** |
118 * Closes the running Settings UI prematurely. |
102 * Closes the running Settings UI prematurely. |
119 */ |
103 */ |
120 void Close(); |
104 void Close(); |
121 |
105 |
122 /** |
|
123 * Obtains the SUPL Settings usage. |
|
124 * |
|
125 * @return TPtr16 SUPL settings usage. |
|
126 */ |
|
127 TPtr16 GetSuplUsageL(); |
|
128 |
|
129 /** |
|
130 * Obtains the SUPL usage |
|
131 * |
|
132 * @return The SUPL Usage value |
|
133 */ |
|
134 TInt GetSuplUsage(); |
|
135 |
106 |
136 /** |
107 /** |
137 * Creates a new server entry in Supl Settings. |
108 * Creates a new server entry in Supl Settings. |
138 */ |
109 */ |
139 void AddNewServerL( |
110 void AddNewServerL( |
314 /** |
285 /** |
315 * Sets value of highlighted AP |
286 * Sets value of highlighted AP |
316 */ |
287 */ |
317 void SetTempAPValue( TUint32 aAccessPoint); |
288 void SetTempAPValue( TUint32 aAccessPoint); |
318 |
289 |
|
290 /** |
|
291 * Generates IMSI address |
|
292 */ |
|
293 void GenerateHslpAddressFromImsi(TDes& aIMSIAddress ); |
319 public: |
294 public: |
320 /** |
295 /** |
321 * Inherited from MLocSUPLSettingsAdapterObserver |
296 * Inherited from MLocSUPLSettingsAdapterObserver |
322 */ |
297 */ |
323 void HandleSuplSettingsChangeL( TLocSUPLSettingsEvent aEvent ); |
298 void HandleSuplSettingsChangeL( TLocSUPLSettingsEvent aEvent ); |
324 |
299 |
325 protected: |
|
326 /** |
|
327 * Inherited from CActive |
|
328 */ |
|
329 void RunL(); |
|
330 |
|
331 /** |
|
332 * Inherited from CActive |
|
333 */ |
|
334 void DoCancel(); |
|
335 |
300 |
336 private: |
301 private: |
337 /** |
302 /** |
338 * C++ constructor. |
303 * C++ constructor. |
339 */ |
304 */ |
358 * |
323 * |
359 * @param aError Error ID |
324 * @param aError Error ID |
360 */ |
325 */ |
361 void DisplayErrorL( TInt aError ); |
326 void DisplayErrorL( TInt aError ); |
362 |
327 |
363 /** |
|
364 * Displays an Info note |
|
365 * |
|
366 * @param None |
|
367 */ |
|
368 TInt ShowNoteL(); |
|
369 |
328 |
370 /** |
329 /** |
371 * Returns value of last highlighted AP |
330 * Returns value of last highlighted AP |
372 */ |
331 */ |
373 TUint32 GetTempAPValue(); |
332 TUint32 GetTempAPValue(); |
382 * SUPL Settings API Adapter |
341 * SUPL Settings API Adapter |
383 * Owns |
342 * Owns |
384 */ |
343 */ |
385 CLocSUPLSettingsAdapter* iSUPLSettingsAdapter; |
344 CLocSUPLSettingsAdapter* iSUPLSettingsAdapter; |
386 |
345 |
387 /** |
|
388 * Flag to denote whether any dialog is currently active |
|
389 * Used in the Cancel method. If there are any requests |
|
390 * outstanding then they have to be cancelled |
|
391 */ |
|
392 TBool iDialogActive; |
|
393 |
346 |
394 /** |
347 /** |
395 * Temporary Buffer for returning values to the Accessor |
348 * Temporary Buffer for returning values to the Accessor |
396 * functions. The accessor expects a 16 bit variant of the descriptor |
349 * functions. The accessor expects a 16 bit variant of the descriptor |
397 * Owns |
350 * Owns |
408 * access data from the Settinga API |
361 * access data from the Settinga API |
409 * Owns |
362 * Owns |
410 */ |
363 */ |
411 HBufC* iSettingsBuffer; |
364 HBufC* iSettingsBuffer; |
412 |
365 |
413 /** |
|
414 * Pointer to the Settings Buffer |
|
415 */ |
|
416 TPtr iSettingsBufferPtr; |
|
417 |
366 |
418 /** |
367 /** |
419 * Standard Text resolver for converting Error codes to |
368 * Standard Text resolver for converting Error codes to |
420 * standard texts |
369 * standard texts |
421 */ |
370 */ |
430 /** |
379 /** |
431 * Launch Paramters |
380 * Launch Paramters |
432 */ |
381 */ |
433 TInt iLaunchParams; |
382 TInt iLaunchParams; |
434 |
383 |
435 /** |
|
436 * Akn Global confirmation query |
|
437 * Owns |
|
438 */ |
|
439 CAknGlobalConfirmationQuery* iConfirmQuery; |
|
440 |
384 |
441 /** |
385 /** |
442 * Flag to denote whether access point selection requested or not |
386 * Flag to denote whether access point selection requested or not |
443 */ |
387 */ |
444 TBool iRequestIapSelect; |
388 TBool iRequestIapSelect; |
445 |
389 |
446 /** |
|
447 * SUPL Servers SLP ID to get and set the server attributes. |
|
448 * Owns. |
|
449 */ |
|
450 TInt64 iCurrentSlpId; |
|
451 |
390 |
452 /** |
391 /** |
453 * Supl Server Editor |
392 * Supl Server Editor |
454 * Owns |
393 * Owns |
455 */ |
394 */ |
456 CLocSUPLServerEditor* iEditorDlg; |
395 CLocSUPLServerEditor* iEditorDlg; |
457 |
396 |
458 /** |
|
459 * Editor Observer |
|
460 * Owns |
|
461 */ |
|
462 MSuplServerEditorObserver* iEditorObserver; |
|
463 |
397 |
464 /* |
398 /* |
465 * Current highlighted AP |
399 * Current highlighted AP |
466 * Set to -1 if no changes made in edit dialog box, Set to Uid of access |
400 * Set to -1 if no changes made in edit dialog box, Set to Uid of access |
467 * point if changes made |
401 * point if changes made |