mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Ref T28, renaming to getLatestDbEntityTimestamp
This commit is contained in:
committed by
Mathew Sutcliffe
parent
a0f2a168f9
commit
65a716a61d
@@ -368,7 +368,7 @@ namespace BlackCore
|
||||
}
|
||||
}
|
||||
|
||||
QDateTime CWebDataServices::getDbLatestEntityTimestamp(CEntityFlags::Entity entity) const
|
||||
QDateTime CWebDataServices::getLatestDbEntityTimestamp(CEntityFlags::Entity entity) const
|
||||
{
|
||||
Q_ASSERT_X(CEntityFlags::isSingleEntity(entity), Q_FUNC_INFO, "Need single entity");
|
||||
if (CEntityFlags::anySwiftDbEntity(entity))
|
||||
@@ -383,7 +383,7 @@ namespace BlackCore
|
||||
}
|
||||
}
|
||||
|
||||
QDateTime CWebDataServices::getSharedInfoObjectTimestamp(CEntityFlags::Entity entity) const
|
||||
QDateTime CWebDataServices::getLatestSharedInfoObjectTimestamp(CEntityFlags::Entity entity) const
|
||||
{
|
||||
const CDatabaseReader *reader = this->getDbReader(entity);
|
||||
if (reader)
|
||||
|
||||
@@ -346,11 +346,11 @@ namespace BlackCore
|
||||
|
||||
//! Corresponding DB timestamp if applicable
|
||||
//! \threadsafe
|
||||
QDateTime getDbLatestEntityTimestamp(BlackMisc::Network::CEntityFlags::Entity entity) const;
|
||||
QDateTime getLatestDbEntityTimestamp(BlackMisc::Network::CEntityFlags::Entity entity) const;
|
||||
|
||||
//! Shared info object timestamp
|
||||
//! \threadsafe
|
||||
QDateTime getSharedInfoObjectTimestamp(BlackMisc::Network::CEntityFlags::Entity entity) const;
|
||||
QDateTime getLatestSharedInfoObjectTimestamp(BlackMisc::Network::CEntityFlags::Entity entity) const;
|
||||
|
||||
//! Entities with newer shared file (from DB Info object)
|
||||
//! \threadsafe
|
||||
|
||||
@@ -229,7 +229,7 @@ namespace BlackGui
|
||||
|
||||
QString CDbLoadOverviewComponent::dbTimestampForEntity(CEntityFlags::Entity entity)
|
||||
{
|
||||
const QDateTime ts = sGui->getWebDataServices()->getDbLatestEntityTimestamp(entity);
|
||||
const QDateTime ts = sGui->getWebDataServices()->getLatestDbEntityTimestamp(entity);
|
||||
return formattedTimestamp(ts);
|
||||
}
|
||||
|
||||
@@ -241,7 +241,7 @@ namespace BlackGui
|
||||
|
||||
QString CDbLoadOverviewComponent::sharedFileTimestampForEntity(CEntityFlags::Entity entity)
|
||||
{
|
||||
const QDateTime ts = sGui->getWebDataServices()->getSharedInfoObjectTimestamp(entity);
|
||||
const QDateTime ts = sGui->getWebDataServices()->getLatestSharedInfoObjectTimestamp(entity);
|
||||
return formattedTimestamp(ts);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user