diff options
-rw-r--r-- | common/clientapi.h | 10 |
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); |