diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-02 12:08:48 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-02 12:08:48 +0200 |
commit | ef8fcadb0c0ad4af055262a4dd9c37d4905cc0fa (patch) | |
tree | 441238d6b9e443212f99af6792cea8daee8ff561 /examples/dummyresource/facade.h | |
parent | 4eb94786232aee936cd6371824764705c9359538 (diff) | |
download | sink-ef8fcadb0c0ad4af055262a4dd9c37d4905cc0fa.tar.gz sink-ef8fcadb0c0ad4af055262a4dd9c37d4905cc0fa.zip |
Generalized facade code.
A default implementation is now nothing but an empty shell.
Diffstat (limited to 'examples/dummyresource/facade.h')
-rw-r--r-- | examples/dummyresource/facade.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/examples/dummyresource/facade.h b/examples/dummyresource/facade.h index 7c894f1..441dc38 100644 --- a/examples/dummyresource/facade.h +++ b/examples/dummyresource/facade.h | |||
@@ -20,22 +20,11 @@ | |||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "common/facade.h" | 22 | #include "common/facade.h" |
23 | 23 | #include "common/domain/event.h" | |
24 | #include "common/clientapi.h" | ||
25 | #include "common/storage.h" | ||
26 | #include "resourcefactory.h" | ||
27 | #include "entity_generated.h" | ||
28 | #include "event_generated.h" | ||
29 | #include "dummycalendar_generated.h" | ||
30 | #include "common/domainadaptor.h" | ||
31 | 24 | ||
32 | class DummyResourceFacade : public Akonadi2::GenericFacade<Akonadi2::ApplicationDomain::Event> | 25 | class DummyResourceFacade : public Akonadi2::GenericFacade<Akonadi2::ApplicationDomain::Event> |
33 | { | 26 | { |
34 | public: | 27 | public: |
35 | DummyResourceFacade(); | 28 | DummyResourceFacade(); |
36 | virtual ~DummyResourceFacade(); | 29 | virtual ~DummyResourceFacade(); |
37 | KAsync::Job<qint64> load(const Akonadi2::Query &query, const QSharedPointer<Akonadi2::ResultProvider<Akonadi2::ApplicationDomain::Event::Ptr> > &resultProvider, qint64 oldRevision, qint64 newRevision) Q_DECL_OVERRIDE; | ||
38 | |||
39 | private: | ||
40 | void readValue(const QSharedPointer<Akonadi2::Storage> &storage, const QByteArray &key, const std::function<void(const Akonadi2::ApplicationDomain::Event::Ptr &)> &resultCallback); | ||
41 | }; | 30 | }; |