summaryrefslogtreecommitdiffstats
path: root/common/resource.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-30 13:43:31 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-30 13:43:31 +0200
commit01adeefb24bf72f1015e93aa5f075f93f56d94da (patch)
treeee6d204a47f246688202b4a3a9eb0db23b462f7f /common/resource.cpp
parent07572b25af45c41a82eb8ddfdecf18e58958788b (diff)
downloadsink-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.cpp15
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
43void Resource::configurePipeline(Pipeline *pipeline) 43void Resource::processCommand(int commandId, const QByteArray &data)
44{
45
46}
47
48void 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
56KAsync::Job<void> Resource::synchronizeWithSource(Pipeline *pipeline) 49KAsync::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
63KAsync::Job<void> Resource::processAllMessages() 54KAsync::Job<void> Resource::processAllMessages()