Ref T129, parsed flight remarks can be obtained from VATSIM reader

This commit is contained in:
Klaus Basan
2017-10-01 22:11:47 +02:00
committed by Mathew Sutcliffe
parent 34faabb6c5
commit 8a4415ce07
2 changed files with 12 additions and 0 deletions

View File

@@ -135,6 +135,14 @@ namespace BlackCore
return m_flightPlanRemarks.value(callsign);
}
CFlightPlanUtils::FlightPlanRemarks CVatsimDataFileReader::getParsedFlightPlanRemarksForCallsign(const CCallsign &callsign) const
{
if (callsign.isEmpty()) return CFlightPlanUtils::parseFlightPlanRemarks("");
const QString remarks = this->getFlightPlanRemarksForCallsign(callsign);
const CVoiceCapabilities vc = this->getVoiceCapabilityForCallsign(callsign);
return CFlightPlanUtils::parseFlightPlanRemarks(remarks, vc);
}
void CVatsimDataFileReader::updateWithVatsimDataFileData(CSimulatedAircraft &aircraftToBeUdpated) const
{
this->getAircraft().updateWithVatsimDataFileData(aircraftToBeUdpated);