diff options
Diffstat (limited to 'common/resourceaccess.cpp')
-rw-r--r-- | common/resourceaccess.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 73a01ca..5d067c5 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "common/commandcompletion_generated.h" | 25 | #include "common/commandcompletion_generated.h" |
26 | #include "common/handshake_generated.h" | 26 | #include "common/handshake_generated.h" |
27 | #include "common/revisionupdate_generated.h" | 27 | #include "common/revisionupdate_generated.h" |
28 | #include "common/synchronize_generated.h" | ||
28 | 29 | ||
29 | #include <QCoreApplication> | 30 | #include <QCoreApplication> |
30 | #include <QDebug> | 31 | #include <QDebug> |
@@ -186,9 +187,12 @@ Async::Job<void> ResourceAccess::sendCommand(int commandId, flatbuffers::FlatBu | |||
186 | }); | 187 | }); |
187 | } | 188 | } |
188 | 189 | ||
189 | Async::Job<void> ResourceAccess::synchronizeResource() | 190 | Async::Job<void> ResourceAccess::synchronizeResource(bool sourceSync, bool localSync) |
190 | { | 191 | { |
191 | return sendCommand(Commands::SynchronizeCommand); | 192 | auto command = Akonadi2::CreateSynchronize(d->fbb, sourceSync, localSync); |
193 | Akonadi2::FinishSynchronizeBuffer(d->fbb, command); | ||
194 | return sendCommand(Commands::SynchronizeCommand, d->fbb); | ||
195 | d->fbb.Clear(); | ||
192 | } | 196 | } |
193 | 197 | ||
194 | void ResourceAccess::open() | 198 | void ResourceAccess::open() |