diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-30 13:43:31 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-30 13:43:31 +0200 |
commit | 01adeefb24bf72f1015e93aa5f075f93f56d94da (patch) | |
tree | ee6d204a47f246688202b4a3a9eb0db23b462f7f /common/resource.cpp | |
parent | 07572b25af45c41a82eb8ddfdecf18e58958788b (diff) | |
download | sink-01adeefb24bf72f1015e93aa5f075f93f56d94da.tar.gz sink-01adeefb24bf72f1015e93aa5f075f93f56d94da.zip |
Made the pipeline an implementation detail of the resource.
This removes one dependency from the Listener and will allow us
to test the Listener better.
Diffstat (limited to 'common/resource.cpp')
-rw-r--r-- | common/resource.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/common/resource.cpp b/common/resource.cpp index 68a237c..2a86df5 100644 --- a/common/resource.cpp +++ b/common/resource.cpp | |||
@@ -40,24 +40,15 @@ Resource::~Resource() | |||
40 | //delete d; | 40 | //delete d; |
41 | } | 41 | } |
42 | 42 | ||
43 | void Resource::configurePipeline(Pipeline *pipeline) | 43 | void Resource::processCommand(int commandId, const QByteArray &data) |
44 | { | ||
45 | |||
46 | } | ||
47 | |||
48 | void Resource::processCommand(int commandId, const QByteArray &data, Pipeline *pipeline) | ||
49 | { | 44 | { |
50 | Q_UNUSED(commandId) | 45 | Q_UNUSED(commandId) |
51 | Q_UNUSED(data) | 46 | Q_UNUSED(data) |
52 | Q_UNUSED(pipeline) | ||
53 | pipeline->null(); | ||
54 | } | 47 | } |
55 | 48 | ||
56 | KAsync::Job<void> Resource::synchronizeWithSource(Pipeline *pipeline) | 49 | KAsync::Job<void> Resource::synchronizeWithSource() |
57 | { | 50 | { |
58 | return KAsync::start<void>([pipeline](KAsync::Future<void> &f) { | 51 | return KAsync::null<void>(); |
59 | pipeline->null(); | ||
60 | }); | ||
61 | } | 52 | } |
62 | 53 | ||
63 | KAsync::Job<void> Resource::processAllMessages() | 54 | KAsync::Job<void> Resource::processAllMessages() |