diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-20 15:16:43 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-15 16:14:19 +0200 |
commit | 5f127fa687079c7180142e371c86bd6dacfb845e (patch) | |
tree | 11731de3a1d626232dbba66d7c98c7db1a28940f /examples/imapresource/imapresource.cpp | |
parent | b3bb1fb9800b2d0b4d44892f4ff853e5060d975a (diff) | |
download | sink-5f127fa687079c7180142e371c86bd6dacfb845e.tar.gz sink-5f127fa687079c7180142e371c86bd6dacfb845e.zip |
Progress reporting
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index dde218a..24fd426 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -255,6 +255,9 @@ public: | |||
255 | uids << msg.uid; | 255 | uids << msg.uid; |
256 | } | 256 | } |
257 | synchronizeMails(folder.normalizedPath(), messages); | 257 | synchronizeMails(folder.normalizedPath(), messages); |
258 | }, | ||
259 | [](int progress, int total) { | ||
260 | SinkTrace() << "Progress: " << progress << " out of " << total; | ||
258 | }).exec(); | 261 | }).exec(); |
259 | messagesFuture.waitForFinished(); | 262 | messagesFuture.waitForFinished(); |
260 | commit(); | 263 | commit(); |