Ref T259, Ref T243 automatically update client gnd. capability by situation

Rational: If we receive a gnd flag from network, the client does have this capability
This commit is contained in:
Klaus Basan
2018-03-26 02:52:06 +02:00
parent 7ae0649dd6
commit 21644c9f24
3 changed files with 32 additions and 6 deletions

View File

@@ -19,6 +19,7 @@
namespace BlackMisc
{
namespace Aviation { class CAircraftSituation; }
namespace Network
{
//! Direct in memory access to client (network client) data
@@ -61,6 +62,10 @@ namespace BlackMisc
//! \threadsafe
int removeClient(const Aviation::CCallsign &callsign);
//! Adjust gnd.flag capability from situation
//! \threadsafe
bool autoAdjustCientGndCapability(const Aviation::CAircraftSituation &situation);
private:
CClientList m_clients;
mutable QReadWriteLock m_lockClient; //!< lock clients: m_clients