summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-14 01:50:18 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-14 01:50:18 +0200
commitcd2bc8a5d124faf46a9944e6d04feb140b66e54e (patch)
treeaae548b5e888ff67380a56eb10188a1190d00ca2
parent8146bd3276c4b26018814446803dac7aa944797c (diff)
downloadsink-cd2bc8a5d124faf46a9944e6d04feb140b66e54e.tar.gz
sink-cd2bc8a5d124faf46a9944e6d04feb140b66e54e.zip
Allow passing in the metadata
Perhaps this should also happen in the form of properties?
-rw-r--r--common/domainadaptor.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/domainadaptor.h b/common/domainadaptor.h
index 48a0507..f275d5a 100644
--- a/common/domainadaptor.h
+++ b/common/domainadaptor.h
@@ -128,7 +128,7 @@ public:
128 typedef QSharedPointer<DomainTypeAdaptorFactoryInterface> Ptr; 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 Akonadi2::ApplicationDomain::ApplicationDomainType &domainType, flatbuffers::FlatBufferBuilder &fbb) = 0; 131 virtual void createBuffer(const Akonadi2::ApplicationDomain::ApplicationDomainType &domainType, flatbuffers::FlatBufferBuilder &fbb, void const *metadataData = 0, size_t metadataSize = 0) = 0;
132}; 132};
133 133
134/** 134/**
@@ -169,7 +169,7 @@ public:
169 return adaptor; 169 return adaptor;
170 } 170 }
171 171
172 virtual void createBuffer(const Akonadi2::ApplicationDomain::ApplicationDomainType &domainObject, flatbuffers::FlatBufferBuilder &fbb) Q_DECL_OVERRIDE 172 virtual void createBuffer(const Akonadi2::ApplicationDomain::ApplicationDomainType &domainObject, flatbuffers::FlatBufferBuilder &fbb, void const *metadataData = 0, size_t metadataSize = 0) Q_DECL_OVERRIDE
173 { 173 {
174 flatbuffers::FlatBufferBuilder localFbb; 174 flatbuffers::FlatBufferBuilder localFbb;
175 if (mLocalWriteMapper) { 175 if (mLocalWriteMapper) {
@@ -181,7 +181,7 @@ public:
181 createBufferPartBuffer<ResourceBuffer, ResourceBuilder>(domainObject, resFbb, *mResourceWriteMapper); 181 createBufferPartBuffer<ResourceBuffer, ResourceBuilder>(domainObject, resFbb, *mResourceWriteMapper);
182 } 182 }
183 183
184 Akonadi2::EntityBuffer::assembleEntityBuffer(fbb, 0, 0, resFbb.GetBufferPointer(), resFbb.GetSize(), localFbb.GetBufferPointer(), localFbb.GetSize()); 184 Akonadi2::EntityBuffer::assembleEntityBuffer(fbb, metadataData, metadataSize, resFbb.GetBufferPointer(), resFbb.GetSize(), localFbb.GetBufferPointer(), localFbb.GetSize());
185 } 185 }
186 186
187 187