diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-20 16:02:38 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-20 16:02:38 +0100 |
commit | 1864024012213dc0a17c76e9755bf50a19944ec7 (patch) | |
tree | 06690c35c05c29deec30a3dd412d4043e2c956a3 /common/resultset.h | |
parent | 6625bb5a2145008ad47ae963e1546714b7342bf0 (diff) | |
download | sink-1864024012213dc0a17c76e9755bf50a19944ec7.tar.gz sink-1864024012213dc0a17c76e9755bf50a19944ec7.zip |
Report when we don't have any more to fetch.
... so we can use that information in fetchMore.
Diffstat (limited to 'common/resultset.h')
-rw-r--r-- | common/resultset.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/resultset.h b/common/resultset.h index 4f2c278..db7d1e0 100644 --- a/common/resultset.h +++ b/common/resultset.h | |||
@@ -55,7 +55,11 @@ public: | |||
55 | 55 | ||
56 | void skip(int number); | 56 | void skip(int number); |
57 | 57 | ||
58 | qint64 replaySet(int offset, int batchSize, const Callback &callback); | 58 | struct ReplayResult { |
59 | qint64 replayedEntities; | ||
60 | bool replayedAll; | ||
61 | }; | ||
62 | ReplayResult replaySet(int offset, int batchSize, const Callback &callback); | ||
59 | 63 | ||
60 | QByteArray id(); | 64 | QByteArray id(); |
61 | 65 | ||