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 /common/domain/applicationdomaintype.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 'common/domain/applicationdomaintype.cpp')
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index ff2990d..9a213dd 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp | |||
@@ -395,7 +395,15 @@ SinkResource ImapResource::create(const QByteArray &account) | |||
395 | SinkResource CardDavResource::create(const QByteArray &account) | 395 | SinkResource CardDavResource::create(const QByteArray &account) |
396 | { | 396 | { |
397 | auto &&resource = ApplicationDomainType::createEntity<SinkResource>(); | 397 | auto &&resource = ApplicationDomainType::createEntity<SinkResource>(); |
398 | resource.setResourceType("sink.dav"); | 398 | resource.setResourceType("sink.carddav"); |
399 | resource.setAccount(account); | ||
400 | return resource; | ||
401 | } | ||
402 | |||
403 | SinkResource CalDavResource::create(const QByteArray &account) | ||
404 | { | ||
405 | auto &&resource = ApplicationDomainType::createEntity<SinkResource>(); | ||
406 | resource.setResourceType("sink.caldav"); | ||
399 | resource.setAccount(account); | 407 | resource.setAccount(account); |
400 | return resource; | 408 | return resource; |
401 | } | 409 | } |