diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/clientapi.cpp | 5 | ||||
-rw-r--r-- | common/clientapi.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/common/clientapi.cpp b/common/clientapi.cpp index 40257bb..0b417d3 100644 --- a/common/clientapi.cpp +++ b/common/clientapi.cpp | |||
@@ -229,6 +229,11 @@ KAsync::Job<void> Store::flushMessageQueue(const QByteArrayList &resourceIdentif | |||
229 | .template then<void>([](){}); | 229 | .template then<void>([](){}); |
230 | } | 230 | } |
231 | 231 | ||
232 | KAsync::Job<void> Store::flushReplayQueue(const QByteArrayList &resourceIdentifier) | ||
233 | { | ||
234 | return flushMessageQueue(resourceIdentifier); | ||
235 | } | ||
236 | |||
232 | template <class DomainType> | 237 | template <class DomainType> |
233 | KAsync::Job<DomainType> Store::fetchOne(const Akonadi2::Query &query) | 238 | KAsync::Job<DomainType> Store::fetchOne(const Akonadi2::Query &query) |
234 | { | 239 | { |
diff --git a/common/clientapi.h b/common/clientapi.h index 14caa7a..e1d5b8d 100644 --- a/common/clientapi.h +++ b/common/clientapi.h | |||
@@ -100,6 +100,11 @@ public: | |||
100 | static KAsync::Job<void> flushMessageQueue(const QByteArrayList &resourceIdentifier); | 100 | static KAsync::Job<void> flushMessageQueue(const QByteArrayList &resourceIdentifier); |
101 | 101 | ||
102 | /** | 102 | /** |
103 | * Flushes any pending messages that haven't been replayed to the source. | ||
104 | */ | ||
105 | static KAsync::Job<void> flushReplayQueue(const QByteArrayList &resourceIdentifier); | ||
106 | |||
107 | /** | ||
103 | * Removes a resource from disk. | 108 | * Removes a resource from disk. |
104 | */ | 109 | */ |
105 | static void removeFromDisk(const QByteArray &resourceIdentifier); | 110 | static void removeFromDisk(const QByteArray &resourceIdentifier); |