summaryrefslogtreecommitdiffstats
path: root/common/sourcewriteback.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/sourcewriteback.h')
-rw-r--r--common/sourcewriteback.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/common/sourcewriteback.h b/common/sourcewriteback.h
index 8031573..327d1ad 100644
--- a/common/sourcewriteback.h
+++ b/common/sourcewriteback.h
@@ -25,6 +25,7 @@
25#include "storage.h" 25#include "storage.h"
26#include "entitystore.h" 26#include "entitystore.h"
27#include "remoteidmap.h" 27#include "remoteidmap.h"
28#include "metadata_generated.h"
28 29
29namespace Sink { 30namespace Sink {
30 31
@@ -34,7 +35,7 @@ namespace Sink {
34class SINK_EXPORT SourceWriteBack : public ChangeReplay 35class SINK_EXPORT SourceWriteBack : public ChangeReplay
35{ 36{
36public: 37public:
37 SourceWriteBack(const QByteArray &resourceType,const QByteArray &resourceInstanceIdentifier); 38 SourceWriteBack(const ResourceContext &resourceContext);
38 39
39protected: 40protected:
40 ///Base implementation calls the replay$Type calls 41 ///Base implementation calls the replay$Type calls
@@ -58,12 +59,12 @@ protected:
58private: 59private:
59 //Read only access to main storage 60 //Read only access to main storage
60 EntityStore &store(); 61 EntityStore &store();
61 62 ResourceContext mResourceContext;
62 Sink::Storage mSyncStorage; 63 Sink::Storage::DataStore mSyncStorage;
63 QSharedPointer<RemoteIdMap> mSyncStore; 64 QSharedPointer<RemoteIdMap> mSyncStore;
64 QSharedPointer<EntityStore> mEntityStore; 65 QSharedPointer<Storage::EntityStore> mEntityStore;
65 Sink::Storage::Transaction mTransaction; 66 QSharedPointer<EntityStore> mEntityStoreWrapper;
66 Sink::Storage::Transaction mSyncTransaction; 67 Sink::Storage::DataStore::Transaction mSyncTransaction;
67 QByteArray mResourceType; 68 QByteArray mResourceType;
68 QByteArray mResourceInstanceIdentifier; 69 QByteArray mResourceInstanceIdentifier;
69}; 70};