supl/locationomasuplprotocolhandler/protocolhandlerver1/src/epos_comasupletelnotifier.cpp
branchRCL_3
changeset 4 42de37ce7ce4
parent 0 667063e416a2
child 44 2b4ea9893b66
--- a/supl/locationomasuplprotocolhandler/protocolhandlerver1/src/epos_comasupletelnotifier.cpp	Tue Feb 02 10:12:24 2010 +0200
+++ b/supl/locationomasuplprotocolhandler/protocolhandlerver1/src/epos_comasupletelnotifier.cpp	Fri Feb 19 23:14:27 2010 +0200
@@ -115,10 +115,13 @@
 //
 void COMASuplETelNotifier::CheckForRoaming()
     {
-	iCellMode = EOMASuplCellIdHome;
-    iTrace->Trace(_L("COMASuplETelNotifier::CheckForRoaming..."),KTraceFileName, __LINE__); 							
-    iPhone.GetHomeNetwork( iStatus, iHomeNetworkInfoPkg);
-    SetActive();            
+	iTrace->Trace(_L("COMASuplETelNotifier::CheckForRoaming..."),KTraceFileName, __LINE__); 							
+    if( !IsActive() )
+    	{
+    	iCellMode = EOMASuplCellIdHome;
+    	iPhone.GetHomeNetwork( iStatus, iHomeNetworkInfoPkg);
+    	SetActive();    
+    	} 
     }  
       
 // -----------------------------------------------------------------------------
@@ -128,10 +131,13 @@
 //
 void COMASuplETelNotifier::GetCurrentNetwork()
     {
-	iCellMode = EOMASuplCellIdCurrent;
-    iTrace->Trace(_L("COMASuplETelNotifier::GetCurrentNetwork..."),KTraceFileName, __LINE__); 							
-    iPhone.GetCurrentNetwork( iStatus, iNetworkInfoPkg, iLocationInfo );
-    SetActive();            
+	iTrace->Trace(_L("COMASuplETelNotifier::GetCurrentNetwork..."),KTraceFileName, __LINE__); 							
+    if( !IsActive() )
+    	{
+    	iCellMode = EOMASuplCellIdCurrent;
+    	iPhone.GetCurrentNetwork( iStatus, iNetworkInfoPkg, iLocationInfo );
+    	SetActive();  
+    	}
     }  
 
 // -----------------------------------------------------------------------------
@@ -141,10 +147,13 @@
 //
 void COMASuplETelNotifier::NotifyCurrentNetworkChange()
     {
-	iCellMode = EOMASuplCellIdNotify;
-    iTrace->Trace(_L("COMASuplETelNotifier::NotifyCurrentNetworkChange..."),KTraceFileName, __LINE__);
-    iPhone.NotifyCurrentNetworkChange( iStatus, iNetworkInfoPkg, iLocationInfo );
-    SetActive();            
+	iTrace->Trace(_L("COMASuplETelNotifier::NotifyCurrentNetworkChange..."),KTraceFileName, __LINE__);
+    if( !IsActive() )
+    	{
+    	iCellMode = EOMASuplCellIdNotify;
+    	iPhone.NotifyCurrentNetworkChange( iStatus, iNetworkInfoPkg, iLocationInfo );
+    	SetActive();   
+    	}
     }  
       
 // -----------------------------------------------------------------------------