diff options
author | Rémi Nicole <nicole@kolabsystems.com> | 2018-03-27 18:26:11 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-03-27 18:26:15 +0200 |
commit | 761328989492db9bd603c2d7f1134d20e485d2f6 (patch) | |
tree | 0e3b4517dd2000fb1cc2738bbb22a3e54dfffb6f /examples/dummyresource/resourcefactory.cpp | |
parent | 80afd7070f2d8e57cab2fe55fef611623fdb75f0 (diff) | |
download | sink-761328989492db9bd603c2d7f1134d20e485d2f6.tar.gz sink-761328989492db9bd603c2d7f1134d20e485d2f6.zip |
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
Diffstat (limited to 'examples/dummyresource/resourcefactory.cpp')
-rw-r--r-- | examples/dummyresource/resourcefactory.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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 { | |||
54 | 54 | ||
55 | Sink::ApplicationDomain::Event::Ptr createEvent(const QByteArray &ridBuffer, const QMap<QString, QVariant> &data) | 55 | Sink::ApplicationDomain::Event::Ptr createEvent(const QByteArray &ridBuffer, const QMap<QString, QVariant> &data) |
56 | { | 56 | { |
57 | static uint8_t rawData[100]; | ||
58 | auto event = Sink::ApplicationDomain::Event::Ptr::create(); | 57 | auto event = Sink::ApplicationDomain::Event::Ptr::create(); |
59 | event->setSummary(data.value("summary").toString()); | 58 | event->setSummary(data.value("summary").toString()); |
60 | event->setProperty("remoteId", ridBuffer); | 59 | event->setProperty("remoteId", ridBuffer); |
61 | event->setDescription(data.value("description").toString()); | 60 | event->setDescription(data.value("description").toString()); |
62 | event->setAttachment(QByteArray::fromRawData(reinterpret_cast<const char*>(rawData), 100)); | ||
63 | return event; | 61 | return event; |
64 | } | 62 | } |
65 | 63 | ||