--- a/locationsystemui/locationsysui/locsuplsettingsui/inc/locsuplsettingsadapter.h Wed Sep 15 12:40:28 2010 +0300
+++ b/locationsystemui/locationsysui/locsuplsettingsui/inc/locsuplsettingsadapter.h Wed Oct 13 15:01:35 2010 +0300
@@ -45,6 +45,17 @@
public MSuplSessionObserver
{
public:
+ /**
+ * SUPL Usage enumerations which display the order of display
+ * in the User interface
+ */
+ enum TLocSuplUsage
+ {
+ ELocSuplAutomatic = 0,
+ ELocSuplAutomaticatHome,
+ ELocSuplAlwaysAsk,
+ ELocSuplDisable
+ };
public:
/**
* Static Two phase contructor that instantiates the CLocSUPLSettingsAdapter
@@ -83,6 +94,33 @@
*/
void CancelInitialize();
+ /**
+ * Sets the SUPL Settings usage.
+ *
+ * @param aIndex Index of the SUPL settings usage item.
+ */
+ void SetSuplUsageL( const TLocSuplUsage aIndex );
+
+ /**
+ * Obtains the SUPL Settings usage.
+ *
+ * @param aSuplUsage SUPL settings usage string.
+ */
+ void GetSuplUsageL( TDes& aSuplUsage );
+
+ /**
+ * Obtains the SUPL usage
+ *
+ * @return The SUPL usage
+ */
+ TInt GetSuplUsage();
+
+ /**
+ * Obtains the Supl Settings usage index
+ *
+ * @return TLocSuplUsage SUPL settings usage index
+ */
+ TLocSuplUsage GetSuplUsageIndex();
/***************************************************************************
@@ -401,6 +439,14 @@
void GenerateHslpAddressFromImsi(TDes& aIMSIAddress );
+ public: // Accessor functions for SUPL settings usage strings
+ const TDesC& Automatic();
+
+ const TDesC& AutomaticAtHome();
+
+ const TDesC& AlwaysAsk();
+
+ const TDesC& Disable();
public:
@@ -444,6 +490,29 @@
*/
CSuplSettings* iSUPLSettings;
+ /**
+ * SUPL settings usage is automatic
+ * Owns
+ */
+ HBufC* iAutomatic;
+
+ /**
+ * SUPL settings usage is automatic in home network
+ * Owns
+ */
+ HBufC* iAutomaticatHome;
+
+ /**
+ * SUPL settings usage needs a user confirmation
+ * Owns
+ */
+ HBufC* iAsk;
+
+ /**
+ * SUPL is disabled.
+ * Owns.
+ */
+ HBufC* iDisable;
/**
* Observer for the specific SUPL session.