From d80ff84c28c0be626c1df4528741cddf5a55f547 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 21 Dec 2014 22:20:31 +0100 Subject: Write-Read loop from clientside. It's a huge hack but starts to show results. Most urgently we need: * reliable command results * the 3 buffers instead of the 1 * A way to implement storage as preprocessor (or a place to impelement it after the preprocessors). --- common/test/clientapitest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/test') diff --git a/common/test/clientapitest.cpp b/common/test/clientapitest.cpp index 2d1c238..dd634f1 100644 --- a/common/test/clientapitest.cpp +++ b/common/test/clientapitest.cpp @@ -11,12 +11,13 @@ public: virtual void create(const Akonadi2::Domain::Event &domainObject){}; virtual void modify(const Akonadi2::Domain::Event &domainObject){}; virtual void remove(const Akonadi2::Domain::Event &domainObject){}; - virtual void load(const Akonadi2::Query &query, const std::function &resultCallback) + virtual void load(const Akonadi2::Query &query, const std::function &resultCallback, const std::function &completeCallback) { qDebug() << "load called"; for(const auto &result : results) { resultCallback(result); } + completeCallback(); } QList results; -- cgit v1.2.3