mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 07:15:34 +08:00
Ref T472, utility functions for category
This commit is contained in:
committed by
Mat Sutcliffe
parent
5c46fa3afa
commit
360edca4b3
@@ -499,6 +499,11 @@ namespace BlackMisc
|
||||
this->getDbKeyAsStringInParentheses(" ");
|
||||
}
|
||||
|
||||
bool CAircraftIcaoCode::hasCategory() const
|
||||
{
|
||||
return !m_category.isNull();
|
||||
}
|
||||
|
||||
bool CAircraftIcaoCode::hasCompleteData() const
|
||||
{
|
||||
return hasValidCombinedType() && hasDesignator() && hasValidWtc() && hasManufacturer();
|
||||
@@ -704,8 +709,14 @@ namespace BlackMisc
|
||||
|
||||
const QString &CAircraftIcaoCode::getUnassignedDesignator()
|
||||
{
|
||||
static const QString i("ZZZZ");
|
||||
return i;
|
||||
static const QString z("ZZZZ");
|
||||
return z;
|
||||
}
|
||||
|
||||
const QString &CAircraftIcaoCode::getGliderDesignator()
|
||||
{
|
||||
static const QString g("GLID");
|
||||
return g;
|
||||
}
|
||||
|
||||
const CAircraftIcaoCode &CAircraftIcaoCode::unassignedIcao()
|
||||
@@ -716,7 +727,7 @@ namespace BlackMisc
|
||||
|
||||
const QStringList &CAircraftIcaoCode::getSpecialDesignators()
|
||||
{
|
||||
static const QStringList s({ "ZZZZ", "SHIP", "BALL", "GLID", "ULAC", "GYRO", "UHEL" });
|
||||
static const QStringList s({ "ZZZZ", "SHIP", "BALL", getGliderDesignator(), "ULAC", "GYRO", "UHEL" });
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user