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). --- dummyresource/facade.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'dummyresource/facade.h') diff --git a/dummyresource/facade.h b/dummyresource/facade.h index f179c06..c76e62c 100644 --- a/dummyresource/facade.h +++ b/dummyresource/facade.h @@ -22,7 +22,9 @@ #include "common/clientapi.h" #include "common/storage.h" -class ResourceAccess; +namespace Akonadi2 { + class ResourceAccess; +} class DummyResourceFacade : public Akonadi2::StoreFacade { @@ -32,8 +34,9 @@ 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); private: - QSharedPointer mResourceAccess; + void synchronizeResource(const std::function &continuation); + QSharedPointer mResourceAccess; }; -- cgit v1.2.3