diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-20 16:15:49 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-23 17:37:53 +0200 |
commit | b187b95672fe0d8b16ba80bedd9022f1cda3a051 (patch) | |
tree | c86bf63c73eb91aca83a3d0c22be95b7a7515f0b /common/genericresource.cpp | |
parent | 4a71e5b06506af6e3ab7a7715705e76b6d6e9bb7 (diff) | |
download | sink-b187b95672fe0d8b16ba80bedd9022f1cda3a051.tar.gz sink-b187b95672fe0d8b16ba80bedd9022f1cda3a051.zip |
Pass command around as QByteArray
Simpler api, GenericResource didn't honor size anyways,
and we copy the command for now to avoid sideeffects of data coming in
in the meantime (although that should generally work since data is
always appended).
Diffstat (limited to 'common/genericresource.cpp')
-rw-r--r-- | common/genericresource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/genericresource.cpp b/common/genericresource.cpp index 5dfa9b5..ae06ef4 100644 --- a/common/genericresource.cpp +++ b/common/genericresource.cpp | |||
@@ -194,7 +194,7 @@ void GenericResource::enqueueCommand(MessageQueue &mq, int commandId, const QByt | |||
194 | mq.enqueue(m_fbb.GetBufferPointer(), m_fbb.GetSize()); | 194 | mq.enqueue(m_fbb.GetBufferPointer(), m_fbb.GetSize()); |
195 | } | 195 | } |
196 | 196 | ||
197 | void GenericResource::processCommand(int commandId, const QByteArray &data, uint size, Akonadi2::Pipeline *pipeline) | 197 | void GenericResource::processCommand(int commandId, const QByteArray &data, Akonadi2::Pipeline *pipeline) |
198 | { | 198 | { |
199 | //TODO instead of copying the command including the full entity first into the command queue, we could directly | 199 | //TODO instead of copying the command including the full entity first into the command queue, we could directly |
200 | //create a new revision, only pushing a handle into the commandqueue with the relevant changeset (for changereplay). | 200 | //create a new revision, only pushing a handle into the commandqueue with the relevant changeset (for changereplay). |