diff options
Diffstat (limited to 'common/clientapi.h')
-rw-r--r-- | common/clientapi.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/clientapi.h b/common/clientapi.h index 1bd8bdc..0ce1691 100644 --- a/common/clientapi.h +++ b/common/clientapi.h | |||
@@ -228,10 +228,10 @@ class StoreFacade { | |||
228 | public: | 228 | public: |
229 | virtual ~StoreFacade(){}; | 229 | virtual ~StoreFacade(){}; |
230 | QByteArray type() const { return ApplicationDomain::getTypeName<DomainType>(); } | 230 | QByteArray type() const { return ApplicationDomain::getTypeName<DomainType>(); } |
231 | virtual Async::Job<void> create(const DomainType &domainObject) = 0; | 231 | virtual KAsync::Job<void> create(const DomainType &domainObject) = 0; |
232 | virtual Async::Job<void> modify(const DomainType &domainObject) = 0; | 232 | virtual KAsync::Job<void> modify(const DomainType &domainObject) = 0; |
233 | virtual Async::Job<void> remove(const DomainType &domainObject) = 0; | 233 | virtual KAsync::Job<void> remove(const DomainType &domainObject) = 0; |
234 | virtual Async::Job<void> load(const Query &query, const QSharedPointer<ResultProvider<typename DomainType::Ptr> > &resultProvider) = 0; | 234 | virtual KAsync::Job<void> load(const Query &query, const QSharedPointer<ResultProvider<typename DomainType::Ptr> > &resultProvider) = 0; |
235 | }; | 235 | }; |
236 | 236 | ||
237 | 237 | ||
@@ -341,8 +341,8 @@ public: | |||
341 | //The result provider must be threadsafe. | 341 | //The result provider must be threadsafe. |
342 | async::run([query, resultSet](){ | 342 | async::run([query, resultSet](){ |
343 | // Query all resources and aggregate results | 343 | // Query all resources and aggregate results |
344 | Async::iterate(query.resources) | 344 | KAsync::iterate(query.resources) |
345 | .template each<void, QByteArray>([query, resultSet](const QByteArray &resource, Async::Future<void> &future) { | 345 | .template each<void, QByteArray>([query, resultSet](const QByteArray &resource, KAsync::Future<void> &future) { |
346 | //TODO pass resource identifier to factory | 346 | //TODO pass resource identifier to factory |
347 | auto facade = FacadeFactory::instance().getFacade<DomainType>(resource); | 347 | auto facade = FacadeFactory::instance().getFacade<DomainType>(resource); |
348 | if (facade) { | 348 | if (facade) { |