Ref T237, find latest DB cache ts and only init caches if there are no or old cache data

This commit is contained in:
Klaus Basan
2018-01-30 23:31:25 +01:00
parent fd6bfdb7c0
commit 0101e31db2
4 changed files with 32 additions and 4 deletions

View File

@@ -77,8 +77,7 @@ namespace BlackCore
/*!
* Encapsulates reading data from web sources
*/
class BLACKCORE_EXPORT CWebDataServices :
public QObject
class BLACKCORE_EXPORT CWebDataServices : public QObject
{
Q_OBJECT
@@ -385,11 +384,17 @@ namespace BlackCore
//! \threadsafe
QDateTime getCacheTimestamp(BlackMisc::Network::CEntityFlags::Entity entity) const;
//! Latest DB object timestamp, or null if there is no such timestamp
//! \threadsafe
QDateTime getLatestDbEntityCacheTimestamp() const;
//! Corresponding DB timestamp if applicable
//! \remark from Db::CInfoDataReader
//! \threadsafe
QDateTime getLatestDbEntityTimestamp(BlackMisc::Network::CEntityFlags::Entity entity) const;
//! Shared info object timestamp
//! \remark from Db::CInfoDataReader
//! \threadsafe
QDateTime getLatestSharedInfoObjectTimestamp(BlackMisc::Network::CEntityFlags::Entity entity) const;