From cd2bc8a5d124faf46a9944e6d04feb140b66e54e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 14 Jul 2015 01:50:18 +0200 Subject: Allow passing in the metadata Perhaps this should also happen in the form of properties? --- common/domainadaptor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common') 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: typedef QSharedPointer Ptr; virtual ~DomainTypeAdaptorFactoryInterface() {}; virtual QSharedPointer createAdaptor(const Akonadi2::Entity &entity) = 0; - virtual void createBuffer(const Akonadi2::ApplicationDomain::ApplicationDomainType &domainType, flatbuffers::FlatBufferBuilder &fbb) = 0; + virtual void createBuffer(const Akonadi2::ApplicationDomain::ApplicationDomainType &domainType, flatbuffers::FlatBufferBuilder &fbb, void const *metadataData = 0, size_t metadataSize = 0) = 0; }; /** @@ -169,7 +169,7 @@ public: return adaptor; } - virtual void createBuffer(const Akonadi2::ApplicationDomain::ApplicationDomainType &domainObject, flatbuffers::FlatBufferBuilder &fbb) Q_DECL_OVERRIDE + virtual void createBuffer(const Akonadi2::ApplicationDomain::ApplicationDomainType &domainObject, flatbuffers::FlatBufferBuilder &fbb, void const *metadataData = 0, size_t metadataSize = 0) Q_DECL_OVERRIDE { flatbuffers::FlatBufferBuilder localFbb; if (mLocalWriteMapper) { @@ -181,7 +181,7 @@ public: createBufferPartBuffer(domainObject, resFbb, *mResourceWriteMapper); } - Akonadi2::EntityBuffer::assembleEntityBuffer(fbb, 0, 0, resFbb.GetBufferPointer(), resFbb.GetSize(), localFbb.GetBufferPointer(), localFbb.GetSize()); + Akonadi2::EntityBuffer::assembleEntityBuffer(fbb, metadataData, metadataSize, resFbb.GetBufferPointer(), resFbb.GetSize(), localFbb.GetBufferPointer(), localFbb.GetSize()); } -- cgit v1.2.3