supl/locationomasuplprotocolhandler/protocolhandlerver1/src/epos_comasuplstartstate.cpp
changeset 40 16118e24b93b
parent 32 b12ea03c50a3
equal deleted inserted replaced
33:834e27cad510 40:16118e24b93b
   520 // -----------------------------------------------------------------------------
   520 // -----------------------------------------------------------------------------
   521 //
   521 //
   522 void COMASuplStartState::LocationIDRequestCompletedL(COMASuplLocationId* aLocationId,
   522 void COMASuplStartState::LocationIDRequestCompletedL(COMASuplLocationId* aLocationId,
   523 													TInt aErrorCode)
   523 													TInt aErrorCode)
   524 	{
   524 	{
       
   525     delete iLocationId;
       
   526     iLocationId = NULL;
       
   527     iLocationId = aLocationId;
   525 		iTrace->Trace(_L("COMASuplStartState::LocationIDRequestCompleted..."), KTraceFileName, __LINE__); 								
   528 		iTrace->Trace(_L("COMASuplStartState::LocationIDRequestCompleted..."), KTraceFileName, __LINE__); 								
   526 		iGenerationStatus = EFalse;
   529 		iGenerationStatus = EFalse;
   527 		if(aErrorCode!=KErrNone)
   530 		if(aErrorCode!=KErrNone)
   528 			{
   531 			{
   529 				iTrace->Trace(_L("COMASuplStartState::LocationRequestFailed"), KTraceFileName, __LINE__); 					
   532 				iTrace->Trace(_L("COMASuplStartState::LocationRequestFailed"), KTraceFileName, __LINE__); 					
   531 					{
   534 					{
   532 						iMsgStateObserver->OperationCompleteL(aErrorCode);
   535 						iMsgStateObserver->OperationCompleteL(aErrorCode);
   533 						return;
   536 						return;
   534 					}
   537 					}
   535 			}
   538 			}
   536 			
       
   537 		iLocationId = aLocationId;
       
   538 		
   539 		
   539 		if(iECId)
   540 		if(iECId)
   540 			{
   541 			{
   541 				iTrace->Trace(_L("COMASuplStartState::LocationIDRequestCompletedL...Retrive E-CellId"), KTraceFileName, __LINE__); 					
   542 				iTrace->Trace(_L("COMASuplStartState::LocationIDRequestCompletedL...Retrive E-CellId"), KTraceFileName, __LINE__); 					
   542 				iGenerationStatus = ETrue;
   543 				iGenerationStatus = ETrue;
  1010 	aCurrentCellId.iMNC = lRefMNC; 
  1011 	aCurrentCellId.iMNC = lRefMNC; 
  1011 	aCurrentCellId.iMCC = lRefMCC;
  1012 	aCurrentCellId.iMCC = lRefMCC;
  1012 	aCurrentCellId.iLac = lRefLAC;
  1013 	aCurrentCellId.iLac = lRefLAC;
  1013 	}
  1014 	}
  1014 }
  1015 }
       
  1016 
       
  1017 // -----------------------------------------------------------------------------
       
  1018 // COMASuplStartState::SetStaleCellIdToUse
       
  1019 // Set stale cell id.
       
  1020 // 
       
  1021 // (other items were commented in a header).
       
  1022 // -----------------------------------------------------------------------------
       
  1023 //
  1015 void COMASuplStartState::SetStaleCellIdToUse(COMASuplLocationId* aLocationId)
  1024 void COMASuplStartState::SetStaleCellIdToUse(COMASuplLocationId* aLocationId)
  1016     {
  1025     {
  1017     if(iLocationId)
  1026     if(iLocationId)
  1018         {
  1027         {
  1019         delete iLocationId;
  1028         delete iLocationId;