supl/locationomasuplprotocolhandler/protocolhandlerver1/src/epos_comasuplprotocolmanager1.cpp
changeset 39 3efc7a0e8755
parent 32 b12ea03c50a3
equal deleted inserted replaced
37:e175e2ba2fb0 39:3efc7a0e8755
   107 	{
   107 	{
   108 	/*if(iSettingsLauncher)		
   108 	/*if(iSettingsLauncher)		
   109 		{
   109 		{
   110 			iSettingsLauncher->CancelLaunch();
   110 			iSettingsLauncher->CancelLaunch();
   111 		}*/
   111 		}*/
   112 		
       
   113 	if(iSuplSettings)
   112 	if(iSuplSettings)
   114 		{
   113 		{
   115 		iSuplSettings->SetUIActive( EFalse );
   114 		iSuplSettings->SetUIActive( EFalse );
   116 		}
   115 		}
   117 
   116 
   118 	DeleteAllSessions();
   117 	DeleteAllSessions();
   119 	iSuplSessions.Reset();
   118 	iSuplSessions.Reset();
   120 	iSuplSessions.Close();
   119 	iSuplSessions.Close();
   121 
   120 	
   122 	//Only attempt to unload the phone if the TSY has actually been initialised
   121 	//Only attempt to unload the phone if the TSY has actually been initialised
   123 	if(iTsyName.Length() > 0)
   122 	if(iTsyName.Length() > 0)
   124 		{
   123 		{
   125 		iTelServer.UnloadPhoneModule(iTsyName);
   124     	iTelServer.UnloadPhoneModule(iTsyName);
   126 		}
   125 		}
   127 
   126 
   128 	
   127 	
   129 	iQueuedPacket.Close();
   128 	iQueuedPacket.Close();
   130 	
   129 	
  1615 	iPreviousMessageLength = 0 ; 
  1614 	iPreviousMessageLength = 0 ; 
  1616 	iIsPreviouslyDecodingFailed = EFalse;
  1615 	iIsPreviouslyDecodingFailed = EFalse;
  1617 	}
  1616 	}
  1618 	
  1617 	
  1619 	
  1618 	
  1620 // -----------------------------------------------------------------------------
       
  1621 // COMASUPLProtocolManager1::LaunchSettingsUI
       
  1622 // 
       
  1623 // 
       
  1624 // -----------------------------------------------------------------------------
       
  1625 //
       
  1626 /*TInt COMASUPLProtocolManager1::LaunchSettingsUI(MOMASuplUICompletionObserver* aObserver,const TDesC& aForHslp)
       
  1627     {        
       
  1628 	iTrace->Trace(_L("COMASUPLProtocolManager1::LaunchSettingsUI"), KTraceFileName, __LINE__);
       
  1629 
       
  1630     if(iUIRequestArray.Count() <= 0 )
       
  1631     	{
       
  1632 		iTrace->Trace(_L("COMASUPLProtocolManager1::LaunchSettingsUI"), KTraceFileName, __LINE__);
       
  1633 		iUIRequestArray.Append(aObserver);
       
  1634 		iSuplSettings->SetUIActive(ETrue);
       
  1635 		iCurrentlyUsedHslp.Copy(aForHslp);
       
  1636 		return iSettingsLauncher->LaunchSettings();	
       
  1637     	}
       
  1638     else if(iCurrentlyUsedHslp.Compare(aForHslp) == KErrNone)
       
  1639     	{
       
  1640 		iUIRequestArray.Append(aObserver);
       
  1641     	}
       
  1642     else
       
  1643     	{
       
  1644 		return KErrInUse;                
       
  1645     	}
       
  1646     		
       
  1647 	return KErrNone;
       
  1648     }*/
       
  1649 
       
  1650 // -----------------------------------------------------------------------------
       
  1651 // COMASUPLProtocolManager1::SettingsUICompletedL
       
  1652 // 
       
  1653 // 
       
  1654 // -----------------------------------------------------------------------------
       
  1655 //
       
  1656 /*void COMASUPLProtocolManager1::SettingsUICompletedL(TInt aError)
       
  1657 	{
       
  1658 	iTrace->Trace(_L("COMASUPLProtocolManager1::SettingsUICompletedL"), KTraceFileName, __LINE__);
       
  1659     iSuplSettings->SetUIActive(EFalse);
       
  1660 
       
  1661     if (iDeInitDone)
       
  1662         {
       
  1663 	    iTrace->Trace(_L("COMASUPLProtocolManager1::SettingsUICompletedL, de-init done.  Completing request"), KTraceFileName, __LINE__);
       
  1664         iDeInitDone = EFalse;
       
  1665         User::RequestComplete(iDeInitRequestStatus,KErrNone);
       
  1666         }                
       
  1667     else
       
  1668         {
       
  1669     	for(TInt i = 0; i < iUIRequestArray.Count(); i++)
       
  1670     		{
       
  1671     			iTrace->Trace(_L("COMASUPLProtocolManager1::SettingsUICompletedL,Forwarding ConnRerquestor "), KTraceFileName, __LINE__);
       
  1672     			MOMASuplUICompletionObserver* observer = iUIRequestArray[i];
       
  1673     			observer->SettingsUICompletedL(aError);
       
  1674     		}
       
  1675 
       
  1676         }
       
  1677         
       
  1678     iCurrentlyUsedHslp.Copy(_L(""));	
       
  1679     iUIRequestArray.Reset();
       
  1680     }
       
  1681 */
       
  1682 
  1619 
  1683 // -----------------------------------------------------------------------------
  1620 // -----------------------------------------------------------------------------
  1684 // COMASUPLProtocolManager1::DeInitialize
  1621 // COMASUPLProtocolManager1::DeInitialize
  1685 // 
  1622 // 
  1686 // 
  1623 // 
  2074     iSETMode = aCommmonConfig->iSETMode;
  2011     iSETMode = aCommmonConfig->iSETMode;
  2075     iSuplUsage = aCommmonConfig->iSuplUsage;
  2012     iSuplUsage = aCommmonConfig->iSuplUsage;
  2076     iSuplInitTimeOut = aCommmonConfig->iSuplInitTimeOut;
  2013     iSuplInitTimeOut = aCommmonConfig->iSuplInitTimeOut;
  2077     iPersistFailTimer = aCommmonConfig->iPersistFailTimer;
  2014     iPersistFailTimer = aCommmonConfig->iPersistFailTimer;
  2078     }
  2015     }
       
  2016     
       
  2017 // -----------------------------------------------------------------------------
       
  2018 // COMASUPLProtocolManager1::HandleSuplTriggerStatusChangeL
       
  2019 // pure virtual method from MSuplSettingsObserver; dummy implementation for compilation 
       
  2020 // -----------------------------------------------------------------------------
       
  2021 //
  2079 void COMASUPLProtocolManager1::HandleSuplTriggerStatusChangeL(CSuplSettings::TSuplTriggerStatus /*aSuplTriggerStatus*/ ) 
  2022 void COMASUPLProtocolManager1::HandleSuplTriggerStatusChangeL(CSuplSettings::TSuplTriggerStatus /*aSuplTriggerStatus*/ ) 
  2080 {
  2023 {
  2081 
  2024 
  2082 }
  2025 }
  2083 
  2026