diff options
Diffstat (limited to 'common/queryrunner.h')
-rw-r--r-- | common/queryrunner.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/queryrunner.h b/common/queryrunner.h index 436e2e0..adaf297 100644 --- a/common/queryrunner.h +++ b/common/queryrunner.h | |||
@@ -70,18 +70,19 @@ private: | |||
70 | 70 | ||
71 | /** | 71 | /** |
72 | * A QueryRunner runs a query and updates the corresponding result set. | 72 | * A QueryRunner runs a query and updates the corresponding result set. |
73 | * | 73 | * |
74 | * The lifetime of the QueryRunner is defined by the resut set (otherwise it's doing useless work), | 74 | * The lifetime of the QueryRunner is defined by the resut set (otherwise it's doing useless work), |
75 | * and by how long a result set must be updated. If the query is one off the runner dies after the execution, | 75 | * and by how long a result set must be updated. If the query is one off the runner dies after the execution, |
76 | * otherwise it lives on the react to changes and updates the corresponding result set. | 76 | * otherwise it lives on the react to changes and updates the corresponding result set. |
77 | * | 77 | * |
78 | * QueryRunner has to keep ResourceAccess alive in order to keep getting updates. | 78 | * QueryRunner has to keep ResourceAccess alive in order to keep getting updates. |
79 | */ | 79 | */ |
80 | template<typename DomainType> | 80 | template <typename DomainType> |
81 | class QueryRunner : public QueryRunnerBase | 81 | class QueryRunner : public QueryRunnerBase |
82 | { | 82 | { |
83 | public: | 83 | public: |
84 | QueryRunner(const Sink::Query &query, const Sink::ResourceAccessInterface::Ptr &, const QByteArray &instanceIdentifier, const DomainTypeAdaptorFactoryInterface::Ptr &, const QByteArray &bufferType); | 84 | QueryRunner(const Sink::Query &query, const Sink::ResourceAccessInterface::Ptr &, const QByteArray &instanceIdentifier, const DomainTypeAdaptorFactoryInterface::Ptr &, |
85 | const QByteArray &bufferType); | ||
85 | virtual ~QueryRunner(); | 86 | virtual ~QueryRunner(); |
86 | 87 | ||
87 | /** | 88 | /** |
@@ -94,9 +95,8 @@ public: | |||
94 | 95 | ||
95 | private: | 96 | private: |
96 | QSharedPointer<Sink::ResourceAccessInterface> mResourceAccess; | 97 | QSharedPointer<Sink::ResourceAccessInterface> mResourceAccess; |
97 | QSharedPointer<Sink::ResultProvider<typename DomainType::Ptr> > mResultProvider; | 98 | QSharedPointer<Sink::ResultProvider<typename DomainType::Ptr>> mResultProvider; |
98 | ResultTransformation mResultTransformation; | 99 | ResultTransformation mResultTransformation; |
99 | int mOffset; | 100 | int mOffset; |
100 | int mBatchSize; | 101 | int mBatchSize; |
101 | }; | 102 | }; |
102 | |||