mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
refs #535, find standard livery
This commit is contained in:
@@ -101,6 +101,13 @@ namespace BlackMisc
|
||||
return this->m_webDataReaderProvider->getLiveryForCombinedCode(combinedCode);
|
||||
}
|
||||
|
||||
CLivery CWebDataServicesAware::getStdLiveryForAirlineCode(const CAirlineIcaoCode &icao) const
|
||||
{
|
||||
Q_ASSERT_X(this->m_webDataReaderProvider, Q_FUNC_INFO, "Missing provider");
|
||||
if (!hasProvider()) { return CLivery(); }
|
||||
return this->m_webDataReaderProvider->getStdLiveryForAirlineCode(icao);
|
||||
}
|
||||
|
||||
CLivery CWebDataServicesAware::smartLiverySelector(const CLivery &livery) const
|
||||
{
|
||||
Q_ASSERT_X(this->m_webDataReaderProvider, Q_FUNC_INFO, "Missing provider");
|
||||
|
||||
@@ -88,10 +88,14 @@ namespace BlackMisc
|
||||
//! \threadsafe
|
||||
virtual int getLiveriesCount() const = 0;
|
||||
|
||||
//! Liveries
|
||||
//! Livery for its combined code
|
||||
//! \threadsafe
|
||||
virtual BlackMisc::Aviation::CLivery getLiveryForCombinedCode(const QString &combinedCode) const = 0;
|
||||
|
||||
//! Standard livery for airline code
|
||||
//! \threadsafe
|
||||
virtual BlackMisc::Aviation::CLivery getStdLiveryForAirlineCode(const BlackMisc::Aviation::CAirlineIcaoCode &icao) const = 0;
|
||||
|
||||
//! Livery for id
|
||||
//! \threadsafe
|
||||
virtual BlackMisc::Aviation::CLivery getLiveryForDbKey(int id) const = 0;
|
||||
@@ -252,6 +256,9 @@ namespace BlackMisc
|
||||
//! \copydoc IWebDataServicesProvider::getLiveryForCombinedCode
|
||||
BlackMisc::Aviation::CLivery getLiveryForCombinedCode(const QString &combinedCode) const;
|
||||
|
||||
//! \copydoc IWebDataServicesProvider::getStdLiveryForAirlineCode
|
||||
BlackMisc::Aviation::CLivery getStdLiveryForAirlineCode(const BlackMisc::Aviation::CAirlineIcaoCode &icao) const;
|
||||
|
||||
//! \copydoc IWebDataServicesProvider::smartLiverySelector
|
||||
BlackMisc::Aviation::CLivery smartLiverySelector(const Aviation::CLivery &livery) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user