diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-27 17:30:04 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-27 17:30:04 +0100 |
commit | 5b41b26a349967acf2197f9f9228526193fd826e (patch) | |
tree | 166452bcc0757564deefe233bf031d2ccb0564d2 /common/resourceaccess.h | |
parent | 13af56e436f49df32d3b2f6f223cf1dec2eabaac (diff) | |
download | sink-5b41b26a349967acf2197f9f9228526193fd826e.tar.gz sink-5b41b26a349967acf2197f9f9228526193fd826e.zip |
Introduced a QueryRunner object
The QueryRunner object lives for the duration of the query (so just
for the initial query for non-live queries, and for the lifetime of the
result model for live queries).
It's supposed to handle all the threading internally and decouple the
lifetime of the facade.
Diffstat (limited to 'common/resourceaccess.h')
-rw-r--r-- | common/resourceaccess.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/resourceaccess.h b/common/resourceaccess.h index 8e27054..e87a1f7 100644 --- a/common/resourceaccess.h +++ b/common/resourceaccess.h | |||
@@ -37,6 +37,8 @@ class ResourceAccessInterface : public QObject | |||
37 | { | 37 | { |
38 | Q_OBJECT | 38 | Q_OBJECT |
39 | public: | 39 | public: |
40 | typedef QSharedPointer<ResourceAccessInterface> Ptr; | ||
41 | |||
40 | ResourceAccessInterface() {} | 42 | ResourceAccessInterface() {} |
41 | virtual ~ResourceAccessInterface() {} | 43 | virtual ~ResourceAccessInterface() {} |
42 | virtual KAsync::Job<void> sendCommand(int commandId) = 0; | 44 | virtual KAsync::Job<void> sendCommand(int commandId) = 0; |