diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-05 17:14:29 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-05 17:14:29 +0100 |
commit | b9a79ed514e7ab6bab0d6dedfcb9a78387d2b7c1 (patch) | |
tree | f3b51a296dd09ca0c0cd78c880c893de315a5a59 /common/facade.cpp | |
parent | 36a742c33f0a3144ed8d5dbaf56d7b4ef4e4e3d3 (diff) | |
download | sink-b9a79ed514e7ab6bab0d6dedfcb9a78387d2b7c1.tar.gz sink-b9a79ed514e7ab6bab0d6dedfcb9a78387d2b7c1.zip |
Support result property transformations
This can be used to modify each result before reporting it to the
client. Alternatively this could also be done in the DomainTypeAdaptor,
which would perhaps be the cleaner solution...
Diffstat (limited to 'common/facade.cpp')
-rw-r--r-- | common/facade.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/facade.cpp b/common/facade.cpp index 540c364..1b91ce4 100644 --- a/common/facade.cpp +++ b/common/facade.cpp | |||
@@ -148,6 +148,7 @@ QPair<KAsync::Job<void>, typename ResultEmitter<typename DomainType::Ptr>::Ptr> | |||
148 | { | 148 | { |
149 | //The runner lives for the lifetime of the query | 149 | //The runner lives for the lifetime of the query |
150 | auto runner = new QueryRunner<DomainType>(query, mResourceAccess, mResourceInstanceIdentifier, mDomainTypeAdaptorFactory, bufferTypeForDomainType()); | 150 | auto runner = new QueryRunner<DomainType>(query, mResourceAccess, mResourceInstanceIdentifier, mDomainTypeAdaptorFactory, bufferTypeForDomainType()); |
151 | runner->setResultTransformation(mResultTransformation); | ||
151 | return qMakePair(KAsync::null<void>(), runner->emitter()); | 152 | return qMakePair(KAsync::null<void>(), runner->emitter()); |
152 | } | 153 | } |
153 | 154 | ||