diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2014-12-21 22:20:31 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2014-12-21 22:20:31 +0100 |
commit | d80ff84c28c0be626c1df4528741cddf5a55f547 (patch) | |
tree | dfa1a3771f52970bfaf7b9e56d8675aeabfc65ef /dummyresource/facade.h | |
parent | d21aa4e35fb96fa3b07888f710cbc3440af8bdd3 (diff) | |
download | sink-d80ff84c28c0be626c1df4528741cddf5a55f547.tar.gz sink-d80ff84c28c0be626c1df4528741cddf5a55f547.zip |
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).
Diffstat (limited to 'dummyresource/facade.h')
-rw-r--r-- | dummyresource/facade.h | 9 |
1 files changed, 6 insertions, 3 deletions
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 @@ | |||
22 | #include "common/clientapi.h" | 22 | #include "common/clientapi.h" |
23 | #include "common/storage.h" | 23 | #include "common/storage.h" |
24 | 24 | ||
25 | class ResourceAccess; | 25 | namespace Akonadi2 { |
26 | class ResourceAccess; | ||
27 | } | ||
26 | 28 | ||
27 | class DummyResourceFacade : public Akonadi2::StoreFacade<Akonadi2::Domain::Event> | 29 | class DummyResourceFacade : public Akonadi2::StoreFacade<Akonadi2::Domain::Event> |
28 | { | 30 | { |
@@ -32,8 +34,9 @@ public: | |||
32 | virtual void create(const Akonadi2::Domain::Event &domainObject); | 34 | virtual void create(const Akonadi2::Domain::Event &domainObject); |
33 | virtual void modify(const Akonadi2::Domain::Event &domainObject); | 35 | virtual void modify(const Akonadi2::Domain::Event &domainObject); |
34 | virtual void remove(const Akonadi2::Domain::Event &domainObject); | 36 | virtual void remove(const Akonadi2::Domain::Event &domainObject); |
35 | virtual void load(const Akonadi2::Query &query, const std::function<void(const Akonadi2::Domain::Event::Ptr &)> &resultCallback); | 37 | virtual void load(const Akonadi2::Query &query, const std::function<void(const Akonadi2::Domain::Event::Ptr &)> &resultCallback, const std::function<void()> &completeCallback); |
36 | 38 | ||
37 | private: | 39 | private: |
38 | QSharedPointer<ResourceAccess> mResourceAccess; | 40 | void synchronizeResource(const std::function<void()> &continuation); |
41 | QSharedPointer<Akonadi2::ResourceAccess> mResourceAccess; | ||
39 | }; | 42 | }; |