diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-10 15:49:48 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-10 15:49:48 +0200 |
commit | 638e75d6f3d00fb473fd45e325fcfb34c6340c65 (patch) | |
tree | 4db057d7dff07c9e03cf5a732c660e705c17327a /common/synchronizer.h | |
parent | ce0feb3ef62c9438b0aedd601461cbb340faa021 (diff) | |
download | sink-638e75d6f3d00fb473fd45e325fcfb34c6340c65.tar.gz sink-638e75d6f3d00fb473fd45e325fcfb34c6340c65.zip |
Create the drafts folder if necessary and merge it with the source
version
Diffstat (limited to 'common/synchronizer.h')
-rw-r--r-- | common/synchronizer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/synchronizer.h b/common/synchronizer.h index 17e7003..8442aa2 100644 --- a/common/synchronizer.h +++ b/common/synchronizer.h | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <QObject> | 23 | #include <QObject> |
24 | #include <Async/Async> | 24 | #include <Async/Async> |
25 | #include <domainadaptor.h> | 25 | #include <domainadaptor.h> |
26 | #include <query.h> | ||
26 | 27 | ||
27 | #include "storage.h" | 28 | #include "storage.h" |
28 | 29 | ||
@@ -81,6 +82,8 @@ protected: | |||
81 | * Depending on whether the entity is locally available, or has changed. | 82 | * Depending on whether the entity is locally available, or has changed. |
82 | */ | 83 | */ |
83 | void createOrModify(const QByteArray &bufferType, const QByteArray &remoteId, const Sink::ApplicationDomain::ApplicationDomainType &entity); | 84 | void createOrModify(const QByteArray &bufferType, const QByteArray &remoteId, const Sink::ApplicationDomain::ApplicationDomainType &entity); |
85 | template <typename DomainType> | ||
86 | void createOrModify(const QByteArray &bufferType, const QByteArray &remoteId, const DomainType &entity, const QHash<QByteArray, Sink::Query::Comparator> &mergeCriteria); | ||
84 | 87 | ||
85 | virtual KAsync::Job<void> synchronizeWithSource() = 0; | 88 | virtual KAsync::Job<void> synchronizeWithSource() = 0; |
86 | 89 | ||