mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 05:51:23 +08:00
Ref T129, parsed flight remarks can be obtained from VATSIM reader
This commit is contained in:
committed by
Mathew Sutcliffe
parent
34faabb6c5
commit
8a4415ce07
@@ -135,6 +135,14 @@ namespace BlackCore
|
|||||||
return m_flightPlanRemarks.value(callsign);
|
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
|
void CVatsimDataFileReader::updateWithVatsimDataFileData(CSimulatedAircraft &aircraftToBeUdpated) const
|
||||||
{
|
{
|
||||||
this->getAircraft().updateWithVatsimDataFileData(aircraftToBeUdpated);
|
this->getAircraft().updateWithVatsimDataFileData(aircraftToBeUdpated);
|
||||||
|
|||||||
@@ -113,6 +113,10 @@ namespace BlackCore
|
|||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
QString getFlightPlanRemarksForCallsign(const BlackMisc::Aviation::CCallsign &callsign) const;
|
QString getFlightPlanRemarksForCallsign(const BlackMisc::Aviation::CCallsign &callsign) const;
|
||||||
|
|
||||||
|
//! Parsed flight plan remarks for callsign
|
||||||
|
//! \threadsafe
|
||||||
|
BlackMisc::Aviation::CFlightPlanUtils::FlightPlanRemarks getParsedFlightPlanRemarksForCallsign(const BlackMisc::Aviation::CCallsign &callsign) const;
|
||||||
|
|
||||||
//! Update aircraft with VATSIM aircraft data from data file
|
//! Update aircraft with VATSIM aircraft data from data file
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
void updateWithVatsimDataFileData(BlackMisc::Simulation::CSimulatedAircraft &aircraftToBeUdpated) const;
|
void updateWithVatsimDataFileData(BlackMisc::Simulation::CSimulatedAircraft &aircraftToBeUdpated) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user