Ref T27, preparation for refactoring, turned private slots into normal member functions

* Motivation: slots no longer required, and in the driver the (small) slot overhead might matter
* renamed some members to better reflect future use
* timer intervals as constexpr
* fixed some typos and comments
This commit is contained in:
Klaus Basan
2017-06-22 01:24:40 +02:00
parent 5aaf5cdeb1
commit 6d26c96569
8 changed files with 134 additions and 58 deletions

View File

@@ -36,7 +36,7 @@ namespace BlackSimPlugin
//! Destructor
~CSimConnectObject() {}
//! Get Callsign
//! Get callsign
const BlackMisc::Aviation::CCallsign &getCallsign() const { return m_aircraft.getCallsign(); }
//! Simulated aircraft (as added)
@@ -57,6 +57,9 @@ namespace BlackSimPlugin
//! Get current lights (requested from simulator)
const BlackMisc::Aviation::CAircraftLights &getCurrentLightsInSimulator() const { return m_currentLightsInSim; }
//! Received lights in simulator
bool hasCurrentLightsInSimulator() const { return !m_currentLightsInSim.isNull(); }
//! Set current lights when received from simulator
void setCurrentLightsInSimulator(const BlackMisc::Aviation::CAircraftLights &lights) { m_currentLightsInSim = lights; }
@@ -162,7 +165,22 @@ namespace BlackSimPlugin
bool isKnownSimObjectId(DWORD objectId) const;
//! Pending add condition
bool containsPendingAdd() const;
bool containsPendingAdded() const;
//! Pending removed condition
bool containsPendingRemoved() const;
//! Number of pending added
int countPendingAdded() const;
//! Number of pending removed
int countPendingRemoved() const;
//! Callsigns of pending added callsigns
BlackMisc::Aviation::CCallsignSet getPendingAddedCallsigns() const;
//! Callsigns of pending removed callsigns
BlackMisc::Aviation::CCallsignSet getPendingRemovedCallsigns() const;
//! Toggle interpolator modes
void toggleInterpolatorModes();