diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-27 02:26:47 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-15 16:14:19 +0200 |
commit | 26816c21f60450e461a5b6ef4ef740f6070ce278 (patch) | |
tree | 55e8aee03e094abf702438e6cd26233047345e70 /common/resourcefacade.cpp | |
parent | 9a9bb39f7641a818434cafa0dae0c8aa47124c0b (diff) | |
download | sink-26816c21f60450e461a5b6ef4ef740f6070ce278.tar.gz sink-26816c21f60450e461a5b6ef4ef740f6070ce278.zip |
Ported to the kasync revamp
Diffstat (limited to 'common/resourcefacade.cpp')
-rw-r--r-- | common/resourcefacade.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/resourcefacade.cpp b/common/resourcefacade.cpp index bf4239d..1c56fe5 100644 --- a/common/resourcefacade.cpp +++ b/common/resourcefacade.cpp | |||
@@ -167,7 +167,7 @@ template <typename DomainType> | |||
167 | KAsync::Job<void> LocalStorageFacade<DomainType>::create(const DomainType &domainObject) | 167 | KAsync::Job<void> LocalStorageFacade<DomainType>::create(const DomainType &domainObject) |
168 | { | 168 | { |
169 | auto configStoreIdentifier = mIdentifier; | 169 | auto configStoreIdentifier = mIdentifier; |
170 | return KAsync::start<void>([domainObject, configStoreIdentifier]() { | 170 | return KAsync::syncStart<void>([domainObject, configStoreIdentifier]() { |
171 | const QByteArray type = domainObject.getProperty("type").toByteArray(); | 171 | const QByteArray type = domainObject.getProperty("type").toByteArray(); |
172 | const QByteArray providedIdentifier = domainObject.identifier().isEmpty() ? domainObject.getProperty("identifier").toByteArray() : domainObject.identifier(); | 172 | const QByteArray providedIdentifier = domainObject.identifier().isEmpty() ? domainObject.getProperty("identifier").toByteArray() : domainObject.identifier(); |
173 | const QByteArray identifier = providedIdentifier.isEmpty() ? ResourceConfig::newIdentifier(type) : providedIdentifier; | 173 | const QByteArray identifier = providedIdentifier.isEmpty() ? ResourceConfig::newIdentifier(type) : providedIdentifier; |
@@ -192,7 +192,7 @@ template <typename DomainType> | |||
192 | KAsync::Job<void> LocalStorageFacade<DomainType>::modify(const DomainType &domainObject) | 192 | KAsync::Job<void> LocalStorageFacade<DomainType>::modify(const DomainType &domainObject) |
193 | { | 193 | { |
194 | auto configStoreIdentifier = mIdentifier; | 194 | auto configStoreIdentifier = mIdentifier; |
195 | return KAsync::start<void>([domainObject, configStoreIdentifier]() { | 195 | return KAsync::syncStart<void>([domainObject, configStoreIdentifier]() { |
196 | const QByteArray identifier = domainObject.identifier(); | 196 | const QByteArray identifier = domainObject.identifier(); |
197 | if (identifier.isEmpty()) { | 197 | if (identifier.isEmpty()) { |
198 | SinkWarning() << "We need an \"identifier\" property to identify the entity to configure."; | 198 | SinkWarning() << "We need an \"identifier\" property to identify the entity to configure."; |
@@ -220,7 +220,7 @@ template <typename DomainType> | |||
220 | KAsync::Job<void> LocalStorageFacade<DomainType>::remove(const DomainType &domainObject) | 220 | KAsync::Job<void> LocalStorageFacade<DomainType>::remove(const DomainType &domainObject) |
221 | { | 221 | { |
222 | auto configStoreIdentifier = mIdentifier; | 222 | auto configStoreIdentifier = mIdentifier; |
223 | return KAsync::start<void>([domainObject, configStoreIdentifier]() { | 223 | return KAsync::syncStart<void>([domainObject, configStoreIdentifier]() { |
224 | const QByteArray identifier = domainObject.identifier(); | 224 | const QByteArray identifier = domainObject.identifier(); |
225 | if (identifier.isEmpty()) { | 225 | if (identifier.isEmpty()) { |
226 | SinkWarning() << "We need an \"identifier\" property to identify the entity to configure"; | 226 | SinkWarning() << "We need an \"identifier\" property to identify the entity to configure"; |