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.cpp | |
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.cpp')
-rw-r--r-- | common/resource.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/resource.cpp b/common/resource.cpp index 6713686..82c9fc8 100644 --- a/common/resource.cpp +++ b/common/resource.cpp | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <QPointer> | 26 | #include <QPointer> |
27 | 27 | ||
28 | #include "facadefactory.h" | 28 | #include "facadefactory.h" |
29 | #include "adaptorfactoryregistry.h" | ||
29 | 30 | ||
30 | namespace Sink { | 31 | namespace Sink { |
31 | 32 | ||
@@ -110,6 +111,7 @@ ResourceFactory *ResourceFactory::load(const QString &resourceName) | |||
110 | if (factory) { | 111 | if (factory) { |
111 | Private::s_loadedFactories.insert(resourceName, factory); | 112 | Private::s_loadedFactories.insert(resourceName, factory); |
112 | factory->registerFacades(FacadeFactory::instance()); | 113 | factory->registerFacades(FacadeFactory::instance()); |
114 | factory->registerAdaptorFactories(AdaptorFactoryRegistry::instance()); | ||
113 | // TODO: if we need more data on it const QJsonObject json = loader.metaData()[QStringLiteral("MetaData")].toObject(); | 115 | // TODO: if we need more data on it const QJsonObject json = loader.metaData()[QStringLiteral("MetaData")].toObject(); |
114 | return factory; | 116 | return factory; |
115 | } else { | 117 | } else { |