mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
refs #590, military flag in airline ICAO
(plus fixes in prefix of aircraft ICAO)
This commit is contained in:
@@ -41,6 +41,7 @@ namespace BlackMisc
|
||||
IndexTelephonyDesignator,
|
||||
IndexIsVirtualAirline,
|
||||
IndexIsOperating,
|
||||
IndexIsMilitary,
|
||||
IndexDesignatorNameCountry,
|
||||
};
|
||||
|
||||
@@ -107,6 +108,12 @@ namespace BlackMisc
|
||||
//! Operating airline?
|
||||
void setOperating(bool operating) { m_isOperating = operating; }
|
||||
|
||||
//! Military, air force or such?
|
||||
bool isMilitary() const { return m_isMilitary; }
|
||||
|
||||
//! Military, air force or such?
|
||||
void setMilitary(bool military) { m_isMilitary = military; }
|
||||
|
||||
//! Country?
|
||||
bool hasValidCountry() const;
|
||||
|
||||
@@ -179,6 +186,7 @@ namespace BlackMisc
|
||||
QString m_telephonyDesignator; //!< "Speedbird"
|
||||
bool m_isVa = false; //!< virtual airline
|
||||
bool m_isOperating = true; //!< still operating?
|
||||
bool m_isMilitary = false; //!< air force or such
|
||||
};
|
||||
} // namespace
|
||||
} // namespace
|
||||
@@ -192,7 +200,8 @@ BLACK_DECLARE_TUPLE_CONVERSION(BlackMisc::Aviation::CAirlineIcaoCode, (
|
||||
o.m_country,
|
||||
o.m_telephonyDesignator,
|
||||
o.m_isVa,
|
||||
o.m_isOperating
|
||||
o.m_isOperating,
|
||||
o.m_isMilitary
|
||||
))
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user