From dd6196206f87086a636677da55cf5c300a8e932a Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 19 Jan 2015 19:26:14 +0100 Subject: Fixed sync, detect errors during sync, wait until sync items are processed until signalling completion. --- dummyresource/resourcefactory.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dummyresource/resourcefactory.h') diff --git a/dummyresource/resourcefactory.h b/dummyresource/resourcefactory.h index 6043fb6..767eba1 100644 --- a/dummyresource/resourcefactory.h +++ b/dummyresource/resourcefactory.h @@ -37,13 +37,16 @@ public: Async::Job synchronizeWithSource(Akonadi2::Pipeline *pipeline); void processCommand(int commandId, const QByteArray &data, uint size, Akonadi2::Pipeline *pipeline); void configurePipeline(Akonadi2::Pipeline *pipeline); + int error() const; private: + void onProcessorError(int errorCode, const QString &errorMessage); void enqueueCommand(MessageQueue &mq, int commandId, const QByteArray &data); flatbuffers::FlatBufferBuilder m_fbb; MessageQueue mUserQueue; MessageQueue mSynchronizerQueue; Processor *mProcessor; + int mError; }; class DummyResourceFactory : public Akonadi2::ResourceFactory -- cgit v1.2.3