diff options
author | Rémi Nicole <nicole@kolabsystems.com> | 2018-05-14 15:08:39 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-14 15:08:59 +0200 |
commit | b11f4d47bb833e0cad14b28b036f63a876dd9bc9 (patch) | |
tree | c11679af1d2d64ad4d1e5fc694290f55074cad01 /common | |
parent | 0cb72f6370e6723a1575b6afc0eef9bfd0592738 (diff) | |
download | sink-b11f4d47bb833e0cad14b28b036f63a876dd9bc9.tar.gz sink-b11f4d47bb833e0cad14b28b036f63a876dd9bc9.zip |
Add the "allDay" property to Event
Summary: Fixes T8698
Reviewers: cmollekopf
Reviewed By: cmollekopf
Tags: #sink
Maniphest Tasks: T8698
Differential Revision: https://phabricator.kde.org/D12869
Diffstat (limited to 'common')
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 1 | ||||
-rw-r--r-- | common/domain/applicationdomaintype.h | 1 | ||||
-rw-r--r-- | common/domain/event.fbs | 1 | ||||
-rw-r--r-- | common/domain/typeimplementations.cpp | 1 | ||||
-rw-r--r-- | common/eventpreprocessor.cpp | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index b1469e1..6e22168 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp | |||
@@ -129,6 +129,7 @@ SINK_REGISTER_PROPERTY(Event, Summary); | |||
129 | SINK_REGISTER_PROPERTY(Event, Description); | 129 | SINK_REGISTER_PROPERTY(Event, Description); |
130 | SINK_REGISTER_PROPERTY(Event, StartTime); | 130 | SINK_REGISTER_PROPERTY(Event, StartTime); |
131 | SINK_REGISTER_PROPERTY(Event, EndTime); | 131 | SINK_REGISTER_PROPERTY(Event, EndTime); |
132 | SINK_REGISTER_PROPERTY(Event, AllDay); | ||
132 | SINK_REGISTER_PROPERTY(Event, Ical); | 133 | SINK_REGISTER_PROPERTY(Event, Ical); |
133 | SINK_REGISTER_PROPERTY(Event, Calendar); | 134 | SINK_REGISTER_PROPERTY(Event, Calendar); |
134 | 135 | ||
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index 93de8f5..d995b92 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -401,6 +401,7 @@ struct SINK_EXPORT Event : public Entity { | |||
401 | SINK_EXTRACTED_PROPERTY(QString, Description, description); | 401 | SINK_EXTRACTED_PROPERTY(QString, Description, description); |
402 | SINK_EXTRACTED_PROPERTY(QDateTime, StartTime, startTime); | 402 | SINK_EXTRACTED_PROPERTY(QDateTime, StartTime, startTime); |
403 | SINK_EXTRACTED_PROPERTY(QDateTime, EndTime, endTime); | 403 | SINK_EXTRACTED_PROPERTY(QDateTime, EndTime, endTime); |
404 | SINK_EXTRACTED_PROPERTY(bool, AllDay, allDay); | ||
404 | SINK_PROPERTY(QByteArray, Ical, ical); | 405 | SINK_PROPERTY(QByteArray, Ical, ical); |
405 | SINK_REFERENCE_PROPERTY(Calendar, Calendar, calendar); | 406 | SINK_REFERENCE_PROPERTY(Calendar, Calendar, calendar); |
406 | }; | 407 | }; |
diff --git a/common/domain/event.fbs b/common/domain/event.fbs index 77aaef6..9923810 100644 --- a/common/domain/event.fbs +++ b/common/domain/event.fbs | |||
@@ -6,6 +6,7 @@ table Event { | |||
6 | description:string; | 6 | description:string; |
7 | startTime:string; | 7 | startTime:string; |
8 | endTime:string; | 8 | endTime:string; |
9 | allDay:bool; | ||
9 | ical:string; | 10 | ical:string; |
10 | calendar:string; | 11 | calendar:string; |
11 | } | 12 | } |
diff --git a/common/domain/typeimplementations.cpp b/common/domain/typeimplementations.cpp index b584138..e65c998 100644 --- a/common/domain/typeimplementations.cpp +++ b/common/domain/typeimplementations.cpp | |||
@@ -212,6 +212,7 @@ void TypeImplementation<Event>::configure(PropertyMapper &propertyMapper) | |||
212 | SINK_REGISTER_SERIALIZER(propertyMapper, Event, Uid, uid); | 212 | SINK_REGISTER_SERIALIZER(propertyMapper, Event, Uid, uid); |
213 | SINK_REGISTER_SERIALIZER(propertyMapper, Event, StartTime, startTime); | 213 | SINK_REGISTER_SERIALIZER(propertyMapper, Event, StartTime, startTime); |
214 | SINK_REGISTER_SERIALIZER(propertyMapper, Event, EndTime, endTime); | 214 | SINK_REGISTER_SERIALIZER(propertyMapper, Event, EndTime, endTime); |
215 | SINK_REGISTER_SERIALIZER(propertyMapper, Event, AllDay, allDay); | ||
215 | SINK_REGISTER_SERIALIZER(propertyMapper, Event, Ical, ical); | 216 | SINK_REGISTER_SERIALIZER(propertyMapper, Event, Ical, ical); |
216 | SINK_REGISTER_SERIALIZER(propertyMapper, Event, Calendar, calendar); | 217 | SINK_REGISTER_SERIALIZER(propertyMapper, Event, Calendar, calendar); |
217 | } | 218 | } |
diff --git a/common/eventpreprocessor.cpp b/common/eventpreprocessor.cpp index e087563..9efa541 100644 --- a/common/eventpreprocessor.cpp +++ b/common/eventpreprocessor.cpp | |||
@@ -47,6 +47,7 @@ void EventPropertyExtractor::updatedIndexedProperties(Event &event, const QByteA | |||
47 | event.setExtractedDescription(icalEvent->description()); | 47 | event.setExtractedDescription(icalEvent->description()); |
48 | event.setExtractedStartTime(icalEvent->dtStart()); | 48 | event.setExtractedStartTime(icalEvent->dtStart()); |
49 | event.setExtractedEndTime(icalEvent->dtEnd()); | 49 | event.setExtractedEndTime(icalEvent->dtEnd()); |
50 | event.setExtractedAllDay(icalEvent->allDay()); | ||
50 | } | 51 | } |
51 | 52 | ||
52 | void EventPropertyExtractor::newEntity(Event &event) | 53 | void EventPropertyExtractor::newEntity(Event &event) |