diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-21 10:51:12 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-21 10:51:12 +0100 |
commit | cf91df49d0eadfdc7dec23fd82da9e7b9a964ea6 (patch) | |
tree | 33cdbf0e1f5148baeb050f34ae82d85ef557fcad /common | |
parent | 4f1edeb042b9d4cfe8efe5baa0f57f4eb950fd86 (diff) | |
download | sink-cf91df49d0eadfdc7dec23fd82da9e7b9a964ea6.tar.gz sink-cf91df49d0eadfdc7dec23fd82da9e7b9a964ea6.zip |
Create buffer with values from domain object
Diffstat (limited to 'common')
-rw-r--r-- | common/clientapi.h | 2 | ||||
-rw-r--r-- | common/domain/event.fbs | 1 | ||||
-rw-r--r-- | common/domainadaptor.h | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/common/clientapi.h b/common/clientapi.h index dd11a0d..546f210 100644 --- a/common/clientapi.h +++ b/common/clientapi.h | |||
@@ -227,7 +227,7 @@ public: | |||
227 | { | 227 | { |
228 | } | 228 | } |
229 | 229 | ||
230 | virtual QVariant getProperty(const QString &key){ return mAdaptor->getProperty(key); } | 230 | virtual QVariant getProperty(const QString &key) const { return mAdaptor->getProperty(key); } |
231 | virtual void setProperty(const QString &key, const QVariant &value){ mChangeSet.insert(key, value); } | 231 | virtual void setProperty(const QString &key, const QVariant &value){ mChangeSet.insert(key, value); } |
232 | 232 | ||
233 | private: | 233 | private: |
diff --git a/common/domain/event.fbs b/common/domain/event.fbs index 6865cc5..49ff270 100644 --- a/common/domain/event.fbs +++ b/common/domain/event.fbs | |||
@@ -1,6 +1,7 @@ | |||
1 | namespace Akonadi2.Domain.Buffer; | 1 | namespace Akonadi2.Domain.Buffer; |
2 | 2 | ||
3 | table Event { | 3 | table Event { |
4 | uid:string; | ||
4 | summary:string; | 5 | summary:string; |
5 | description:string; | 6 | description:string; |
6 | attachment:[ubyte]; | 7 | attachment:[ubyte]; |
diff --git a/common/domainadaptor.h b/common/domainadaptor.h index e8f586b..164c749 100644 --- a/common/domainadaptor.h +++ b/common/domainadaptor.h | |||
@@ -68,6 +68,7 @@ class DomainTypeAdaptorFactory/* <typename DomainType, LocalBuffer, ResourceBuff | |||
68 | { | 68 | { |
69 | public: | 69 | public: |
70 | virtual QSharedPointer<Akonadi2::Domain::BufferAdaptor> createAdaptor(const Akonadi2::Entity &entity) = 0; | 70 | virtual QSharedPointer<Akonadi2::Domain::BufferAdaptor> createAdaptor(const Akonadi2::Entity &entity) = 0; |
71 | virtual void createBuffer(const Akonadi2::Domain::Event &event, flatbuffers::FlatBufferBuilder &fbb) {}; | ||
71 | 72 | ||
72 | protected: | 73 | protected: |
73 | QSharedPointer<PropertyMapper<LocalBuffer> > mLocalMapper; | 74 | QSharedPointer<PropertyMapper<LocalBuffer> > mLocalMapper; |