diff options
author | Rémi Nicole <nicole@kolabsystems.com> | 2018-04-11 10:37:57 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-11 10:38:22 +0200 |
commit | edbb4c9c82e34e90ad15ad151901e65c2c2cfb66 (patch) | |
tree | 6b5a9a73c3b6c012f9d7ad4ee03b9ddda61ec367 /examples | |
parent | 1d85b3c794b1e9b7c91b9536f79d4b469a2ffcb0 (diff) | |
download | sink-edbb4c9c82e34e90ad15ad151901e65c2c2cfb66.tar.gz sink-edbb4c9c82e34e90ad15ad151901e65c2c2cfb66.zip |
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
Diffstat (limited to 'examples')
-rw-r--r-- | examples/caldavresource/caldavresource.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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: | |||
66 | { | 66 | { |
67 | const auto &rid = resourceID(remoteItem); | 67 | const auto &rid = resourceID(remoteItem); |
68 | 68 | ||
69 | auto incidence = KCalCore::ICalFormat().fromString(remoteItem.data()); | 69 | auto ical = remoteItem.data(); |
70 | auto incidence = KCalCore::ICalFormat().fromString(ical); | ||
70 | 71 | ||
71 | using Type = KCalCore::IncidenceBase::IncidenceType; | 72 | using Type = KCalCore::IncidenceBase::IncidenceType; |
72 | 73 | ||
@@ -79,6 +80,8 @@ protected: | |||
79 | localEvent.setSummary(remoteEvent.summary()); | 80 | localEvent.setSummary(remoteEvent.summary()); |
80 | localEvent.setDescription(remoteEvent.description()); | 81 | localEvent.setDescription(remoteEvent.description()); |
81 | localEvent.setStartTime(remoteEvent.dtStart()); | 82 | localEvent.setStartTime(remoteEvent.dtStart()); |
83 | localEvent.setEndTime(remoteEvent.dtEnd()); | ||
84 | localEvent.setIcal(ical); | ||
82 | localEvent.setCalendar(calendarLocalId); | 85 | localEvent.setCalendar(calendarLocalId); |
83 | 86 | ||
84 | SinkTrace() << "Found an event:" << localEvent.getSummary() << "with id:" << rid; | 87 | SinkTrace() << "Found an event:" << localEvent.getSummary() << "with id:" << rid; |