diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-12 16:02:10 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-12 16:02:10 +0200 |
commit | e85967518b9041e9943ec5f1765c6694bb153840 (patch) | |
tree | 0f4c8a87a0788c67fbe7c11414c0d96a7f863d11 /dummyresource/domainadaptor.h | |
parent | ea348c62fdebe1d9c6531fc4491d3316a1e941df (diff) | |
download | sink-e85967518b9041e9943ec5f1765c6694bb153840.tar.gz sink-e85967518b9041e9943ec5f1765c6694bb153840.zip |
More generic domainadpator code.
This should cover read and write for entites that have a 1:1 mapping to the
resource buffers.
Diffstat (limited to 'dummyresource/domainadaptor.h')
-rw-r--r-- | dummyresource/domainadaptor.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/dummyresource/domainadaptor.h b/dummyresource/domainadaptor.h index 39028c9..9d351e7 100644 --- a/dummyresource/domainadaptor.h +++ b/dummyresource/domainadaptor.h | |||
@@ -5,14 +5,10 @@ | |||
5 | #include "dummycalendar_generated.h" | 5 | #include "dummycalendar_generated.h" |
6 | #include "entity_generated.h" | 6 | #include "entity_generated.h" |
7 | 7 | ||
8 | class DummyEventAdaptorFactory : public DomainTypeAdaptorFactory<Akonadi2::ApplicationDomain::Event, Akonadi2::ApplicationDomain::Buffer::Event, DummyCalendar::DummyEvent> | 8 | class DummyEventAdaptorFactory : public DomainTypeAdaptorFactory<Akonadi2::ApplicationDomain::Event, Akonadi2::ApplicationDomain::Buffer::Event, DummyCalendar::DummyEvent, Akonadi2::ApplicationDomain::Buffer::EventBuilder, DummyCalendar::DummyEventBuilder> |
9 | { | 9 | { |
10 | public: | 10 | public: |
11 | DummyEventAdaptorFactory(); | 11 | DummyEventAdaptorFactory(); |
12 | virtual ~DummyEventAdaptorFactory() {}; | 12 | virtual ~DummyEventAdaptorFactory() {}; |
13 | virtual void createBuffer(const Akonadi2::ApplicationDomain::Event &event, flatbuffers::FlatBufferBuilder &fbb); | 13 | virtual void createBuffer(const Akonadi2::ApplicationDomain::Event &event, flatbuffers::FlatBufferBuilder &fbb); |
14 | |||
15 | private: | ||
16 | QSharedPointer<WritePropertyMapper<DummyCalendar::DummyEventBuilder> > mResourceWriteMapper; | ||
17 | QSharedPointer<WritePropertyMapper<Akonadi2::ApplicationDomain::Buffer::EventBuilder> > mLocalWriteMapper; | ||
18 | }; | 14 | }; |