95 /** Indicates that SUPL can be used without asking user in the home network and |
95 /** Indicates that SUPL can be used without asking user in the home network and |
96 * user should be notified in the visiting network */ |
96 * user should be notified in the visiting network */ |
97 ESuplUsageHomeAutomatic, |
97 ESuplUsageHomeAutomatic, |
98 /** Indicates that SUPL usage is disabled */ |
98 /** Indicates that SUPL usage is disabled */ |
99 ESuplUsageDisabled |
99 ESuplUsageDisabled |
100 }; |
100 }; |
101 |
101 |
102 |
102 |
|
103 /** |
|
104 * Enumeration to indicate status of SUPL triggered service. This is used as parameter for |
|
105 * @ref ChangeSuplTriggerServiceStatus() and @ref GetSuplTriggerServiceStatus() method. Client has to select one of the values from |
|
106 * this enumeration when changing SUPL triggered service status. |
|
107 * For example, if client is changing SUPL triggered service status to ON,it should select ESuplTriggerON. |
|
108 * If SUPL triggered service status is set to ESuplTriggerON,then any client requesting triggered service will be served by SUPL Framework. |
|
109 * If SUPL triggered service status is set to ESuplTriggerOFF,then client's request for triggered service will fail. |
|
110 * If SUPL triggers are in progress and client sets off triggered service,then all started triggering sessions will get completed with error. |
|
111 * |
|
112 * @since S60 5.2 |
|
113 */ |
|
114 enum TSuplTriggerStatus |
|
115 { |
|
116 /** Indicates that SUPL triggered service status is ON */ |
|
117 ESuplTriggerOn = 0, |
|
118 /** Indicates that SUPL triggered service status is OFF */ |
|
119 ESuplTriggerOff |
|
120 }; |
|
121 |
103 public: // Constructors and destructor |
122 public: // Constructors and destructor |
104 |
123 |
105 /** |
124 /** |
106 * Two-phased constructor. |
125 * Two-phased constructor. |
107 * |
126 * |
108 * @since S60 3.1 |
127 * @since S60 3.1 |
109 * @returns A new instance of this class. |
128 * @returns A new instance of this class. |
110 */ |
129 */ |
111 IMPORT_C static CSuplSettings* NewL(); |
130 IMPORT_C static CSuplSettings* NewL(); |
112 |
131 |
113 /** |
132 /** |
114 * Two-phased constructor. |
133 * Two-phased constructor. |
115 * |
134 * |
116 * @since S60 5.1 |
135 * @since S60 5.1 |
117 * @returns A new instance of this class. |
136 * @returns A new instance of this class. |
118 */ |
137 */ |
119 IMPORT_C static CSuplSettings* NewLC(); |
138 IMPORT_C static CSuplSettings* NewLC(); |
120 |
139 |
121 /** |
140 /** |
122 * Destructor. |
141 * Destructor. |
123 * |
142 * |
124 * @since S60 3.1 |
143 * @since S60 3.1 |
125 * |
144 * |
126 */ |
145 */ |
127 IMPORT_C ~CSuplSettings(); |
146 IMPORT_C ~CSuplSettings(); |
128 |
147 |
129 protected: |
148 protected: |
130 |
149 |
131 /** |
150 /** |
132 * C++ default constructor. |
151 * C++ default constructor. |
133 * |
152 * |
134 * @since S60 3.1 |
153 * @since S60 3.1 |
135 * |
154 * |
136 */ |
155 */ |
137 CSuplSettings(); |
156 CSuplSettings(); |
138 |
157 |
139 /** |
158 /** |
140 * By default EPOC constructor is private. |
159 * By default EPOC constructor is private. |
141 * |
160 * |
142 * @since S60 3.1 |
161 * @since S60 3.1 |
143 * |
162 * |
144 */ |
163 */ |
145 void ConstructL(); |
164 void ConstructL(); |
146 |
165 |
147 public: // New functions |
166 public: // New functions |
148 |
167 |
149 /** |
168 /** |
150 * This method is used to start listening for SUPL setting changes. To |
169 * This method is used to start listening for SUPL setting changes. To |
151 * listen for changes, the client must implement the |
170 * listen for changes, the client must implement the |
152 * @ref MSuplSettingsObserver interface. Client must allocated memory |
171 * @ref MSuplSettingsObserver interface. Client must allocated memory |
153 * for the observer. |
172 * for the observer. |
154 * |
173 * |
311 */ |
330 */ |
312 |
331 |
313 IMPORT_C TInt IsImsiChanged(TBool& aChanged); |
332 IMPORT_C TInt IsImsiChanged(TBool& aChanged); |
314 |
333 |
315 /** |
334 /** |
316 * This method is used to retrieve SUPL usage from settings storage. |
335 * This method is deprecated. |
317 * |
336 * |
318 * @since S60 3.2 |
337 * @since S60 10.1 |
319 * |
338 * |
320 * @param [OUT] aUsage will hold, upon successful completion, value indicating |
339 * @return one of the following error codes: |
321 * current SUPL usage |
340 * - KErrNotSupported |
322 * @return one of the following error codes: |
|
323 * - KErrNone if SUPL usage retrieved successfully. |
|
324 * - KErrNotFound if the SUPL State is not found in SUPL settings |
|
325 * - KErrUnknown if retrieving SUPL usage from settings storage failed |
|
326 */ |
341 */ |
327 |
342 |
328 IMPORT_C TInt GetSuplUsage(TSuplSettingsUsage& aUsage) const; |
343 IMPORT_C TInt GetSuplUsage(TSuplSettingsUsage& aUsage) const; |
329 |
344 |
330 /** |
345 /** |
331 * This method is used to change SUPL usage. Using this method, SUPL usage can be |
346 * This method is deprecated. |
332 * set to any of the values specified in the enumeration @ref TSuplSettingsUsage |
347 * |
333 * By default, SUPL usage will be set to always ask. |
348 * @since S60 10.1 |
334 * |
349 * |
335 * @since S60 3.2 |
350 * @return one of the following error codes: |
336 * |
351 * - KErrNotSupported |
337 * @param [IN] aUsage Usage to be set for SUPL usage |
|
338 * @return one of the following error codes: |
|
339 * - KErrNone if SUPL usage is changed successfully. |
|
340 * - KErrArgument if aUsage field is not in range |
|
341 * - KErrUnknown if changing SUPL usage in settings storage has failed |
|
342 */ |
352 */ |
343 IMPORT_C TInt SetSuplUsage(TSuplSettingsUsage aUsage); |
353 IMPORT_C TInt SetSuplUsage(TSuplSettingsUsage aUsage); |
344 |
|
345 /** |
354 /** |
346 * This method is used to add new server into settings. It is client's responsibility |
355 * This method is used to add new server into settings. It is client's responsibility |
347 * to set all the parameters in aParamValues except SLP identification. After adding |
356 * to set all the parameters in aParamValues except SLP identification. After adding |
348 * server entry, the server identity generated will be retuned with aSlpId. The returned |
357 * server entry, the server identity generated will be retuned with aSlpId. The returned |
349 * server identity can be used with other methods change any of server parameters. If server |
358 * server identity can be used with other methods change any of server parameters. If server |
882 |
891 |
883 IMPORT_C TInt GetTriggerParams( TInt64 aSessionId, |
892 IMPORT_C TInt GetTriggerParams( TInt64 aSessionId, |
884 CTriggerParams*& aParamValues ) const; |
893 CTriggerParams*& aParamValues ) const; |
885 |
894 |
886 |
895 |
887 /* |
896 /** |
888 * Sets Notification status of particular session |
897 * Sets Notification status of particular session |
889 * |
898 * |
890 * @since S60 5.2 |
899 * @since S60 5.2 |
891 * @param [IN] aSessionId Session identifier to get/change paramater of particular session |
900 * @param [IN] aSessionId Session identifier to get/change paramater of particular session |
892 * @param [IN] aTriggerNotificationStaus Indicates whether notification needs to be shown or |
901 * @param [IN] aTriggerNotificationStaus Indicates whether notification needs to be shown or |
927 * - KErrArgument if argument passed is of length zero |
936 * - KErrArgument if argument passed is of length zero |
928 */ |
937 */ |
929 |
938 |
930 IMPORT_C TInt GetDefaultIAPName(TDes& aIapName); |
939 IMPORT_C TInt GetDefaultIAPName(TDes& aIapName); |
931 |
940 |
|
941 /** |
|
942 * Changes status of SUPL triggered service. |
|
943 * |
|
944 * @since S60 10.1 |
|
945 * @param [IN] aSuplTriggerStatus, Indicates the new SUPL triggered service status value |
|
946 * @capability WriteDeviceData Its required for cenrep write operation. |
|
947 * @return following error codes |
|
948 * - KErrNone if successful |
|
949 * otherwise system wide error codes. |
|
950 */ |
|
951 IMPORT_C TInt SetSuplTriggeredServiceStatus( const TSuplTriggerStatus& aSuplTriggerStatus ); |
|
952 |
|
953 /** |
|
954 * Returns the status of SUPL triggered service. |
|
955 * |
|
956 * @since S60 10.1 |
|
957 * @param [OUT] aSuplTriggerStatus, Gets status of SUPL triggering session either ON or OFF |
|
958 * @capability ReadDeviceData Its required for cenrep read operation. |
|
959 * @return following error codes |
|
960 * - KErrNone if successful |
|
961 * otherwise system wide error codes. |
|
962 */ |
|
963 IMPORT_C TInt GetSuplTriggeredServiceStatus( TSuplTriggerStatus& aSuplTriggerStatus ); |
|
964 |
932 private: // New functions |
965 private: // New functions |
933 |
966 |
934 private: |
967 private: |
935 // By default, prohibit copy constructor |
968 // By default, prohibit copy constructor |
936 CSuplSettings( const CSuplSettings& ); |
969 CSuplSettings( const CSuplSettings& ); |