mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Ref T301, application contexts pings (by re-registering) identifiers again. By that it can be detected if the GUI is crashed
* ping timer in proxy * utility function in timestamp list * adjusted UI component displaying identifiers in core
This commit is contained in:
@@ -111,6 +111,12 @@ namespace BlackMisc
|
||||
});
|
||||
}
|
||||
|
||||
template<class OBJ, class CONTAINER>
|
||||
CONTAINER ITimestampObjectList<OBJ, CONTAINER>::findAfterNowMinusOffset(qint64 msOffset) const
|
||||
{
|
||||
return this->findAfter(QDateTime::currentMSecsSinceEpoch() - msOffset);
|
||||
}
|
||||
|
||||
template<class OBJ, class CONTAINER>
|
||||
OBJ ITimestampObjectList<OBJ, CONTAINER>::findObjectAfterOrDefault(qint64 msSinceEpoch) const
|
||||
{
|
||||
|
||||
@@ -72,6 +72,9 @@ namespace BlackMisc
|
||||
//! List of objects after msSinceEpoch (newer)
|
||||
CONTAINER findAfter(qint64 msSinceEpoch) const;
|
||||
|
||||
//! List of objects before now - offset
|
||||
CONTAINER findAfterNowMinusOffset(qint64 msOffset) const;
|
||||
|
||||
//! List of objects after msSinceEpoch (newer)
|
||||
OBJ findObjectAfterOrDefault(qint64 msSinceEpoch) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user