From 761328989492db9bd603c2d7f1134d20e485d2f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Nicole?= Date: Tue, 27 Mar 2018 18:26:11 +0200 Subject: Add CalDAV support Summary: Notes: - Add a `webdavcommon` folder for WebDAV generic resource code - Move `davresource` to `carddaveresource` and make it use the WebDAV code - For now it tests the CalDAV resource directly on KolabNow (to be changed) - Only synchronization, not adding / changing / removing WebDAV collections or items (to be implemented) - Only events are currently supported (todo, freebusy, etc. are to be implemented but should be straightforward) Fixes T8224 Reviewers: cmollekopf Tags: #sink Maniphest Tasks: T8224 Differential Revision: https://phabricator.kde.org/D11741 --- examples/dummyresource/resourcefactory.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'examples/dummyresource') diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp index 275371d..cfce6e4 100644 --- a/examples/dummyresource/resourcefactory.cpp +++ b/examples/dummyresource/resourcefactory.cpp @@ -54,12 +54,10 @@ class DummySynchronizer : public Sink::Synchronizer { Sink::ApplicationDomain::Event::Ptr createEvent(const QByteArray &ridBuffer, const QMap &data) { - static uint8_t rawData[100]; auto event = Sink::ApplicationDomain::Event::Ptr::create(); event->setSummary(data.value("summary").toString()); event->setProperty("remoteId", ridBuffer); event->setDescription(data.value("description").toString()); - event->setAttachment(QByteArray::fromRawData(reinterpret_cast(rawData), 100)); return event; } -- cgit v1.2.3