supl/locationomasuplprotocolhandler/protocolhandlerver1/src/epos_comasuplstartstate.cpp
branchRCL_3
changeset 55 ea98413ce11f
parent 45 6b6920c56e2f
equal deleted inserted replaced
49:10852b179f64 55:ea98413ce11f
   147 // (other items were commented in a header).
   147 // (other items were commented in a header).
   148 // -----------------------------------------------------------------------------
   148 // -----------------------------------------------------------------------------
   149 //
   149 //
   150 TInt COMASuplStartState::GenerateMessageL() 
   150 TInt COMASuplStartState::GenerateMessageL() 
   151 	{
   151 	{
   152 		iTrace->Trace(_L("Start of COMASuplStartState::GenerateMessage"), KTraceFileName, __LINE__);
   152 		iTrace->Trace(_L("Start of COMASuplStartState::GenerateMessage"), KTraceFileName, __LINE__); 					
   153 		//if no cell stale cell id is available, retrieve current cell id
   153 		iLocationIDRequestor->GetLocationID();
   154 		if(!iIsStaleCellId)
       
   155 		    {
       
   156 		    iTrace->Trace(_L("COMASuplStartState::GenerateMessage stale cell id false"), KTraceFileName, __LINE__);
       
   157 		    iLocationIDRequestor->GetLocationID();
       
   158 		    iTrace->Trace(_L("COMASuplStartState::GenerateMessage called get location id"), KTraceFileName, __LINE__);
       
   159 		    }
       
   160 		else // dont retrieve current cell id as cell id was already provided
       
   161 		    {
       
   162 		    iGenerationStatus = EFalse;
       
   163 		    iECId = EFalse;
       
   164 		    iTrace->Trace(_L("COMASuplStartState::GenerateMessage stale cell id true"), KTraceFileName, __LINE__);
       
   165 		    GetAssistceDataFromPluginL(KErrNone);
       
   166 		    }
       
   167 		
       
   168 		return KErrNone;
   154 		return KErrNone;
   169 	}
   155 	}
   170 	
   156 	
   171 // -----------------------------------------------------------------------------
   157 // -----------------------------------------------------------------------------
   172 // COMASuplStartState::CancelOperation
   158 // COMASuplStartState::CancelOperation
  1008 	aCurrentCellId.iCid = lRefCI;
   994 	aCurrentCellId.iCid = lRefCI;
  1009 	aCurrentCellId.iMNC = lRefMNC; 
   995 	aCurrentCellId.iMNC = lRefMNC; 
  1010 	aCurrentCellId.iMCC = lRefMCC;
   996 	aCurrentCellId.iMCC = lRefMCC;
  1011 	aCurrentCellId.iLac = lRefLAC;
   997 	aCurrentCellId.iLac = lRefLAC;
  1012 	}
   998 	}
  1013 }	
   999 }	//  End of File
  1014 void COMASuplStartState::SetStaleCellIdToUse(COMASuplLocationId* aLocationId)
       
  1015     {
       
  1016     if(iLocationId)
       
  1017         {
       
  1018         delete iLocationId;
       
  1019         iLocationId = NULL;
       
  1020         }
       
  1021     iLocationId = aLocationId;
       
  1022     iIsStaleCellId = ETrue;
       
  1023     }
       
  1024 //  End of File