supl/locationomasuplprotocolhandler/protocolhandlerver1/src/epos_comasuplstartstate.cpp
branchRCL_3
changeset 19 02ba3f1733c6
parent 0 667063e416a2
child 20 2b4ea9893b66
equal deleted inserted replaced
18:d746aee05493 19:02ba3f1733c6
   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 		iLocationIDRequestor->GetLocationID();
   153 		//if no cell stale cell id is available, retrieve current cell id
       
   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 		
   154 		return KErrNone;
   168 		return KErrNone;
   155 	}
   169 	}
   156 	
   170 	
   157 // -----------------------------------------------------------------------------
   171 // -----------------------------------------------------------------------------
   158 // COMASuplStartState::CancelOperation
   172 // COMASuplStartState::CancelOperation
   994 	aCurrentCellId.iCid = lRefCI;
  1008 	aCurrentCellId.iCid = lRefCI;
   995 	aCurrentCellId.iMNC = lRefMNC; 
  1009 	aCurrentCellId.iMNC = lRefMNC; 
   996 	aCurrentCellId.iMCC = lRefMCC;
  1010 	aCurrentCellId.iMCC = lRefMCC;
   997 	aCurrentCellId.iLac = lRefLAC;
  1011 	aCurrentCellId.iLac = lRefLAC;
   998 	}
  1012 	}
   999 }	//  End of File
  1013 }	
       
  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