diff options
author | Minijackson <minijackson@riseup.net> | 2018-07-13 10:56:47 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2018-07-13 10:56:47 +0200 |
commit | d0ab46b20b74acef104038cbc5c1b769be863cd3 (patch) | |
tree | 2a7caac00f8d3c14635ba9b468bfe9d3c4aed76b /common/storage/entitystore.h | |
parent | 17054181f6dc17b90129f75528bae1427176b3aa (diff) | |
download | sink-d0ab46b20b74acef104038cbc5c1b769be863cd3.tar.gz sink-d0ab46b20b74acef104038cbc5c1b769be863cd3.zip |
Add versions of readLatest with Identifier as argument in EntityStore
Diffstat (limited to 'common/storage/entitystore.h')
-rw-r--r-- | common/storage/entitystore.h | 3 |
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 |