equal
deleted
inserted
replaced
43 class CLocSUPLSettingsAdapter : public CActive, |
43 class CLocSUPLSettingsAdapter : public CActive, |
44 public MSuplSettingsObserver, |
44 public MSuplSettingsObserver, |
45 public MSuplSessionObserver |
45 public MSuplSessionObserver |
46 { |
46 { |
47 public: |
47 public: |
48 /** |
|
49 * SUPL Usage enumerations which display the order of display |
|
50 * in the User interface |
|
51 */ |
|
52 enum TLocSuplUsage |
|
53 { |
|
54 ELocSuplAutomatic = 0, |
|
55 ELocSuplAutomaticatHome, |
|
56 ELocSuplAlwaysAsk, |
|
57 ELocSuplDisable |
|
58 }; |
|
59 public: |
48 public: |
60 /** |
49 /** |
61 * Static Two phase contructor that instantiates the CLocSUPLSettingsAdapter |
50 * Static Two phase contructor that instantiates the CLocSUPLSettingsAdapter |
62 * |
51 * |
63 * @param aObserver Observer to the SUPL settings adapter |
52 * @param aObserver Observer to the SUPL settings adapter |
92 /** |
81 /** |
93 * Cancels the Initialization |
82 * Cancels the Initialization |
94 */ |
83 */ |
95 void CancelInitialize(); |
84 void CancelInitialize(); |
96 |
85 |
97 /** |
|
98 * Sets the SUPL Settings usage. |
|
99 * |
|
100 * @param aIndex Index of the SUPL settings usage item. |
|
101 */ |
|
102 void SetSuplUsageL( const TLocSuplUsage aIndex ); |
|
103 |
|
104 /** |
|
105 * Obtains the SUPL Settings usage. |
|
106 * |
|
107 * @param aSuplUsage SUPL settings usage string. |
|
108 */ |
|
109 void GetSuplUsageL( TDes& aSuplUsage ); |
|
110 |
|
111 /** |
|
112 * Obtains the SUPL usage |
|
113 * |
|
114 * @return The SUPL usage |
|
115 */ |
|
116 TInt GetSuplUsage(); |
|
117 |
|
118 /** |
|
119 * Obtains the Supl Settings usage index |
|
120 * |
|
121 * @return TLocSuplUsage SUPL settings usage index |
|
122 */ |
|
123 TLocSuplUsage GetSuplUsageIndex(); |
|
124 |
86 |
125 |
87 |
126 /*************************************************************************** |
88 /*************************************************************************** |
127 * |
89 * |
128 * @since S60 9.1TB |
90 * @since S60 9.1TB |
430 /** |
392 /** |
431 * Remove the Session observer |
393 * Remove the Session observer |
432 * |
394 * |
433 */ |
395 */ |
434 void RemoveSessionObserver( ); |
396 void RemoveSessionObserver( ); |
435 |
397 |
436 |
398 /** |
437 public: // Accessor functions for SUPL settings usage strings |
399 * Generates IMSI address |
438 const TDesC& Automatic(); |
400 */ |
439 |
401 void GenerateHslpAddressFromImsi(TDes& aIMSIAddress ); |
440 const TDesC& AutomaticAtHome(); |
402 |
441 |
403 |
442 const TDesC& AlwaysAsk(); |
|
443 |
|
444 const TDesC& Disable(); |
|
445 |
404 |
446 public: |
405 public: |
447 |
406 |
448 /** |
407 /** |
449 * Inherited from MSuplSettingsObserver |
408 * Inherited from MSuplSettingsObserver |
483 * SUPL Settings UI |
442 * SUPL Settings UI |
484 * Owns |
443 * Owns |
485 */ |
444 */ |
486 CSuplSettings* iSUPLSettings; |
445 CSuplSettings* iSUPLSettings; |
487 |
446 |
488 /** |
|
489 * SUPL settings usage is automatic |
|
490 * Owns |
|
491 */ |
|
492 HBufC* iAutomatic; |
|
493 |
|
494 /** |
|
495 * SUPL settings usage is automatic in home network |
|
496 * Owns |
|
497 */ |
|
498 HBufC* iAutomaticatHome; |
|
499 |
|
500 /** |
|
501 * SUPL settings usage needs a user confirmation |
|
502 * Owns |
|
503 */ |
|
504 HBufC* iAsk; |
|
505 |
|
506 /** |
|
507 * SUPL is disabled. |
|
508 * Owns. |
|
509 */ |
|
510 HBufC* iDisable; |
|
511 |
447 |
512 /** |
448 /** |
513 * Observer for the specific SUPL session. |
449 * Observer for the specific SUPL session. |
514 * Does not own. |
450 * Does not own. |
515 */ |
451 */ |