summaryrefslogtreecommitdiffstats
path: root/common/resultset.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/resultset.h')
-rw-r--r--common/resultset.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/resultset.h b/common/resultset.h
index 88f7055..4e934fc 100644
--- a/common/resultset.h
+++ b/common/resultset.h
@@ -20,8 +20,8 @@
20 20
21#include <QVector> 21#include <QVector>
22#include <functional> 22#include <functional>
23#include "domain/applicationdomaintype.h"
24#include "metadata_generated.h" 23#include "metadata_generated.h"
24#include "entitybuffer.h"
25 25
26/* 26/*
27 * An iterator to a result set. 27 * An iterator to a result set.
@@ -31,7 +31,8 @@
31class ResultSet 31class ResultSet
32{ 32{
33public: 33public:
34 typedef std::function<bool(std::function<void(const Sink::ApplicationDomain::ApplicationDomainType::Ptr &, Sink::Operation)>)> ValueGenerator; 34 typedef std::function<void(const QByteArray &uid, const Sink::EntityBuffer &, Sink::Operation)> Callback;
35 typedef std::function<bool(Callback)> ValueGenerator;
35 typedef std::function<QByteArray()> IdGenerator; 36 typedef std::function<QByteArray()> IdGenerator;
36 typedef std::function<void()> SkipValue; 37 typedef std::function<void()> SkipValue;
37 38
@@ -42,7 +43,7 @@ public:
42 ResultSet(const ResultSet &other); 43 ResultSet(const ResultSet &other);
43 44
44 bool next(); 45 bool next();
45 bool next(std::function<bool(const Sink::ApplicationDomain::ApplicationDomainType::Ptr &value, Sink::Operation)> callback); 46 bool next(const Callback &callback);
46 47
47 void skip(int number); 48 void skip(int number);
48 49