mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 20:25:29 +08:00
refs #781, use admit in database reader
* added amit functions in readers * cacheHasChanged functions (needed because data of caches are loaded in background) * pinned small caches * CDatabaseReader::readInBackgroundThread uses admitCaches now
This commit is contained in:
@@ -51,6 +51,8 @@ namespace BlackCore
|
||||
// cache handling for base class
|
||||
virtual QDateTime getCacheTimestamp(BlackMisc::Network::CEntityFlags::Entity entity) const override;
|
||||
virtual int getCacheCount(BlackMisc::Network::CEntityFlags::Entity entity) const override;
|
||||
virtual void synchronizeCaches(BlackMisc::Network::CEntityFlags::Entity entities) override;
|
||||
virtual void admitCaches(BlackMisc::Network::CEntityFlags::Entity entities) override;
|
||||
|
||||
public slots:
|
||||
//! Allow to call CInfoDataReader::ps_read directly, special for info objects
|
||||
@@ -58,7 +60,6 @@ namespace BlackCore
|
||||
|
||||
protected:
|
||||
// cache handling for base class
|
||||
virtual void synchronizeCaches(BlackMisc::Network::CEntityFlags::Entity entities) override;
|
||||
virtual void invalidateCaches(BlackMisc::Network::CEntityFlags::Entity entities) override;
|
||||
virtual bool hasChangedUrl(BlackMisc::Network::CEntityFlags::Entity entity) const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user