From edbb4c9c82e34e90ad15ad151901e65c2c2cfb66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Nicole?= Date: Wed, 11 Apr 2018 10:37:57 +0200 Subject: Add EndTime and Ical attributes to Event Summary: EndTime is necessary for the implementation of the calendar UI in Kube. Fixes T8482 Ical to mimic Mail's MimeMessage attribute. (Sorry for the wait, there was a good number of merge conflicts when rebasing on develop) Reviewers: cmollekopf Reviewed By: cmollekopf Tags: #sink Maniphest Tasks: T8482 Differential Revision: https://phabricator.kde.org/D12085 --- examples/caldavresource/caldavresource.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/caldavresource/caldavresource.cpp b/examples/caldavresource/caldavresource.cpp index 2bcdfa1..57f030b 100644 --- a/examples/caldavresource/caldavresource.cpp +++ b/examples/caldavresource/caldavresource.cpp @@ -66,7 +66,8 @@ protected: { const auto &rid = resourceID(remoteItem); - auto incidence = KCalCore::ICalFormat().fromString(remoteItem.data()); + auto ical = remoteItem.data(); + auto incidence = KCalCore::ICalFormat().fromString(ical); using Type = KCalCore::IncidenceBase::IncidenceType; @@ -79,6 +80,8 @@ protected: localEvent.setSummary(remoteEvent.summary()); localEvent.setDescription(remoteEvent.description()); localEvent.setStartTime(remoteEvent.dtStart()); + localEvent.setEndTime(remoteEvent.dtEnd()); + localEvent.setIcal(ical); localEvent.setCalendar(calendarLocalId); SinkTrace() << "Found an event:" << localEvent.getSummary() << "with id:" << rid; -- cgit v1.2.3