mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-03 16:25:54 +08:00
Ref T26, find most important manufacturer for an ICAO code
This commit is contained in:
committed by
Mathew Sutcliffe
parent
5270dce266
commit
fa5ee8e22f
@@ -124,6 +124,12 @@ namespace BlackMisc
|
||||
//! All manufacturers
|
||||
QSet<QString> allManufacturers(bool onlyKnownDesignators = true) const;
|
||||
|
||||
//! Count by manufacturer
|
||||
QMap<QString, int> countManufacturers() const;
|
||||
|
||||
//! Uses countManufacturers to find "most important" manufacturer
|
||||
QPair<QString, int> maxCountManufacturer() const;
|
||||
|
||||
//! From our database JSON format
|
||||
static CAircraftIcaoCodeList fromDatabaseJson(const QJsonArray &array, bool ignoreIncompleteAndDuplicates = true);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user