mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 20:25:29 +08:00
Fix finding of std. livery for a given airline.
This was ambigous in the past and could show wrong liveries if 2 or more liveries had the same airline code.
This commit is contained in:
@@ -12,11 +12,11 @@
|
||||
#ifndef BLACKMISC_AVIATION_LIVERYLIST_H
|
||||
#define BLACKMISC_AVIATION_LIVERYLIST_H
|
||||
|
||||
#include "blackmisc/aviation/airlineicaocode.h"
|
||||
#include "blackmisc/aviation/airlineicaocodelist.h"
|
||||
#include "blackmisc/aviation/livery.h"
|
||||
#include "blackmisc/db/datastoreobjectlist.h"
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/collection.h"
|
||||
#include "blackmisc/db/datastoreobjectlist.h"
|
||||
#include "blackmisc/sequence.h"
|
||||
#include "blackmisc/variant.h"
|
||||
|
||||
@@ -44,9 +44,11 @@ namespace BlackMisc
|
||||
CLiveryList(const CSequence<CLivery> &other);
|
||||
|
||||
//! Find livery by airline
|
||||
//! \remark try to use the version with CAirlineIcaoCode as it resolves ambiguities betters
|
||||
CLiveryList findByAirlineIcaoDesignator(const QString &icao) const;
|
||||
|
||||
//! Find livery by airline
|
||||
//! \remark try to use the version with CAirlineIcaoCode as it resolves ambiguities betters
|
||||
CLivery findStdLiveryByAirlineIcaoVDesignator(const QString &icao) const;
|
||||
|
||||
//! Find livery by airline
|
||||
@@ -73,6 +75,9 @@ namespace BlackMisc
|
||||
//! All combined codes plus more info
|
||||
QStringList getCombinedCodesPlusInfo(bool sort = false) const;
|
||||
|
||||
//! All aircraft codes
|
||||
CAirlineIcaoCodeList getAirlines() const;
|
||||
|
||||
//! Find by multiple criteria
|
||||
CLivery smartLiverySelector(const CLivery &liveryPattern) const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user