summaryrefslogtreecommitdiffstats
path: root/common/domain/typeimplementations.h
diff options
context:
space:
mode:
authorRémi Nicole <nicole@kolabsystems.com>2018-03-27 18:26:11 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-27 18:26:15 +0200
commit761328989492db9bd603c2d7f1134d20e485d2f6 (patch)
tree0e3b4517dd2000fb1cc2738bbb22a3e54dfffb6f /common/domain/typeimplementations.h
parent80afd7070f2d8e57cab2fe55fef611623fdb75f0 (diff)
downloadsink-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/typeimplementations.h')
-rw-r--r--common/domain/typeimplementations.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/domain/typeimplementations.h b/common/domain/typeimplementations.h
index d36dfc1..7a8a602 100644
--- a/common/domain/typeimplementations.h
+++ b/common/domain/typeimplementations.h
@@ -23,6 +23,7 @@
23#include "mail_generated.h" 23#include "mail_generated.h"
24#include "folder_generated.h" 24#include "folder_generated.h"
25#include "event_generated.h" 25#include "event_generated.h"
26#include "calendar_generated.h"
26#include "contact_generated.h" 27#include "contact_generated.h"
27#include "addressbook_generated.h" 28#include "addressbook_generated.h"
28 29
@@ -94,5 +95,16 @@ public:
94 static QMap<QByteArray, int> typeDatabases(); 95 static QMap<QByteArray, int> typeDatabases();
95}; 96};
96 97
98template<>
99class TypeImplementation<Sink::ApplicationDomain::Calendar> {
100public:
101 typedef Sink::ApplicationDomain::Buffer::Calendar Buffer;
102 typedef Sink::ApplicationDomain::Buffer::CalendarBuilder BufferBuilder;
103 static void configure(TypeIndex &);
104 static void configure(PropertyMapper &);
105 static void configure(IndexPropertyMapper &indexPropertyMapper);
106 static QMap<QByteArray, int> typeDatabases();
107};
108
97} 109}
98} 110}