mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T241, some improvements for timestamp based
* this->m_ => m_ * is[Older/Newer]ThanAdjusted
This commit is contained in:
@@ -176,6 +176,18 @@ namespace BlackMisc
|
||||
//! Timestamp and offset
|
||||
QString getFormattedTimestampAndOffset(bool includeRawTimestamp) const;
|
||||
|
||||
//! Is this newer than other?
|
||||
bool isNewerThanAdjusted(const ITimestampWithOffsetBased &otherTimestampObj) const;
|
||||
|
||||
//! Is newer than epoch value?
|
||||
bool isNewerThanAdjusted(qint64 mSecsSinceEpoch) const;
|
||||
|
||||
//! Is this older than other?
|
||||
bool isOlderThanAdjusted(const ITimestampWithOffsetBased &otherTimestampObj) const;
|
||||
|
||||
//! Is this older than other?
|
||||
bool isOlderThanAdjusted(qint64 mSecsSinceEpoch) const;
|
||||
|
||||
protected:
|
||||
//! Can given index be handled
|
||||
static bool canHandleIndex(const CPropertyIndex &index);
|
||||
|
||||
Reference in New Issue
Block a user