diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h @@ -401,6 +401,7 @@ SINK_EXTRACTED_PROPERTY(QString, Description, description); SINK_EXTRACTED_PROPERTY(QDateTime, StartTime, startTime); SINK_EXTRACTED_PROPERTY(QDateTime, EndTime, endTime); + SINK_EXTRACTED_PROPERTY(bool, AllDay, allDay); SINK_PROPERTY(QByteArray, Ical, ical); SINK_REFERENCE_PROPERTY(Calendar, Calendar, calendar); }; diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp @@ -129,6 +129,7 @@ SINK_REGISTER_PROPERTY(Event, Description); SINK_REGISTER_PROPERTY(Event, StartTime); SINK_REGISTER_PROPERTY(Event, EndTime); +SINK_REGISTER_PROPERTY(Event, AllDay); SINK_REGISTER_PROPERTY(Event, Ical); SINK_REGISTER_PROPERTY(Event, Calendar); diff --git a/common/domain/event.fbs b/common/domain/event.fbs --- a/common/domain/event.fbs +++ b/common/domain/event.fbs @@ -6,6 +6,7 @@ description:string; startTime:string; endTime:string; + allDay:bool; ical:string; calendar:string; } diff --git a/common/domain/typeimplementations.cpp b/common/domain/typeimplementations.cpp --- a/common/domain/typeimplementations.cpp +++ b/common/domain/typeimplementations.cpp @@ -212,6 +212,7 @@ SINK_REGISTER_SERIALIZER(propertyMapper, Event, Uid, uid); SINK_REGISTER_SERIALIZER(propertyMapper, Event, StartTime, startTime); SINK_REGISTER_SERIALIZER(propertyMapper, Event, EndTime, endTime); + SINK_REGISTER_SERIALIZER(propertyMapper, Event, AllDay, allDay); SINK_REGISTER_SERIALIZER(propertyMapper, Event, Ical, ical); SINK_REGISTER_SERIALIZER(propertyMapper, Event, Calendar, calendar); } diff --git a/common/eventpreprocessor.cpp b/common/eventpreprocessor.cpp --- a/common/eventpreprocessor.cpp +++ b/common/eventpreprocessor.cpp @@ -47,6 +47,7 @@ event.setExtractedDescription(icalEvent->description()); event.setExtractedStartTime(icalEvent->dtStart()); event.setExtractedEndTime(icalEvent->dtEnd()); + event.setExtractedAllDay(icalEvent->allDay()); } void EventPropertyExtractor::newEntity(Event &event)