mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user