diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-11 17:47:54 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-11 17:47:54 +0200 |
commit | 254f9dad6377311b8115221c252b20726acad0c5 (patch) | |
tree | 3361c671d301586cc8d07f459194808e0dd39fc3 /common/store.h | |
parent | 1291ccf13a0b8a1eddb6aaed24b45ceb31a2e01e (diff) | |
download | sink-254f9dad6377311b8115221c252b20726acad0c5.tar.gz sink-254f9dad6377311b8115221c252b20726acad0c5.zip |
Upgrade job that we can eventually use to upgrade the storage
Diffstat (limited to 'common/store.h')
-rw-r--r-- | common/store.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/store.h b/common/store.h index fae76e5..34e14df 100644 --- a/common/store.h +++ b/common/store.h | |||
@@ -122,6 +122,18 @@ KAsync::Job<void> SINK_EXPORT synchronize(const Sink::SyncScope &query); | |||
122 | */ | 122 | */ |
123 | KAsync::Job<void> SINK_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier); | 123 | KAsync::Job<void> SINK_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier); |
124 | 124 | ||
125 | /** | ||
126 | * Run upgrade jobs. | ||
127 | * | ||
128 | * Run this to upgrade your local database to a new version. | ||
129 | * Note that this may: | ||
130 | * * take a while | ||
131 | * * remove some/all of your local caches | ||
132 | * | ||
133 | * Note: The initial implementation simply calls removeDataFromDisk for all resources. | ||
134 | */ | ||
135 | KAsync::Job<void> SINK_EXPORT upgrade(); | ||
136 | |||
125 | template <class DomainType> | 137 | template <class DomainType> |
126 | KAsync::Job<DomainType> SINK_EXPORT fetchOne(const Sink::Query &query); | 138 | KAsync::Job<DomainType> SINK_EXPORT fetchOne(const Sink::Query &query); |
127 | 139 | ||