summaryrefslogtreecommitdiffstats
path: root/common/store.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-02-11 22:44:51 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-02-11 22:53:34 +0100
commit8740a007515dcf1b315d69ab5c64fcfd40ec980c (patch)
treea6ba6ae6a7192ce68a53e03efdeae945592c93d9 /common/store.h
parent8a4b335cd2a1735880da7e850999b88f60e9585e (diff)
downloadsink-8740a007515dcf1b315d69ab5c64fcfd40ec980c.tar.gz
sink-8740a007515dcf1b315d69ab5c64fcfd40ec980c.zip
Return feedback on wether an upgrade has happened or not.
Diffstat (limited to 'common/store.h')
-rw-r--r--common/store.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/store.h b/common/store.h
index 62858c5..fb9c3fe 100644
--- a/common/store.h
+++ b/common/store.h
@@ -120,6 +120,10 @@ KAsync::Job<void> SINK_EXPORT synchronize(const Sink::SyncScope &query);
120 */ 120 */
121KAsync::Job<void> SINK_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier); 121KAsync::Job<void> SINK_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier);
122 122
123struct UpgradeResult {
124 bool upgradeExecuted;
125};
126
123/** 127/**
124 * Run upgrade jobs. 128 * Run upgrade jobs.
125 * 129 *
@@ -130,7 +134,7 @@ KAsync::Job<void> SINK_EXPORT removeDataFromDisk(const QByteArray &resourceIdent
130 * 134 *
131 * Note: The initial implementation simply calls removeDataFromDisk for all resources. 135 * Note: The initial implementation simply calls removeDataFromDisk for all resources.
132 */ 136 */
133KAsync::Job<void> SINK_EXPORT upgrade(); 137KAsync::Job<UpgradeResult> SINK_EXPORT upgrade();
134 138
135template <class DomainType> 139template <class DomainType>
136KAsync::Job<DomainType> SINK_EXPORT fetchOne(const Sink::Query &query); 140KAsync::Job<DomainType> SINK_EXPORT fetchOne(const Sink::Query &query);