From 77562cdae63e0ec7b09e8ece6af97165ba9e48dd Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 3 Jun 2016 12:41:07 +0200 Subject: A way to retrieve the last revision during changereplay. --- common/sourcewriteback.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/sourcewriteback.h') diff --git a/common/sourcewriteback.h b/common/sourcewriteback.h index 6c6eaab..9fe5c66 100644 --- a/common/sourcewriteback.h +++ b/common/sourcewriteback.h @@ -48,6 +48,12 @@ protected: //Read/Write access to sync storage RemoteIdMap &syncStore(); + template + T getPrevious(const T &entity) + { + return store().readPrevious(entity.identifier(), entity.revision()); + } + private: //Read only access to main storage EntityStore &store(); -- cgit v1.2.3