Ref T149, return number of removed elements

This commit is contained in:
Klaus Basan
2017-09-17 18:07:54 +02:00
committed by Mathew Sutcliffe
parent f8e672b04f
commit 815cf75f66
2 changed files with 9 additions and 9 deletions

View File

@@ -78,13 +78,13 @@ namespace BlackMisc
OBJ oldestObject() const;
//! Remove objects with timestamp before dateTime
void removeBefore(const QDateTime &dateTime);
int removeBefore(const QDateTime &dateTime);
//! Remove objects with timestamp before dateTime
void removeBefore(qint64 msSinceEpoch);
int removeBefore(qint64 msSinceEpoch);
//! Remove objects older than seconds
void removeOlderThanNowMinusOffset(qint64 offsetMs);
int removeOlderThanNowMinusOffset(qint64 offsetMs);
//! Sort by timestamp
void sortLatestFirst();