Ref T268, interpolation setup provider (no QObject) can "emit signal" by using a virtual function

This commit is contained in:
Klaus Basan
2018-07-09 22:21:42 +02:00
parent 51ad984200
commit 6e880b950c
2 changed files with 47 additions and 9 deletions

View File

@@ -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;