diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-28 00:24:53 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-28 00:24:53 +0200 |
commit | e9c75177590d8546ebd9425f16c4269a9c92f517 (patch) | |
tree | 8a953631e467d9df50657e22bd90954b7b71c990 /common/resource.h | |
parent | 8f01eb530262d1442fc4fa0782a41e052412d43b (diff) | |
download | sink-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.h | 2 |
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 | ||
27 | namespace Sink { | 27 | namespace Sink { |
28 | class FacadeFactory; | 28 | class FacadeFactory; |
29 | class 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 ®istry) {}; | ||
84 | 86 | ||
85 | private: | 87 | private: |
86 | class Private; | 88 | class Private; |