From ba7c8b890c45d735216888204ec88882ef58c918 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 19 Oct 2016 15:28:42 +0200 Subject: Ported the pipeline to the entitystore --- common/storage/entitystore.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'common/storage/entitystore.h') diff --git a/common/storage/entitystore.h b/common/storage/entitystore.h index 455e9c3..65bff50 100644 --- a/common/storage/entitystore.h +++ b/common/storage/entitystore.h @@ -38,9 +38,14 @@ public: typedef QSharedPointer Ptr; EntityStore(const ResourceContext &resourceContext); - void add(const ApplicationDomain::ApplicationDomainType &); - void modify(const ApplicationDomain::ApplicationDomainType &); - void remove(const ApplicationDomain::ApplicationDomainType &); + typedef std::function PreprocessModification; + typedef std::function PreprocessCreation; + typedef std::function PreprocessRemoval; + + bool add(const QByteArray &type, const ApplicationDomain::ApplicationDomainType &, bool replayToSource, const PreprocessCreation &); + bool modify(const QByteArray &type, const ApplicationDomain::ApplicationDomainType &, const QByteArrayList &deletions, bool replayToSource, const PreprocessModification &); + bool remove(const QByteArray &type, const QByteArray &uid, bool replayToSource, const PreprocessRemoval &); + void cleanupRevision(qint64 revision); void startTransaction(Sink::Storage::DataStore::AccessMode); void commitTransaction(); -- cgit v1.2.3