summaryrefslogtreecommitdiffstats
path: root/common/facade.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/facade.h')
-rw-r--r--common/facade.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/facade.h b/common/facade.h
index c25464f..a85b1de 100644
--- a/common/facade.h
+++ b/common/facade.h
@@ -19,6 +19,7 @@
19 19
20#pragma once 20#pragma once
21 21
22#include "sink_export.h"
22#include "facadeinterface.h" 23#include "facadeinterface.h"
23 24
24#include <QByteArray> 25#include <QByteArray>
@@ -43,7 +44,7 @@ namespace Sink {
43 * Additionally a resource only has to provide a synchronizer plugin to execute the synchronization 44 * Additionally a resource only has to provide a synchronizer plugin to execute the synchronization
44 */ 45 */
45template <typename DomainType> 46template <typename DomainType>
46class GenericFacade: public Sink::StoreFacade<DomainType> 47class SINK_EXPORT GenericFacade: public Sink::StoreFacade<DomainType>
47{ 48{
48public: 49public:
49 /** 50 /**
@@ -59,9 +60,10 @@ public:
59 KAsync::Job<void> create(const DomainType &domainObject) Q_DECL_OVERRIDE; 60 KAsync::Job<void> create(const DomainType &domainObject) Q_DECL_OVERRIDE;
60 KAsync::Job<void> modify(const DomainType &domainObject) Q_DECL_OVERRIDE; 61 KAsync::Job<void> modify(const DomainType &domainObject) Q_DECL_OVERRIDE;
61 KAsync::Job<void> remove(const DomainType &domainObject) Q_DECL_OVERRIDE; 62 KAsync::Job<void> remove(const DomainType &domainObject) Q_DECL_OVERRIDE;
62 QPair<KAsync::Job<void>, typename ResultEmitter<typename DomainType::Ptr>::Ptr> load(const Sink::Query &query) Q_DECL_OVERRIDE; 63 virtual QPair<KAsync::Job<void>, typename ResultEmitter<typename DomainType::Ptr>::Ptr> load(const Sink::Query &query) Q_DECL_OVERRIDE;
63 64
64protected: 65protected:
66 std::function<void(Sink::ApplicationDomain::ApplicationDomainType &domainObject)> mResultTransformation;
65 //TODO use one resource access instance per application & per resource 67 //TODO use one resource access instance per application & per resource
66 QSharedPointer<Sink::ResourceAccessInterface> mResourceAccess; 68 QSharedPointer<Sink::ResourceAccessInterface> mResourceAccess;
67 DomainTypeAdaptorFactoryInterface::Ptr mDomainTypeAdaptorFactory; 69 DomainTypeAdaptorFactoryInterface::Ptr mDomainTypeAdaptorFactory;