mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Ref T129, utility function to check airline ICAO against swift DB
This commit is contained in:
committed by
Mathew Sutcliffe
parent
a070e0e215
commit
f95a0b60cc
@@ -600,6 +600,12 @@ namespace BlackCore
|
||||
return CAirlineIcaoCodeList();
|
||||
}
|
||||
|
||||
bool CWebDataServices::containsAirlineIcaoDesignator(const QString &designator) const
|
||||
{
|
||||
if (designator.isEmpty()) { return false; }
|
||||
return this->getAirlineIcaoCodes().containsDesignator(designator);
|
||||
}
|
||||
|
||||
int CWebDataServices::getAirlineIcaoCodesCount() const
|
||||
{
|
||||
if (m_icaoDataReader) { return m_icaoDataReader->getAirlineIcaoCodesCount(); }
|
||||
|
||||
@@ -262,6 +262,10 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
BlackMisc::Aviation::CAirlineIcaoCodeList getAirlineIcaoCodes() const;
|
||||
|
||||
//! Contains the given designator
|
||||
//! \threadsafe
|
||||
bool containsAirlineIcaoDesignator(const QString &designator) const;
|
||||
|
||||
//! Airline names
|
||||
//! \threadsafe
|
||||
QStringList getAirlineNames() const;
|
||||
|
||||
Reference in New Issue
Block a user