Ref T261, detect gnd.flag (from network) suppport, display gnd.flag info in UI

* add flag info in simulated aircraft
* allow to display info  in UI
* unified naming to "contains" in situation list
* updated client provider
This commit is contained in:
Klaus Basan
2018-05-09 08:11:31 +02:00
parent 6e249aa15d
commit 7ad4c29d28
12 changed files with 87 additions and 16 deletions

View File

@@ -88,7 +88,8 @@ namespace BlackMisc
IndexEnabled,
IndexRendered,
IndexPartsSynchronized,
IndexFastPositionUpdates
IndexFastPositionUpdates,
IndexSupportsGndFlag
};
//! Default constructor.
@@ -419,6 +420,13 @@ namespace BlackMisc
//! Set the synchronisation flag
void setPartsSynchronized(bool synchronized) { m_partsSynchronized = synchronized; }
//! Is supporting gnd.flag?
bool isSupportingGndFlag() const { return m_supportsGndFlag; }
//! Indicate gnd.flag is supported
//! \remark normally automatically set from BlackMisc::Aviation::CAircraftSituation::hasInboundGroundDetails
void setSupportingGndFlag(bool supports) { m_supportsGndFlag = supports; }
//! \copydoc BlackMisc::Mixin::Index::propertyByIndex
CVariant propertyByIndex(const CPropertyIndex &index) const;
@@ -442,11 +450,12 @@ namespace BlackMisc
Aviation::CTransponder m_transponder;
Aviation::CAircraftParts m_parts;
Aviation::CSelcal m_selcal;
CAircraftModelList m_models = { { CAircraftModel(), CAircraftModel() } }; //!< Shorter DBus signature: current model, and model received from network
CAircraftModelList m_models = {{ CAircraftModel(), CAircraftModel() }}; //!< Shorter DBus signature: current model, and model received from network
bool m_enabled = true; //!< to be displayed in simulator
bool m_rendered = false; //!< really shown in simulator
bool m_partsSynchronized = false; //!< synchronize parts
bool m_fastPositionUpdates = false; //!< use fast position updates
bool m_supportsGndFlag = false; //!< supports gnd. flag
//! Init, which synchronizes some denormalized values
void init();