diff options
Diffstat (limited to 'dummyresource/resourcefactory.cpp')
-rw-r--r-- | dummyresource/resourcefactory.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dummyresource/resourcefactory.cpp b/dummyresource/resourcefactory.cpp index 18083cb..f510cd5 100644 --- a/dummyresource/resourcefactory.cpp +++ b/dummyresource/resourcefactory.cpp | |||
@@ -387,7 +387,14 @@ Async::Job<void> DummyResource::synchronizeWithSource(Akonadi2::Pipeline *pipeli | |||
387 | } | 387 | } |
388 | } | 388 | } |
389 | //TODO find items to remove | 389 | //TODO find items to remove |
390 | qDebug() << "sync complete"; | ||
391 | f.setFinished(); | ||
392 | }); | ||
393 | } | ||
390 | 394 | ||
395 | Async::Job<void> DummyResource::processAllMessages() | ||
396 | { | ||
397 | return Async::start<void>([this](Async::Future<void> &f) { | ||
391 | //We have to wait for all items to be processed to ensure the synced items are available when a query gets executed. | 398 | //We have to wait for all items to be processed to ensure the synced items are available when a query gets executed. |
392 | //TODO: report errors while processing sync? | 399 | //TODO: report errors while processing sync? |
393 | if (mSynchronizerQueue.isEmpty()) { | 400 | if (mSynchronizerQueue.isEmpty()) { |