diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-08 21:34:06 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-08 21:34:06 +0100 |
commit | 44744e281a56488c7ef257e12ca379ec4ceb2cdd (patch) | |
tree | 5fd45d6c6cf5e68ba2323fac3f498c6afa6f2ddf /examples/dummyresource/resourcefactory.cpp | |
parent | d82f0f6e52b601c3067ca70183458f5ce9b22c22 (diff) | |
download | sink-44744e281a56488c7ef257e12ca379ec4ceb2cdd.tar.gz sink-44744e281a56488c7ef257e12ca379ec4ceb2cdd.zip |
Executed database removal in the resource instead of the client.
The resource doesn't really notify all clients properly about the
removal, but the tests all still pass.
Diffstat (limited to 'examples/dummyresource/resourcefactory.cpp')
-rw-r--r-- | examples/dummyresource/resourcefactory.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp index 31633d7..36866ec 100644 --- a/examples/dummyresource/resourcefactory.cpp +++ b/examples/dummyresource/resourcefactory.cpp | |||
@@ -128,6 +128,11 @@ KAsync::Job<void> DummyResource::replay(Sink::Storage &synchronizationStore, con | |||
128 | return KAsync::null<void>(); | 128 | return KAsync::null<void>(); |
129 | } | 129 | } |
130 | 130 | ||
131 | void DummyResource::removeDataFromDisk() | ||
132 | { | ||
133 | removeFromDisk(mResourceInstanceIdentifier); | ||
134 | } | ||
135 | |||
131 | void DummyResource::removeFromDisk(const QByteArray &instanceIdentifier) | 136 | void DummyResource::removeFromDisk(const QByteArray &instanceIdentifier) |
132 | { | 137 | { |
133 | GenericResource::removeFromDisk(instanceIdentifier); | 138 | GenericResource::removeFromDisk(instanceIdentifier); |