summaryrefslogtreecommitdiffstats
path: root/common/clientapi.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-19 14:05:35 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-19 14:05:35 +0200
commit9ce338c195bdc123633c3018a91908df26848da6 (patch)
tree5cb181d6727ad7a375f4bbe19b12335f367bf9e7 /common/clientapi.h
parent7fc0070bc073aaa8702e43eb10d887203f10463e (diff)
downloadsink-9ce338c195bdc123633c3018a91908df26848da6.tar.gz
sink-9ce338c195bdc123633c3018a91908df26848da6.zip
Fixed build.
Diffstat (limited to 'common/clientapi.h')
-rw-r--r--common/clientapi.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/clientapi.h b/common/clientapi.h
index af8a15e..c6c43ee 100644
--- a/common/clientapi.h
+++ b/common/clientapi.h
@@ -528,9 +528,7 @@ public:
528 static void create(const DomainType &domainObject, const QByteArray &resourceIdentifier) { 528 static void create(const DomainType &domainObject, const QByteArray &resourceIdentifier) {
529 //Potentially move to separate thread as well 529 //Potentially move to separate thread as well
530 auto facade = FacadeFactory::instance().getFacade<DomainType>(resourceIdentifier); 530 auto facade = FacadeFactory::instance().getFacade<DomainType>(resourceIdentifier);
531 auto job = facade->create(domainObject); 531 facade->create(domainObject).exec().waitForFinished();
532 auto future = job.exec();
533 future.waitForFinished();
534 //TODO return job? 532 //TODO return job?
535 } 533 }
536 534
@@ -543,7 +541,8 @@ public:
543 static void modify(const DomainType &domainObject, const QByteArray &resourceIdentifier) { 541 static void modify(const DomainType &domainObject, const QByteArray &resourceIdentifier) {
544 //Potentially move to separate thread as well 542 //Potentially move to separate thread as well
545 auto facade = FacadeFactory::instance().getFacade<DomainType>(resourceIdentifier); 543 auto facade = FacadeFactory::instance().getFacade<DomainType>(resourceIdentifier);
546 facade.modify(domainObject); 544 facade->modify(domainObject).exec().waitForFinished();
545 //TODO return job?
547 } 546 }
548 547
549 /** 548 /**
@@ -553,7 +552,8 @@ public:
553 static void remove(const DomainType &domainObject, const QByteArray &resourceIdentifier) { 552 static void remove(const DomainType &domainObject, const QByteArray &resourceIdentifier) {
554 //Potentially move to separate thread as well 553 //Potentially move to separate thread as well
555 auto facade = FacadeFactory::instance().getFacade<DomainType>(resourceIdentifier); 554 auto facade = FacadeFactory::instance().getFacade<DomainType>(resourceIdentifier);
556 facade.remove(domainObject); 555 facade->remove(domainObject).exec().waitForFinished();
556 //TODO return job?
557 } 557 }
558 558
559 static void shutdown(const QByteArray &resourceIdentifier); 559 static void shutdown(const QByteArray &resourceIdentifier);