diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-27 13:18:05 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-27 13:18:05 +0100 |
commit | 0bcde6de2ecce96a31c0b409481f660bb9e91582 (patch) | |
tree | 7b9b84f329a960772718756ebd9600a711919620 | |
parent | ebc4205d78a367f834e61cae2df4cb9c65541013 (diff) | |
download | sink-0bcde6de2ecce96a31c0b409481f660bb9e91582.tar.gz sink-0bcde6de2ecce96a31c0b409481f660bb9e91582.zip |
Made the sync request struct public.
Differential Revision: https://phabricator.kde.org/D6961
-rw-r--r-- | common/synchronizer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/synchronizer.h b/common/synchronizer.h index bd03ba3..590b939 100644 --- a/common/synchronizer.h +++ b/common/synchronizer.h | |||
@@ -123,6 +123,7 @@ protected: | |||
123 | 123 | ||
124 | virtual KAsync::Job<void> synchronizeWithSource(const Sink::QueryBase &query) = 0; | 124 | virtual KAsync::Job<void> synchronizeWithSource(const Sink::QueryBase &query) = 0; |
125 | 125 | ||
126 | public: | ||
126 | struct SyncRequest { | 127 | struct SyncRequest { |
127 | enum RequestType { | 128 | enum RequestType { |
128 | Synchronization, | 129 | Synchronization, |
@@ -172,6 +173,7 @@ protected: | |||
172 | QByteArrayList applicableEntities; | 173 | QByteArrayList applicableEntities; |
173 | }; | 174 | }; |
174 | 175 | ||
176 | protected: | ||
175 | /** | 177 | /** |
176 | * This allows the synchronizer to turn a single query into multiple synchronization requests. | 178 | * This allows the synchronizer to turn a single query into multiple synchronization requests. |
177 | * | 179 | * |
@@ -203,7 +205,6 @@ protected: | |||
203 | */ | 205 | */ |
204 | virtual void reportProgress(int progress, int total, const QByteArrayList &entities = {}) Q_DECL_OVERRIDE; | 206 | virtual void reportProgress(int progress, int total, const QByteArrayList &entities = {}) Q_DECL_OVERRIDE; |
205 | 207 | ||
206 | protected: | ||
207 | Sink::Log::Context mLogCtx; | 208 | Sink::Log::Context mLogCtx; |
208 | 209 | ||
209 | private: | 210 | private: |