diff options
Diffstat (limited to 'examples/caldavresource/caldavresource.cpp')
-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; |