From 3fc8ce958fc244e64a3a3a92f3b1440aae04133b Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 25 Jan 2015 11:23:08 +0100 Subject: A way to ensure all messages have been processed. As queries become reactive this should become less important. We can then just wait until all results become available. For tests it is in either case useful though. --- dummyresource/resourcefactory.h | 1 + 1 file changed, 1 insertion(+) (limited to 'dummyresource/resourcefactory.h') diff --git a/dummyresource/resourcefactory.h b/dummyresource/resourcefactory.h index 767eba1..3b99d5e 100644 --- a/dummyresource/resourcefactory.h +++ b/dummyresource/resourcefactory.h @@ -35,6 +35,7 @@ class DummyResource : public Akonadi2::Resource public: DummyResource(); Async::Job synchronizeWithSource(Akonadi2::Pipeline *pipeline); + Async::Job processAllMessages(); void processCommand(int commandId, const QByteArray &data, uint size, Akonadi2::Pipeline *pipeline); void configurePipeline(Akonadi2::Pipeline *pipeline); int error() const; -- cgit v1.2.3