supl/locationsuplfw/settingsapi/src/epos_csuplsettingsnotifier.cpp
branchRCL_3
changeset 55 ea98413ce11f
parent 49 10852b179f64
--- a/supl/locationsuplfw/settingsapi/src/epos_csuplsettingsnotifier.cpp	Wed Sep 15 12:40:28 2010 +0300
+++ b/supl/locationsuplfw/settingsapi/src/epos_csuplsettingsnotifier.cpp	Wed Oct 13 15:01:35 2010 +0300
@@ -95,7 +95,15 @@
         iObserver.HandleSuplSettingsChangeL(eventType,slpID);
         }
     else
-        {           
+        {
+        TInt usage;
+
+        iRepository->Get(KSuplSettingsUsage, usage);
+
+        if (iUsage != usage) //check if there was a change in the Supl usage value in the cen rep
+            iObserver.HandleSuplSettingsChangeL(MSuplSettingsObserver::ESuplSettingsEventSuplUsageChange);
+        else //else check if any of the other config parameters changed
+            {
             TInt fallBackValue;
             TInt fallBackTimerValue;
             TBuf<KMaxStrlen> imsi;
@@ -104,7 +112,7 @@
             iRepository->Get(KSuplSettingsIMSI,imsi);
             if(fallBackValue != iFallBackValue || fallBackTimerValue != iFallBackTimerValue || imsi.Compare(*iImsi))
                 iObserver.HandleSuplSettingsChangeL(MSuplSettingsObserver::ESuplSettingsEventCommParameterChange);
-            
+            }
         }
     StartListening();
     }
@@ -151,15 +159,15 @@
         }
     else
         {
-        
+        TInt usage;
         TBuf<KMaxStrlen> imsi;
-        
+        iRepository->Get(KSuplSettingsUsage, usage);
         iRepository->Get(KSuplSettingsFallBack,iFallBackValue);
         iRepository->Get(KSuplSettingsFallBackTimer,iFallBackTimerValue);
         iRepository->Get(KSuplSettingsIMSI,imsi);
         if(iImsi)
             iImsi->Des() = imsi;
-        
+        iUsage = (CSuplSettings::TSuplSettingsUsage) usage;
 
         // Request for notification for any field change
         iRepository->NotifyRequest(0x00000000, 0x00000000, iStatus);