diff options
Diffstat (limited to 'dummyresource/facade.h')
-rw-r--r-- | dummyresource/facade.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/dummyresource/facade.h b/dummyresource/facade.h index 195c50f..7bef2cc 100644 --- a/dummyresource/facade.h +++ b/dummyresource/facade.h | |||
@@ -29,17 +29,17 @@ | |||
29 | #include "dummycalendar_generated.h" | 29 | #include "dummycalendar_generated.h" |
30 | #include "common/domainadaptor.h" | 30 | #include "common/domainadaptor.h" |
31 | 31 | ||
32 | class DummyResourceFacade : public Akonadi2::GenericFacade<Akonadi2::Domain::Event> | 32 | class DummyResourceFacade : public Akonadi2::GenericFacade<Akonadi2::ApplicationDomain::Event> |
33 | { | 33 | { |
34 | public: | 34 | public: |
35 | DummyResourceFacade(); | 35 | DummyResourceFacade(); |
36 | virtual ~DummyResourceFacade(); | 36 | virtual ~DummyResourceFacade(); |
37 | virtual Async::Job<void> create(const Akonadi2::Domain::Event &domainObject); | 37 | virtual Async::Job<void> create(const Akonadi2::ApplicationDomain::Event &domainObject); |
38 | virtual Async::Job<void> modify(const Akonadi2::Domain::Event &domainObject); | 38 | virtual Async::Job<void> modify(const Akonadi2::ApplicationDomain::Event &domainObject); |
39 | virtual Async::Job<void> remove(const Akonadi2::Domain::Event &domainObject); | 39 | virtual Async::Job<void> remove(const Akonadi2::ApplicationDomain::Event &domainObject); |
40 | virtual Async::Job<void> load(const Akonadi2::Query &query, const std::function<void(const Akonadi2::Domain::Event::Ptr &)> &resultCallback); | 40 | virtual Async::Job<void> load(const Akonadi2::Query &query, const std::function<void(const Akonadi2::ApplicationDomain::Event::Ptr &)> &resultCallback); |
41 | 41 | ||
42 | private: | 42 | private: |
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)>); | 43 | void readValue(QSharedPointer<Akonadi2::Storage> storage, const QByteArray &key, const std::function<void(const Akonadi2::ApplicationDomain::Event::Ptr &)> &resultCallback, std::function<bool(const std::string &key, DummyCalendar::DummyEvent const *buffer, Akonadi2::ApplicationDomain::Buffer::Event const *local)>); |
44 | QSharedPointer<DomainTypeAdaptorFactory<Akonadi2::Domain::Event, Akonadi2::Domain::Buffer::Event, DummyCalendar::DummyEvent> > mFactory; | 44 | QSharedPointer<DomainTypeAdaptorFactory<Akonadi2::ApplicationDomain::Event, Akonadi2::ApplicationDomain::Buffer::Event, DummyCalendar::DummyEvent> > mFactory; |
45 | }; | 45 | }; |