mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Ref T111, added utility functions used for swift plugin (dummy driver)
* new reader functions * plugin info
This commit is contained in:
committed by
Mathew Sutcliffe
parent
29e1d54e05
commit
b1295cd457
@@ -523,9 +523,9 @@ namespace BlackCore
|
||||
return QStringList();
|
||||
}
|
||||
|
||||
QStringList CWebDataServices::getModelCompleterStrings(bool sorted) const
|
||||
QStringList CWebDataServices::getModelCompleterStrings(bool sorted, const CSimulatorInfo &simulator) const
|
||||
{
|
||||
if (m_modelDataReader) { return m_modelDataReader->getModels().toCompleterStrings(sorted); }
|
||||
if (m_modelDataReader) { return m_modelDataReader->getModels().toCompleterStrings(sorted, simulator); }
|
||||
return QStringList();
|
||||
}
|
||||
|
||||
@@ -666,6 +666,12 @@ namespace BlackCore
|
||||
return 0;
|
||||
}
|
||||
|
||||
CAirport CWebDataServices::getAirportForIcaoDesignator(const QString &icao) const
|
||||
{
|
||||
if (m_airportDataReader) { return m_airportDataReader->getAirportForIcaoDesignator(icao); }
|
||||
return CAirport();
|
||||
}
|
||||
|
||||
CCountry CWebDataServices::getCountryForIsoCode(const QString &iso) const
|
||||
{
|
||||
if (m_icaoDataReader) { return m_icaoDataReader->getCountryForIsoCode(iso); }
|
||||
|
||||
Reference in New Issue
Block a user