summaryrefslogtreecommitdiffstats
path: root/common/genericresource.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-29 10:02:58 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-29 10:02:58 +0100
commit8355323c285584940d81157f2596855f99996977 (patch)
tree9edfba869cc726515bd281a05548b2c50f8c860b /common/genericresource.cpp
parent664fb0fbfd21a25d1f86938a186f6ec9cea6d882 (diff)
downloadsink-8355323c285584940d81157f2596855f99996977.tar.gz
sink-8355323c285584940d81157f2596855f99996977.zip
Renamed Processor to CommandProcessor
Diffstat (limited to 'common/genericresource.cpp')
-rw-r--r--common/genericresource.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/genericresource.cpp b/common/genericresource.cpp
index a6213d7..1af9226 100644
--- a/common/genericresource.cpp
+++ b/common/genericresource.cpp
@@ -104,11 +104,11 @@ private:
104/** 104/**
105 * Drives the pipeline using the output from all command queues 105 * Drives the pipeline using the output from all command queues
106 */ 106 */
107class Processor : public QObject 107class CommandProcessor : public QObject
108{ 108{
109 Q_OBJECT 109 Q_OBJECT
110public: 110public:
111 Processor(Akonadi2::Pipeline *pipeline, QList<MessageQueue*> commandQueues) 111 CommandProcessor(Akonadi2::Pipeline *pipeline, QList<MessageQueue*> commandQueues)
112 : QObject(), 112 : QObject(),
113 mPipeline(pipeline), 113 mPipeline(pipeline),
114 mCommandQueues(commandQueues), 114 mCommandQueues(commandQueues),
@@ -120,7 +120,7 @@ public:
120 mPipeline->commit(); 120 mPipeline->commit();
121 121
122 for (auto queue : mCommandQueues) { 122 for (auto queue : mCommandQueues) {
123 const bool ret = connect(queue, &MessageQueue::messageReady, this, &Processor::process); 123 const bool ret = connect(queue, &MessageQueue::messageReady, this, &CommandProcessor::process);
124 Q_UNUSED(ret); 124 Q_UNUSED(ret);
125 } 125 }
126 } 126 }
@@ -273,8 +273,8 @@ GenericResource::GenericResource(const QByteArray &resourceInstanceIdentifier, c
273 mError(0), 273 mError(0),
274 mClientLowerBoundRevision(std::numeric_limits<qint64>::max()) 274 mClientLowerBoundRevision(std::numeric_limits<qint64>::max())
275{ 275{
276 mProcessor = new Processor(mPipeline.data(), QList<MessageQueue*>() << &mUserQueue << &mSynchronizerQueue); 276 mProcessor = new CommandProcessor(mPipeline.data(), QList<MessageQueue*>() << &mUserQueue << &mSynchronizerQueue);
277 QObject::connect(mProcessor, &Processor::error, [this](int errorCode, const QString &msg) { onProcessorError(errorCode, msg); }); 277 QObject::connect(mProcessor, &CommandProcessor::error, [this](int errorCode, const QString &msg) { onProcessorError(errorCode, msg); });
278 QObject::connect(mPipeline.data(), &Pipeline::revisionUpdated, this, &Resource::revisionUpdated); 278 QObject::connect(mPipeline.data(), &Pipeline::revisionUpdated, this, &Resource::revisionUpdated);
279 mSourceChangeReplay = new ChangeReplay(resourceInstanceIdentifier, [this](const QByteArray &type, const QByteArray &key, const QByteArray &value) { 279 mSourceChangeReplay = new ChangeReplay(resourceInstanceIdentifier, [this](const QByteArray &type, const QByteArray &key, const QByteArray &value) {
280 return this->replay(type, key, value); 280 return this->replay(type, key, value);