summaryrefslogtreecommitdiffstats
path: root/common/storage/entitystore.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/storage/entitystore.h')
-rw-r--r--common/storage/entitystore.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/storage/entitystore.h b/common/storage/entitystore.h
index 1dcd285..c23a659 100644
--- a/common/storage/entitystore.h
+++ b/common/storage/entitystore.h
@@ -67,10 +67,13 @@ public:
67 } 67 }
68 68
69 ///Returns the uid and buffer. Note that the memory only remains valid until the next operation or transaction end. 69 ///Returns the uid and buffer. Note that the memory only remains valid until the next operation or transaction end.
70 void readLatest(const QByteArray &type, const Identifier &uid, const std::function<void(const QByteArray &uid, const EntityBuffer &entity)> callback);
70 void readLatest(const QByteArray &type, const QByteArray &uid, const std::function<void(const QByteArray &uid, const EntityBuffer &entity)> callback); 71 void readLatest(const QByteArray &type, const QByteArray &uid, const std::function<void(const QByteArray &uid, const EntityBuffer &entity)> callback);
71 ///Returns an entity. Note that the memory only remains valid until the next operation or transaction end. 72 ///Returns an entity. Note that the memory only remains valid until the next operation or transaction end.
73 void readLatest(const QByteArray &type, const Identifier &uid, const std::function<void(const ApplicationDomainType &entity)> callback);
72 void readLatest(const QByteArray &type, const QByteArray &uid, const std::function<void(const ApplicationDomainType &entity)> callback); 74 void readLatest(const QByteArray &type, const QByteArray &uid, const std::function<void(const ApplicationDomainType &entity)> callback);
73 ///Returns an entity and operation. Note that the memory only remains valid until the next operation or transaction end. 75 ///Returns an entity and operation. Note that the memory only remains valid until the next operation or transaction end.
76 void readLatest(const QByteArray &type, const Identifier &uid, const std::function<void(const ApplicationDomainType &entity, Sink::Operation)> callback);
74 void readLatest(const QByteArray &type, const QByteArray &uid, const std::function<void(const ApplicationDomainType &entity, Sink::Operation)> callback); 77 void readLatest(const QByteArray &type, const QByteArray &uid, const std::function<void(const ApplicationDomainType &entity, Sink::Operation)> callback);
75 78
76 ///Returns a copy 79 ///Returns a copy