From de9e304c724b5de421a231bcc449a6f3dd0eb48b Mon Sep 17 00:00:00 2001 From: Minijackson Date: Mon, 30 Apr 2018 13:48:50 +0200 Subject: Add replay of events --- common/synchronizer.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'common/synchronizer.cpp') diff --git a/common/synchronizer.cpp b/common/synchronizer.cpp index aa4f030..fa16002 100644 --- a/common/synchronizer.cpp +++ b/common/synchronizer.cpp @@ -632,6 +632,10 @@ KAsync::Job Synchronizer::replay(const QByteArray &type, const QByteArray job = replay(store().readEntity(key), operation, oldRemoteId, modifiedProperties); } else if (type == ApplicationDomain::getTypeName()) { job = replay(store().readEntity(key), operation, oldRemoteId, modifiedProperties); + } else if (type == ApplicationDomain::getTypeName()) { + job = replay(store().readEntity(key), operation, oldRemoteId, modifiedProperties); + } else if (type == ApplicationDomain::getTypeName()) { + job = replay(store().readEntity(key), operation, oldRemoteId, modifiedProperties); } else { SinkErrorCtx(mLogCtx) << "Replayed unknown type: " << type; } @@ -688,6 +692,16 @@ KAsync::Job Synchronizer::replay(const ApplicationDomain::Folder &, return KAsync::null(); } +KAsync::Job Synchronizer::replay(const ApplicationDomain::Event &, Sink::Operation, const QByteArray &, const QList &) +{ + return KAsync::null(); +} + +KAsync::Job Synchronizer::replay(const ApplicationDomain::Calendar &, Sink::Operation, const QByteArray &, const QList &) +{ + return KAsync::null(); +} + bool Synchronizer::allChangesReplayed() { if (!mSyncRequestQueue.isEmpty()) { -- cgit v1.2.3