diff options
Diffstat (limited to 'dummyresource/facade.h')
-rw-r--r-- | dummyresource/facade.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/dummyresource/facade.h b/dummyresource/facade.h index 1f69161..195c50f 100644 --- a/dummyresource/facade.h +++ b/dummyresource/facade.h | |||
@@ -19,6 +19,8 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include "common/facade.h" | ||
23 | |||
22 | #include "common/clientapi.h" | 24 | #include "common/clientapi.h" |
23 | #include "common/storage.h" | 25 | #include "common/storage.h" |
24 | #include "resourcefactory.h" | 26 | #include "resourcefactory.h" |
@@ -27,12 +29,7 @@ | |||
27 | #include "dummycalendar_generated.h" | 29 | #include "dummycalendar_generated.h" |
28 | #include "common/domainadaptor.h" | 30 | #include "common/domainadaptor.h" |
29 | 31 | ||
30 | namespace Akonadi2 { | 32 | class DummyResourceFacade : public Akonadi2::GenericFacade<Akonadi2::Domain::Event> |
31 | class ResourceAccess; | ||
32 | } | ||
33 | |||
34 | |||
35 | class DummyResourceFacade : public Akonadi2::StoreFacade<Akonadi2::Domain::Event> | ||
36 | { | 33 | { |
37 | public: | 34 | public: |
38 | DummyResourceFacade(); | 35 | DummyResourceFacade(); |
@@ -44,7 +41,5 @@ public: | |||
44 | 41 | ||
45 | private: | 42 | private: |
46 | void readValue(QSharedPointer<Akonadi2::Storage> storage, const QByteArray &key, const std::function<void(const Akonadi2::Domain::Event::Ptr &)> &resultCallback, std::function<bool(const std::string &key, DummyCalendar::DummyEvent const *buffer, Akonadi2::Domain::Buffer::Event const *local)>); | 43 | void readValue(QSharedPointer<Akonadi2::Storage> storage, const QByteArray &key, const std::function<void(const Akonadi2::Domain::Event::Ptr &)> &resultCallback, std::function<bool(const std::string &key, DummyCalendar::DummyEvent const *buffer, Akonadi2::Domain::Buffer::Event const *local)>); |
47 | Async::Job<void> synchronizeResource(bool sync, bool processAll); | ||
48 | QSharedPointer<Akonadi2::ResourceAccess> mResourceAccess; | ||
49 | QSharedPointer<DomainTypeAdaptorFactory<Akonadi2::Domain::Event, Akonadi2::Domain::Buffer::Event, DummyCalendar::DummyEvent> > mFactory; | 44 | QSharedPointer<DomainTypeAdaptorFactory<Akonadi2::Domain::Event, Akonadi2::Domain::Buffer::Event, DummyCalendar::DummyEvent> > mFactory; |
50 | }; | 45 | }; |