mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 21:05:31 +08:00
Utility functions for entity flags and web data services
* multiple flags by name * number of DB objects * newer entities synchronized
This commit is contained in:
@@ -416,6 +416,11 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
BlackMisc::Network::CEntityFlags::Entity getEmptyEntities(BlackMisc::Network::CEntityFlags::Entity entities = BlackMisc::Network::CEntityFlags::AllDbEntities) const;
|
||||
|
||||
//! Synchronized entities either empty or with newer shared file
|
||||
//! \remark will synchronize entities
|
||||
//! \threadsafe
|
||||
BlackMisc::Network::CEntityFlags::Entity getSychronizedEntitiesWithNewerSharedFileOrEmpty(bool syncData = true, BlackMisc::Network::CEntityFlags::Entity entities = BlackMisc::Network::CEntityFlags::AllDbEntities);
|
||||
|
||||
//! Cache count for entity
|
||||
//! \threadsafe
|
||||
int getCacheCount(BlackMisc::Network::CEntityFlags::Entity entity) const;
|
||||
@@ -424,6 +429,10 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
int getDbInfoObjectCount(BlackMisc::Network::CEntityFlags::Entity entity) const;
|
||||
|
||||
//! Count for 1-n entities from DB entity objects
|
||||
//! \threadsafe
|
||||
int getDbInfoObjectsCount(BlackMisc::Network::CEntityFlags::Entity entities, bool stopIfNotFound = true) const;
|
||||
|
||||
//! Count for entity from shared entity objects
|
||||
//! \threadsafe
|
||||
int getSharedInfoObjectCount(BlackMisc::Network::CEntityFlags::Entity entity) const;
|
||||
|
||||
Reference in New Issue
Block a user