diff options
Diffstat (limited to 'examples/caldavresource/caldavresource.cpp')
-rw-r--r-- | examples/caldavresource/caldavresource.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/caldavresource/caldavresource.cpp b/examples/caldavresource/caldavresource.cpp index 57f030b..6bf1a27 100644 --- a/examples/caldavresource/caldavresource.cpp +++ b/examples/caldavresource/caldavresource.cpp | |||
@@ -24,6 +24,7 @@ | |||
24 | #include "adaptorfactoryregistry.h" | 24 | #include "adaptorfactoryregistry.h" |
25 | #include "applicationdomaintype.h" | 25 | #include "applicationdomaintype.h" |
26 | #include "domainadaptor.h" | 26 | #include "domainadaptor.h" |
27 | #include "eventpreprocessor.h" | ||
27 | #include "facade.h" | 28 | #include "facade.h" |
28 | #include "facadefactory.h" | 29 | #include "facadefactory.h" |
29 | 30 | ||
@@ -76,11 +77,6 @@ protected: | |||
76 | auto remoteEvent = dynamic_cast<const KCalCore::Event &>(*incidence); | 77 | auto remoteEvent = dynamic_cast<const KCalCore::Event &>(*incidence); |
77 | 78 | ||
78 | Event localEvent; | 79 | Event localEvent; |
79 | localEvent.setUid(remoteEvent.uid()); | ||
80 | localEvent.setSummary(remoteEvent.summary()); | ||
81 | localEvent.setDescription(remoteEvent.description()); | ||
82 | localEvent.setStartTime(remoteEvent.dtStart()); | ||
83 | localEvent.setEndTime(remoteEvent.dtEnd()); | ||
84 | localEvent.setIcal(ical); | 80 | localEvent.setIcal(ical); |
85 | localEvent.setCalendar(calendarLocalId); | 81 | localEvent.setCalendar(calendarLocalId); |
86 | 82 | ||
@@ -119,7 +115,7 @@ CalDavResource::CalDavResource(const Sink::ResourceContext &context) | |||
119 | auto synchronizer = QSharedPointer<EventSynchronizer>::create(context); | 115 | auto synchronizer = QSharedPointer<EventSynchronizer>::create(context); |
120 | setupSynchronizer(synchronizer); | 116 | setupSynchronizer(synchronizer); |
121 | 117 | ||
122 | // setupPreprocessors(ENTITY_TYPE_EVENT, QVector<Sink::Preprocessor*>() << new EventPropertyExtractor); | 118 | setupPreprocessors(ENTITY_TYPE_EVENT, QVector<Sink::Preprocessor*>() << new EventPropertyExtractor); |
123 | } | 119 | } |
124 | 120 | ||
125 | CalDavResourceFactory::CalDavResourceFactory(QObject *parent) | 121 | CalDavResourceFactory::CalDavResourceFactory(QObject *parent) |