Ref T421, interpolation log message follow up, deprecated "clampedLog"

This commit is contained in:
Klaus Basan
2018-11-02 17:21:42 +01:00
parent 4172701586
commit 4d7ca00324
4 changed files with 10 additions and 8 deletions

View File

@@ -972,6 +972,7 @@ namespace BlackCore
return m + addDetails.arg(details);
}
/** deprecated 2018-11
bool ISimulator::clampedLog(const CCallsign &callsign, const CStatusMessage &message)
{
if (message.isEmpty()) { return false; }
@@ -988,6 +989,7 @@ namespace BlackCore
{
m_clampedLogMsg.remove(callsign);
}
depreatced **/
void ISimulator::setStatsRemoteAircraftUpdate(qint64 startTime, bool limited)
{

View File

@@ -505,15 +505,17 @@ namespace BlackCore
//! Info about invalid situation
QString getInvalidSituationLogMessage(const BlackMisc::Aviation::CCallsign &callsign, const BlackMisc::Simulation::CInterpolationStatus &status, const QString &details = {}) const;
//! Can a new log message be generated without generating a "message" overflow
//! Can a (new) log message be generated without generating a "message" overflow
//! \remark works per callsign
//! \remark use this function when there is a risk that a lot of log. messages will be generated in a short time
bool clampedLog(const BlackMisc::Aviation::CCallsign &callsign, const BlackMisc::CStatusMessage &message);
//! \deprecated KB 2018-11
// bool clampedLog(const BlackMisc::Aviation::CCallsign &callsign, const BlackMisc::CStatusMessage &message);
//! Mark as justed logged
//! \remark touch, but also return if it can be logged
//! \remark use this function when there is a risk that a lot of log. messages will be generated in a short time
void removedClampedLog(const BlackMisc::Aviation::CCallsign &callsign);
//! \deprecated KB 2018-11
// void removedClampedLog(const BlackMisc::Aviation::CCallsign &callsign);
//! Update stats and flags
void setStatsRemoteAircraftUpdate(qint64 startTime, bool limited = false);