diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-18 10:51:34 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-18 10:51:34 +0100 |
commit | 47b4442c585a25b2e4b857f2d9e3ab371d942c19 (patch) | |
tree | 4167c6cb75e3ee8072452585f1b433fb637e3389 /common/resourceaccess.h | |
parent | aef2ebc45a30d3c3b15b630648e8b37a551ce1ef (diff) | |
download | sink-47b4442c585a25b2e4b857f2d9e3ab371d942c19.tar.gz sink-47b4442c585a25b2e4b857f2d9e3ab371d942c19.zip |
Use jobs to track progress of write commands.
Diffstat (limited to 'common/resourceaccess.h')
-rw-r--r-- | common/resourceaccess.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/common/resourceaccess.h b/common/resourceaccess.h index 0a333f6..a9e8c47 100644 --- a/common/resourceaccess.h +++ b/common/resourceaccess.h | |||
@@ -41,9 +41,8 @@ public: | |||
41 | QString resourceName() const; | 41 | QString resourceName() const; |
42 | bool isReady() const; | 42 | bool isReady() const; |
43 | 43 | ||
44 | //TODO use jobs | 44 | Async::Job<void> sendCommand(int commandId); |
45 | void sendCommand(int commandId, const std::function<void()> &callback = std::function<void()>()); | 45 | Async::Job<void> sendCommand(int commandId, flatbuffers::FlatBufferBuilder &fbb); |
46 | void sendCommand(int commandId, flatbuffers::FlatBufferBuilder &fbb, const std::function<void()> &callback = std::function<void()>()); | ||
47 | Async::Job<void> synchronizeResource(); | 46 | Async::Job<void> synchronizeResource(); |
48 | 47 | ||
49 | public Q_SLOTS: | 48 | public Q_SLOTS: |