summaryrefslogtreecommitdiffstats
path: root/examples/caldavresource/caldavresource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/caldavresource/caldavresource.cpp')
-rw-r--r--examples/caldavresource/caldavresource.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/caldavresource/caldavresource.cpp b/examples/caldavresource/caldavresource.cpp
index e28fbc5..d33f625 100644
--- a/examples/caldavresource/caldavresource.cpp
+++ b/examples/caldavresource/caldavresource.cpp
@@ -37,14 +37,14 @@
37 37
38using Sink::ApplicationDomain::getTypeName; 38using Sink::ApplicationDomain::getTypeName;
39 39
40class EventSynchronizer : public WebDavSynchronizer 40class CalDAVSynchronizer : public WebDavSynchronizer
41{ 41{
42 using Event = Sink::ApplicationDomain::Event; 42 using Event = Sink::ApplicationDomain::Event;
43 using Todo = Sink::ApplicationDomain::Todo; 43 using Todo = Sink::ApplicationDomain::Todo;
44 using Calendar = Sink::ApplicationDomain::Calendar; 44 using Calendar = Sink::ApplicationDomain::Calendar;
45 45
46public: 46public:
47 explicit EventSynchronizer(const Sink::ResourceContext &context) 47 explicit CalDAVSynchronizer(const Sink::ResourceContext &context)
48 : WebDavSynchronizer(context, KDAV2::CalDav, getTypeName<Calendar>(), getTypeName<Event>()) 48 : WebDavSynchronizer(context, KDAV2::CalDav, getTypeName<Calendar>(), getTypeName<Event>())
49 { 49 {
50 } 50 }
@@ -206,7 +206,7 @@ protected:
206CalDavResource::CalDavResource(const Sink::ResourceContext &context) 206CalDavResource::CalDavResource(const Sink::ResourceContext &context)
207 : Sink::GenericResource(context) 207 : Sink::GenericResource(context)
208{ 208{
209 auto synchronizer = QSharedPointer<EventSynchronizer>::create(context); 209 auto synchronizer = QSharedPointer<CalDAVSynchronizer>::create(context);
210 setupSynchronizer(synchronizer); 210 setupSynchronizer(synchronizer);
211 211
212 setupPreprocessors(ENTITY_TYPE_EVENT, QVector<Sink::Preprocessor *>() << new EventPropertyExtractor); 212 setupPreprocessors(ENTITY_TYPE_EVENT, QVector<Sink::Preprocessor *>() << new EventPropertyExtractor);