summaryrefslogtreecommitdiffstats
path: root/common/queryrunner.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-04 08:25:18 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-04 08:25:18 +0200
commitd6a01b3f82d626856001356c0875aa738a0346ac (patch)
treed77a6000e9d53be7844d72697496efa093b5f8ad /common/queryrunner.h
parent48ba18c92eede967afc4cf8894a3b06fd6a3c179 (diff)
downloadsink-d6a01b3f82d626856001356c0875aa738a0346ac.tar.gz
sink-d6a01b3f82d626856001356c0875aa738a0346ac.zip
Support for subqueries.
This allows us to match properties from a subquery. Unfortunately this also means that DataStoreQuery needs access to all type implementations to issue the subquery (for potentially another type).
Diffstat (limited to 'common/queryrunner.h')
-rw-r--r--common/queryrunner.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/queryrunner.h b/common/queryrunner.h
index 439a990..78aabf6 100644
--- a/common/queryrunner.h
+++ b/common/queryrunner.h
@@ -25,6 +25,7 @@
25#include "domaintypeadaptorfactoryinterface.h" 25#include "domaintypeadaptorfactoryinterface.h"
26#include "storage.h" 26#include "storage.h"
27#include "query.h" 27#include "query.h"
28#include "log.h"
28 29
29/** 30/**
30 * Base clase because you can't have the Q_OBJECT macro in template classes 31 * Base clase because you can't have the Q_OBJECT macro in template classes
@@ -96,6 +97,8 @@ public:
96 typename Sink::ResultEmitter<typename DomainType::Ptr>::Ptr emitter(); 97 typename Sink::ResultEmitter<typename DomainType::Ptr>::Ptr emitter();
97 98
98private: 99private:
100 QByteArray mResourceInstanceIdentifier;
101 SINK_DEBUG_COMPONENT(mResourceInstanceIdentifier)
99 QSharedPointer<Sink::ResourceAccessInterface> mResourceAccess; 102 QSharedPointer<Sink::ResourceAccessInterface> mResourceAccess;
100 QSharedPointer<Sink::ResultProvider<typename DomainType::Ptr>> mResultProvider; 103 QSharedPointer<Sink::ResultProvider<typename DomainType::Ptr>> mResultProvider;
101 ResultTransformation mResultTransformation; 104 ResultTransformation mResultTransformation;