diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2014-12-24 02:15:41 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2014-12-24 02:15:41 +0100 |
commit | c83c2ef64b5a1e4b1dc0102df36687caebb96ff0 (patch) | |
tree | 7d0567996c02e9a1ea5909abbab5f68401fd4771 /common/pipeline.h | |
parent | d80ff84c28c0be626c1df4528741cddf5a55f547 (diff) | |
download | sink-c83c2ef64b5a1e4b1dc0102df36687caebb96ff0.tar.gz sink-c83c2ef64b5a1e4b1dc0102df36687caebb96ff0.zip |
unifying buffer, and a better way to implement domain object adapters.
Diffstat (limited to 'common/pipeline.h')
-rw-r--r-- | common/pipeline.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/pipeline.h b/common/pipeline.h index d7048ff..159cc1c 100644 --- a/common/pipeline.h +++ b/common/pipeline.h | |||
@@ -46,10 +46,11 @@ public: | |||
46 | 46 | ||
47 | Storage &storage() const; | 47 | Storage &storage() const; |
48 | 48 | ||
49 | // domain objects needed here | ||
50 | void null(); | 49 | void null(); |
51 | void newEntity(const QByteArray &key, flatbuffers::FlatBufferBuilder &entity); | 50 | //FIXME We should probably directly provide a DomainTypeAdapter here. The data has already been written and we only need to read it for processing. And we need to read all buffers. |
52 | void modifiedEntity(const QByteArray &key, flatbuffers::FlatBufferBuilder &entityDelta); | 51 | void newEntity(const QByteArray &key, void *resourceBufferData, size_t size); |
52 | //TODO Send local buffer data as well? | ||
53 | void modifiedEntity(const QByteArray &key, void *data, size_t size); | ||
53 | void deletedEntity(const QByteArray &key); | 54 | void deletedEntity(const QByteArray &key); |
54 | 55 | ||
55 | Q_SIGNALS: | 56 | Q_SIGNALS: |
@@ -72,7 +73,6 @@ private: | |||
72 | class AKONADI2COMMON_EXPORT PipelineState | 73 | class AKONADI2COMMON_EXPORT PipelineState |
73 | { | 74 | { |
74 | public: | 75 | public: |
75 | // domain objects? | ||
76 | PipelineState(); | 76 | PipelineState(); |
77 | PipelineState(Pipeline *pipeline, Pipeline::Type type, const QByteArray &key, const QVector<Preprocessor *> &filters); | 77 | PipelineState(Pipeline *pipeline, Pipeline::Type type, const QByteArray &key, const QVector<Preprocessor *> &filters); |
78 | PipelineState(const PipelineState &other); | 78 | PipelineState(const PipelineState &other); |