summaryrefslogtreecommitdiffstats
path: root/common/resource.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-28 00:24:53 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-28 00:24:53 +0200
commite9c75177590d8546ebd9425f16c4269a9c92f517 (patch)
tree8a953631e467d9df50657e22bd90954b7b71c990 /common/resource.h
parent8f01eb530262d1442fc4fa0782a41e052412d43b (diff)
downloadsink-e9c75177590d8546ebd9425f16c4269a9c92f517.tar.gz
sink-e9c75177590d8546ebd9425f16c4269a9c92f517.zip
Refactored the generic resource to use separate classes for
changereplay and synchronization. This cleans up the API and avoids the excessive passing around of transactions. It also provides more flexibility in eventually using different synchronization strategies for different resources.
Diffstat (limited to 'common/resource.h')
-rw-r--r--common/resource.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/resource.h b/common/resource.h
index 0e7cd11..d6c3c5f 100644
--- a/common/resource.h
+++ b/common/resource.h
@@ -26,6 +26,7 @@
26 26
27namespace Sink { 27namespace Sink {
28class FacadeFactory; 28class FacadeFactory;
29class AdaptorFactoryRegistry;
29 30
30/** 31/**
31 * Resource interface 32 * Resource interface
@@ -81,6 +82,7 @@ public:
81 82
82 virtual Resource *createResource(const QByteArray &instanceIdentifier) = 0; 83 virtual Resource *createResource(const QByteArray &instanceIdentifier) = 0;
83 virtual void registerFacades(FacadeFactory &factory) = 0; 84 virtual void registerFacades(FacadeFactory &factory) = 0;
85 virtual void registerAdaptorFactories(AdaptorFactoryRegistry &registry) {};
84 86
85private: 87private:
86 class Private; 88 class Private;