summaryrefslogtreecommitdiffstats
path: root/common/resourcefacade.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-02 12:27:09 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-02 12:27:09 +0100
commitbe652c12dfa5162d952f5226de453e1a29957c3a (patch)
tree9f54e2daab45a08d54e9ec8fec798b8f968988ed /common/resourcefacade.cpp
parent60cb0a4607e8fe0317920d7c3d110f508186859e (diff)
downloadsink-be652c12dfa5162d952f5226de453e1a29957c3a.tar.gz
sink-be652c12dfa5162d952f5226de453e1a29957c3a.zip
Port away from syncStartv0.1.0
Diffstat (limited to 'common/resourcefacade.cpp')
-rw-r--r--common/resourcefacade.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/resourcefacade.cpp b/common/resourcefacade.cpp
index 13cad64..4a8037d 100644
--- a/common/resourcefacade.cpp
+++ b/common/resourcefacade.cpp
@@ -196,7 +196,7 @@ KAsync::Job<void> LocalStorageFacade<DomainType>::create(const DomainType &domai
196{ 196{
197 auto configStoreIdentifier = mIdentifier; 197 auto configStoreIdentifier = mIdentifier;
198 auto typeName = mTypeName; 198 auto typeName = mTypeName;
199 return KAsync::syncStart<void>([domainObject, configStoreIdentifier, typeName]() { 199 return KAsync::start([domainObject, configStoreIdentifier, typeName]() {
200 const QByteArray type = domainObject.getProperty(typeName).toByteArray(); 200 const QByteArray type = domainObject.getProperty(typeName).toByteArray();
201 const QByteArray providedIdentifier = domainObject.identifier().isEmpty() ? domainObject.getProperty("identifier").toByteArray() : domainObject.identifier(); 201 const QByteArray providedIdentifier = domainObject.identifier().isEmpty() ? domainObject.getProperty("identifier").toByteArray() : domainObject.identifier();
202 const QByteArray identifier = providedIdentifier.isEmpty() ? ResourceConfig::newIdentifier(type) : providedIdentifier; 202 const QByteArray identifier = providedIdentifier.isEmpty() ? ResourceConfig::newIdentifier(type) : providedIdentifier;
@@ -222,7 +222,7 @@ KAsync::Job<void> LocalStorageFacade<DomainType>::modify(const DomainType &domai
222{ 222{
223 auto configStoreIdentifier = mIdentifier; 223 auto configStoreIdentifier = mIdentifier;
224 auto typeName = mTypeName; 224 auto typeName = mTypeName;
225 return KAsync::syncStart<void>([domainObject, configStoreIdentifier, typeName]() { 225 return KAsync::start([domainObject, configStoreIdentifier, typeName]() {
226 const QByteArray identifier = domainObject.identifier(); 226 const QByteArray identifier = domainObject.identifier();
227 if (identifier.isEmpty()) { 227 if (identifier.isEmpty()) {
228 SinkWarning() << "We need an \"identifier\" property to identify the entity to configure."; 228 SinkWarning() << "We need an \"identifier\" property to identify the entity to configure.";
@@ -263,7 +263,7 @@ KAsync::Job<void> LocalStorageFacade<DomainType>::remove(const DomainType &domai
263{ 263{
264 auto configStoreIdentifier = mIdentifier; 264 auto configStoreIdentifier = mIdentifier;
265 auto typeName = mTypeName; 265 auto typeName = mTypeName;
266 return KAsync::syncStart<void>([domainObject, configStoreIdentifier, typeName]() { 266 return KAsync::start([domainObject, configStoreIdentifier, typeName]() {
267 const QByteArray identifier = domainObject.identifier(); 267 const QByteArray identifier = domainObject.identifier();
268 if (identifier.isEmpty()) { 268 if (identifier.isEmpty()) {
269 SinkWarning() << "We need an \"identifier\" property to identify the entity to configure"; 269 SinkWarning() << "We need an \"identifier\" property to identify the entity to configure";