diff options
author | Rémi Nicole <nicole@kolabsystems.com> | 2018-05-06 17:42:37 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-06 17:52:51 +0200 |
commit | 90a8d33f7c17c802730fd9b978db0e32d28a7dff (patch) | |
tree | d270feeb64815da8de3ffb544b14af362424c279 /common/synchronizer.cpp | |
parent | 3d998856895f0e82a4d0eadd398dafbe1d027e34 (diff) | |
download | sink-90a8d33f7c17c802730fd9b978db0e32d28a7dff.tar.gz sink-90a8d33f7c17c802730fd9b978db0e32d28a7dff.zip |
Implement Todo entity type
Summary:
Some notes:
- Needed to specialize some flatbuffers related functions for serializing QStringList and int
- Removed useless qWarnings in caldav test
- Rename EventSynchronizer -> CalDAVSynchronizer since it also synchronizes Calendars and Todos (and more to come!)
Reviewers: cmollekopf
Tags: #sink
Differential Revision: https://phabricator.kde.org/D12695
Diffstat (limited to 'common/synchronizer.cpp')
-rw-r--r-- | common/synchronizer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/synchronizer.cpp b/common/synchronizer.cpp index fa16002..1a5810d 100644 --- a/common/synchronizer.cpp +++ b/common/synchronizer.cpp | |||
@@ -634,6 +634,8 @@ KAsync::Job<void> Synchronizer::replay(const QByteArray &type, const QByteArray | |||
634 | job = replay(store().readEntity<ApplicationDomain::Addressbook>(key), operation, oldRemoteId, modifiedProperties); | 634 | job = replay(store().readEntity<ApplicationDomain::Addressbook>(key), operation, oldRemoteId, modifiedProperties); |
635 | } else if (type == ApplicationDomain::getTypeName<ApplicationDomain::Event>()) { | 635 | } else if (type == ApplicationDomain::getTypeName<ApplicationDomain::Event>()) { |
636 | job = replay(store().readEntity<ApplicationDomain::Event>(key), operation, oldRemoteId, modifiedProperties); | 636 | job = replay(store().readEntity<ApplicationDomain::Event>(key), operation, oldRemoteId, modifiedProperties); |
637 | } else if (type == ApplicationDomain::getTypeName<ApplicationDomain::Todo>()) { | ||
638 | job = replay(store().readEntity<ApplicationDomain::Todo>(key), operation, oldRemoteId, modifiedProperties); | ||
637 | } else if (type == ApplicationDomain::getTypeName<ApplicationDomain::Calendar>()) { | 639 | } else if (type == ApplicationDomain::getTypeName<ApplicationDomain::Calendar>()) { |
638 | job = replay(store().readEntity<ApplicationDomain::Calendar>(key), operation, oldRemoteId, modifiedProperties); | 640 | job = replay(store().readEntity<ApplicationDomain::Calendar>(key), operation, oldRemoteId, modifiedProperties); |
639 | } else { | 641 | } else { |
@@ -697,6 +699,11 @@ KAsync::Job<QByteArray> Synchronizer::replay(const ApplicationDomain::Event &, S | |||
697 | return KAsync::null<QByteArray>(); | 699 | return KAsync::null<QByteArray>(); |
698 | } | 700 | } |
699 | 701 | ||
702 | KAsync::Job<QByteArray> Synchronizer::replay(const ApplicationDomain::Todo &, Sink::Operation, const QByteArray &, const QList<QByteArray> &) | ||
703 | { | ||
704 | return KAsync::null<QByteArray>(); | ||
705 | } | ||
706 | |||
700 | KAsync::Job<QByteArray> Synchronizer::replay(const ApplicationDomain::Calendar &, Sink::Operation, const QByteArray &, const QList<QByteArray> &) | 707 | KAsync::Job<QByteArray> Synchronizer::replay(const ApplicationDomain::Calendar &, Sink::Operation, const QByteArray &, const QList<QByteArray> &) |
701 | { | 708 | { |
702 | return KAsync::null<QByteArray>(); | 709 | return KAsync::null<QByteArray>(); |