diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-04 11:40:24 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-04 11:40:24 +0200 |
commit | 6adf9a4734f15a2c0fa199897f76ded4659b83b7 (patch) | |
tree | 9f9c22c28e897f973d70dba29ae41bc92be51ce6 /examples | |
parent | feef3bd5c1562a52c274fa07af51c716e5362054 (diff) | |
download | sink-6adf9a4734f15a2c0fa199897f76ded4659b83b7.tar.gz sink-6adf9a4734f15a2c0fa199897f76ded4659b83b7.zip |
Added progress notification
Diffstat (limited to 'examples')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index 8e6d2b1..5aa18dd 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -324,7 +324,7 @@ public: | |||
324 | synchronizeMails(folderRemoteId, m); | 324 | synchronizeMails(folderRemoteId, m); |
325 | }, | 325 | }, |
326 | [this, maxUid, folder](int progress, int total) { | 326 | [this, maxUid, folder](int progress, int total) { |
327 | SinkLog() << "Progress: " << progress << " out of " << total; | 327 | reportProgress(progress, total); |
328 | //commit every 10 messages | 328 | //commit every 10 messages |
329 | if ((progress % 10) == 0) { | 329 | if ((progress % 10) == 0) { |
330 | commit(); | 330 | commit(); |
@@ -365,7 +365,7 @@ public: | |||
365 | synchronizeMails(folderRemoteId, m); | 365 | synchronizeMails(folderRemoteId, m); |
366 | }, | 366 | }, |
367 | [=](int progress, int total) { | 367 | [=](int progress, int total) { |
368 | SinkLogCtx(mLogCtx) << "Progress: " << progress << " out of " << total; | 368 | reportProgress(progress, total); |
369 | //commit every 100 messages | 369 | //commit every 100 messages |
370 | if ((progress % 100) == 0) { | 370 | if ((progress % 100) == 0) { |
371 | commit(); | 371 | commit(); |