diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-11 22:44:51 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-11 22:53:34 +0100 |
commit | 8740a007515dcf1b315d69ab5c64fcfd40ec980c (patch) | |
tree | a6ba6ae6a7192ce68a53e03efdeae945592c93d9 /common/store.h | |
parent | 8a4b335cd2a1735880da7e850999b88f60e9585e (diff) | |
download | sink-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.h | 6 |
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 | */ |
121 | KAsync::Job<void> SINK_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier); | 121 | KAsync::Job<void> SINK_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier); |
122 | 122 | ||
123 | struct 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 | */ |
133 | KAsync::Job<void> SINK_EXPORT upgrade(); | 137 | KAsync::Job<UpgradeResult> SINK_EXPORT upgrade(); |
134 | 138 | ||
135 | template <class DomainType> | 139 | template <class DomainType> |
136 | KAsync::Job<DomainType> SINK_EXPORT fetchOne(const Sink::Query &query); | 140 | KAsync::Job<DomainType> SINK_EXPORT fetchOne(const Sink::Query &query); |