diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-10 11:14:04 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-10 11:14:04 +0100 |
commit | 382150ca27b03b912b43ad07956231497d35cfe8 (patch) | |
tree | fa84c709446b18ae527fbcefc0cd4381544c9486 /examples/dummyresource | |
parent | 49b1c5c3b342a84ec71e9b7dfd06a80b6d6e6c96 (diff) | |
download | sink-382150ca27b03b912b43ad07956231497d35cfe8.tar.gz sink-382150ca27b03b912b43ad07956231497d35cfe8.zip |
A change-replay function
Diffstat (limited to 'examples/dummyresource')
-rw-r--r-- | examples/dummyresource/resourcefactory.cpp | 6 | ||||
-rw-r--r-- | examples/dummyresource/resourcefactory.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp index 91a1229..ddae80e 100644 --- a/examples/dummyresource/resourcefactory.cpp +++ b/examples/dummyresource/resourcefactory.cpp | |||
@@ -279,6 +279,12 @@ KAsync::Job<void> DummyResource::synchronizeWithSource() | |||
279 | }); | 279 | }); |
280 | } | 280 | } |
281 | 281 | ||
282 | KAsync::Job<void> DummyResource::replay(const QByteArray &type, const QByteArray &key, const QByteArray &value) | ||
283 | { | ||
284 | Trace() << "Replaying " << key; | ||
285 | return KAsync::null<void>(); | ||
286 | } | ||
287 | |||
282 | void DummyResource::removeFromDisk(const QByteArray &instanceIdentifier) | 288 | void DummyResource::removeFromDisk(const QByteArray &instanceIdentifier) |
283 | { | 289 | { |
284 | GenericResource::removeFromDisk(instanceIdentifier); | 290 | GenericResource::removeFromDisk(instanceIdentifier); |
diff --git a/examples/dummyresource/resourcefactory.h b/examples/dummyresource/resourcefactory.h index 4144985..dc248c0 100644 --- a/examples/dummyresource/resourcefactory.h +++ b/examples/dummyresource/resourcefactory.h | |||
@@ -36,6 +36,7 @@ public: | |||
36 | KAsync::Job<void> synchronizeWithSource() Q_DECL_OVERRIDE; | 36 | KAsync::Job<void> synchronizeWithSource() Q_DECL_OVERRIDE; |
37 | static void removeFromDisk(const QByteArray &instanceIdentifier); | 37 | static void removeFromDisk(const QByteArray &instanceIdentifier); |
38 | private: | 38 | private: |
39 | KAsync::Job<void> replay(const QByteArray &type, const QByteArray &key, const QByteArray &value) Q_DECL_OVERRIDE; | ||
39 | QString resolveRemoteId(const QByteArray &type, const QString &remoteId, Akonadi2::Storage::Transaction &transaction); | 40 | QString resolveRemoteId(const QByteArray &type, const QString &remoteId, Akonadi2::Storage::Transaction &transaction); |
40 | void createEvent(const QByteArray &rid, const QMap<QString, QVariant> &data, flatbuffers::FlatBufferBuilder &entityFbb, Akonadi2::Storage::Transaction &); | 41 | void createEvent(const QByteArray &rid, const QMap<QString, QVariant> &data, flatbuffers::FlatBufferBuilder &entityFbb, Akonadi2::Storage::Transaction &); |
41 | void createMail(const QByteArray &rid, const QMap<QString, QVariant> &data, flatbuffers::FlatBufferBuilder &entityFbb, Akonadi2::Storage::Transaction &); | 42 | void createMail(const QByteArray &rid, const QMap<QString, QVariant> &data, flatbuffers::FlatBufferBuilder &entityFbb, Akonadi2::Storage::Transaction &); |