mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +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");
|
Q_ASSERT_X(CEntityFlags::isSingleEntity(entity), Q_FUNC_INFO, "Need single entity");
|
||||||
if (CEntityFlags::anySwiftDbEntity(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);
|
const CDatabaseReader *reader = this->getDbReader(entity);
|
||||||
if (reader)
|
if (reader)
|
||||||
|
|||||||
@@ -346,11 +346,11 @@ namespace BlackCore
|
|||||||
|
|
||||||
//! Corresponding DB timestamp if applicable
|
//! Corresponding DB timestamp if applicable
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
QDateTime getDbLatestEntityTimestamp(BlackMisc::Network::CEntityFlags::Entity entity) const;
|
QDateTime getLatestDbEntityTimestamp(BlackMisc::Network::CEntityFlags::Entity entity) const;
|
||||||
|
|
||||||
//! Shared info object timestamp
|
//! Shared info object timestamp
|
||||||
//! \threadsafe
|
//! \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)
|
//! Entities with newer shared file (from DB Info object)
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
QString CDbLoadOverviewComponent::dbTimestampForEntity(CEntityFlags::Entity entity)
|
QString CDbLoadOverviewComponent::dbTimestampForEntity(CEntityFlags::Entity entity)
|
||||||
{
|
{
|
||||||
const QDateTime ts = sGui->getWebDataServices()->getDbLatestEntityTimestamp(entity);
|
const QDateTime ts = sGui->getWebDataServices()->getLatestDbEntityTimestamp(entity);
|
||||||
return formattedTimestamp(ts);
|
return formattedTimestamp(ts);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -241,7 +241,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
QString CDbLoadOverviewComponent::sharedFileTimestampForEntity(CEntityFlags::Entity entity)
|
QString CDbLoadOverviewComponent::sharedFileTimestampForEntity(CEntityFlags::Entity entity)
|
||||||
{
|
{
|
||||||
const QDateTime ts = sGui->getWebDataServices()->getSharedInfoObjectTimestamp(entity);
|
const QDateTime ts = sGui->getWebDataServices()->getLatestSharedInfoObjectTimestamp(entity);
|
||||||
return formattedTimestamp(ts);
|
return formattedTimestamp(ts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user