Ref T268, allow to reset last sent values from log. display for testing

This commit is contained in:
Klaus Basan
2018-07-10 17:15:56 +02:00
parent b74de43ce0
commit 226abd0d38
5 changed files with 36 additions and 1 deletions

View File

@@ -337,6 +337,18 @@ namespace BlackCore
return limInfo.arg(m_statsUpdateAircraftLimited).arg(m_limitUpdateAircraftBucket.getTokensPerSecond());
}
void CSimulatorCommon::resetLastSentValues()
{
m_lastSentParts.clear();
m_lastSentSituations.clear();
}
void CSimulatorCommon::resetLastSentValues(const CCallsign &callsign)
{
m_lastSentParts.remove(callsign);
m_lastSentSituations.remove(callsign);
}
void CSimulatorCommon::onSwiftDbAllDataRead()
{
// void, can be overridden in specialized drivers

View File

@@ -152,6 +152,12 @@ namespace BlackCore
//! Info about update aircraft limitations
QString updateAircraftLimitationInfo() const;
//! Reset the last sent values
void resetLastSentValues();
//! Reset the last sent values per callsign
void resetLastSentValues(const BlackMisc::Aviation::CCallsign &callsign);
protected:
//! Constructor
CSimulatorCommon(const BlackMisc::Simulation::CSimulatorPluginInfo &info,