summaryrefslogtreecommitdiffstats
path: root/common/domainadaptor.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/domainadaptor.h')
-rw-r--r--common/domainadaptor.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/domainadaptor.h b/common/domainadaptor.h
index ca89fba..48a0507 100644
--- a/common/domainadaptor.h
+++ b/common/domainadaptor.h
@@ -122,13 +122,13 @@ public:
122 QSharedPointer<ReadPropertyMapper<ResourceBuffer> > mResourceMapper; 122 QSharedPointer<ReadPropertyMapper<ResourceBuffer> > mResourceMapper;
123}; 123};
124 124
125template<typename DomainType>
126class DomainTypeAdaptorFactoryInterface 125class DomainTypeAdaptorFactoryInterface
127{ 126{
128public: 127public:
128 typedef QSharedPointer<DomainTypeAdaptorFactoryInterface> Ptr;
129 virtual ~DomainTypeAdaptorFactoryInterface() {}; 129 virtual ~DomainTypeAdaptorFactoryInterface() {};
130 virtual QSharedPointer<Akonadi2::ApplicationDomain::BufferAdaptor> createAdaptor(const Akonadi2::Entity &entity) = 0; 130 virtual QSharedPointer<Akonadi2::ApplicationDomain::BufferAdaptor> createAdaptor(const Akonadi2::Entity &entity) = 0;
131 virtual void createBuffer(const DomainType &domainType, flatbuffers::FlatBufferBuilder &fbb) = 0; 131 virtual void createBuffer(const Akonadi2::ApplicationDomain::ApplicationDomainType &domainType, flatbuffers::FlatBufferBuilder &fbb) = 0;
132}; 132};
133 133
134/** 134/**
@@ -137,7 +137,7 @@ public:
137 * This is required by the facade the read the value, and by the pipeline preprocessors to access the domain values in a generic way. 137 * This is required by the facade the read the value, and by the pipeline preprocessors to access the domain values in a generic way.
138 */ 138 */
139template<typename DomainType, typename ResourceBuffer, typename ResourceBuilder> 139template<typename DomainType, typename ResourceBuffer, typename ResourceBuilder>
140class DomainTypeAdaptorFactory : public DomainTypeAdaptorFactoryInterface<DomainType> 140class DomainTypeAdaptorFactory : public DomainTypeAdaptorFactoryInterface
141{ 141{
142 typedef typename Akonadi2::ApplicationDomain::TypeImplementation<DomainType>::Buffer LocalBuffer; 142 typedef typename Akonadi2::ApplicationDomain::TypeImplementation<DomainType>::Buffer LocalBuffer;
143 typedef typename Akonadi2::ApplicationDomain::TypeImplementation<DomainType>::BufferBuilder LocalBuilder; 143 typedef typename Akonadi2::ApplicationDomain::TypeImplementation<DomainType>::BufferBuilder LocalBuilder;
@@ -169,7 +169,7 @@ public:
169 return adaptor; 169 return adaptor;
170 } 170 }
171 171
172 virtual void createBuffer(const DomainType &domainObject, flatbuffers::FlatBufferBuilder &fbb) Q_DECL_OVERRIDE 172 virtual void createBuffer(const Akonadi2::ApplicationDomain::ApplicationDomainType &domainObject, flatbuffers::FlatBufferBuilder &fbb) Q_DECL_OVERRIDE
173 { 173 {
174 flatbuffers::FlatBufferBuilder localFbb; 174 flatbuffers::FlatBufferBuilder localFbb;
175 if (mLocalWriteMapper) { 175 if (mLocalWriteMapper) {