mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Ref T268, allow to reset last sent values from log. display for testing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user