diff options
author | Rémi Nicole <nicole@kolabsystems.com> | 2018-05-06 17:42:37 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-06 17:52:51 +0200 |
commit | 90a8d33f7c17c802730fd9b978db0e32d28a7dff (patch) | |
tree | d270feeb64815da8de3ffb544b14af362424c279 /common/domain/typeimplementations.h | |
parent | 3d998856895f0e82a4d0eadd398dafbe1d027e34 (diff) | |
download | sink-90a8d33f7c17c802730fd9b978db0e32d28a7dff.tar.gz sink-90a8d33f7c17c802730fd9b978db0e32d28a7dff.zip |
Implement Todo entity type
Summary:
Some notes:
- Needed to specialize some flatbuffers related functions for serializing QStringList and int
- Removed useless qWarnings in caldav test
- Rename EventSynchronizer -> CalDAVSynchronizer since it also synchronizes Calendars and Todos (and more to come!)
Reviewers: cmollekopf
Tags: #sink
Differential Revision: https://phabricator.kde.org/D12695
Diffstat (limited to 'common/domain/typeimplementations.h')
-rw-r--r-- | common/domain/typeimplementations.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/domain/typeimplementations.h b/common/domain/typeimplementations.h index 672e83a..5c6ba14 100644 --- a/common/domain/typeimplementations.h +++ b/common/domain/typeimplementations.h | |||
@@ -24,6 +24,7 @@ | |||
24 | #include "mail_generated.h" | 24 | #include "mail_generated.h" |
25 | #include "folder_generated.h" | 25 | #include "folder_generated.h" |
26 | #include "event_generated.h" | 26 | #include "event_generated.h" |
27 | #include "todo_generated.h" | ||
27 | #include "calendar_generated.h" | 28 | #include "calendar_generated.h" |
28 | #include "contact_generated.h" | 29 | #include "contact_generated.h" |
29 | #include "addressbook_generated.h" | 30 | #include "addressbook_generated.h" |
@@ -97,6 +98,17 @@ public: | |||
97 | }; | 98 | }; |
98 | 99 | ||
99 | template<> | 100 | template<> |
101 | class SINK_EXPORT TypeImplementation<Sink::ApplicationDomain::Todo> { | ||
102 | public: | ||
103 | typedef Sink::ApplicationDomain::Buffer::Todo Buffer; | ||
104 | typedef Sink::ApplicationDomain::Buffer::TodoBuilder BufferBuilder; | ||
105 | static void configure(TypeIndex &); | ||
106 | static void configure(PropertyMapper &); | ||
107 | static void configure(IndexPropertyMapper &indexPropertyMapper); | ||
108 | static QMap<QByteArray, int> typeDatabases(); | ||
109 | }; | ||
110 | |||
111 | template<> | ||
100 | class SINK_EXPORT TypeImplementation<Sink::ApplicationDomain::Calendar> { | 112 | class SINK_EXPORT TypeImplementation<Sink::ApplicationDomain::Calendar> { |
101 | public: | 113 | public: |
102 | typedef Sink::ApplicationDomain::Buffer::Calendar Buffer; | 114 | typedef Sink::ApplicationDomain::Buffer::Calendar Buffer; |