mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-24 18:04:14 +08:00
Ref T268, interpolation setup provider (no QObject) can "emit signal" by using a virtual function
This commit is contained in:
@@ -63,7 +63,7 @@ namespace BlackMisc
|
||||
//! \threadsafe
|
||||
virtual bool setInterpolationSetupGlobal(const CInterpolationAndRenderingSetupGlobal &setup);
|
||||
|
||||
//! Insert specialized setup
|
||||
//! Insert specialized setup per callsign
|
||||
//! \threadsafe
|
||||
virtual bool setInterpolationSetupPerCallsign(const CInterpolationAndRenderingSetupPerCallsign &setup, const Aviation::CCallsign &callsign, bool removeGlobalSetup = true);
|
||||
|
||||
@@ -71,10 +71,17 @@ namespace BlackMisc
|
||||
//! \threadsafe
|
||||
void setLogCallsign(bool log, const Aviation::CCallsign &callsign);
|
||||
|
||||
//! Remove specialized setup per callsign
|
||||
bool removeInterpolationSetupPerCallsign(const Aviation::CCallsign &callsign);
|
||||
|
||||
//! Clear all interpolation log callsigns
|
||||
//! \threadsafe
|
||||
void clearInterpolationLogCallsigns();
|
||||
|
||||
//! Clear all setups
|
||||
//! \threadsafe
|
||||
int clearInterpolationSetupsPerCallsign();
|
||||
|
||||
//! Log any callsign?
|
||||
//! \threadsafe
|
||||
bool logAnyCallsign() const;
|
||||
@@ -83,6 +90,9 @@ namespace BlackMisc
|
||||
//! \threadsafe
|
||||
SetupsPerCallsign getSetupsPerCallsign() const;
|
||||
|
||||
//! Pseudo signal, override to emit signal
|
||||
virtual void emitInterpolationSetupChanged() {}
|
||||
|
||||
private:
|
||||
CInterpolationAndRenderingSetupGlobal m_globalSetup;
|
||||
SetupsPerCallsign m_setups;
|
||||
|
||||
Reference in New Issue
Block a user