diff options
-rw-r--r-- | common/domainadaptor.h | 6 |
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 | ||