summaryrefslogtreecommitdiffstats
path: root/common/clientapi.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-08 21:34:06 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-08 21:34:06 +0100
commit44744e281a56488c7ef257e12ca379ec4ceb2cdd (patch)
tree5fd45d6c6cf5e68ba2323fac3f498c6afa6f2ddf /common/clientapi.h
parentd82f0f6e52b601c3067ca70183458f5ce9b22c22 (diff)
downloadsink-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 'common/clientapi.h')
-rw-r--r--common/clientapi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/clientapi.h b/common/clientapi.h
index d0910df..45c5390 100644
--- a/common/clientapi.h
+++ b/common/clientapi.h
@@ -110,6 +110,11 @@ public:
110 */ 110 */
111 static void removeFromDisk(const QByteArray &resourceIdentifier); 111 static void removeFromDisk(const QByteArray &resourceIdentifier);
112 112
113 /**
114 * Removes a resource from disk.
115 */
116 static KAsync::Job<void> removeDataFromDisk(const QByteArray &resourceIdentifier);
117
113 template <class DomainType> 118 template <class DomainType>
114 static KAsync::Job<DomainType> fetchOne(const Sink::Query &query); 119 static KAsync::Job<DomainType> fetchOne(const Sink::Query &query);
115 120