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.h | |
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.h')
-rw-r--r-- | common/resource.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/common/resource.h b/common/resource.h index 9f657f7..a51e12d 100644 --- a/common/resource.h +++ b/common/resource.h | |||
@@ -20,12 +20,12 @@ | |||
20 | 20 | ||
21 | #include <akonadi2common_export.h> | 21 | #include <akonadi2common_export.h> |
22 | #include <clientapi.h> | 22 | #include <clientapi.h> |
23 | #include <pipeline.h> | ||
24 | 23 | ||
25 | #include <Async/Async> | 24 | #include <Async/Async> |
26 | 25 | ||
27 | namespace Akonadi2 | 26 | namespace Akonadi2 |
28 | { | 27 | { |
28 | class Pipeline; | ||
29 | 29 | ||
30 | /** | 30 | /** |
31 | * Resource interface | 31 | * Resource interface |
@@ -37,12 +37,10 @@ public: | |||
37 | Resource(); | 37 | Resource(); |
38 | virtual ~Resource(); | 38 | virtual ~Resource(); |
39 | 39 | ||
40 | virtual void processCommand(int commandId, const QByteArray &data, Pipeline *pipeline); | 40 | virtual void processCommand(int commandId, const QByteArray &data); |
41 | virtual KAsync::Job<void> synchronizeWithSource(Pipeline *pipeline); | 41 | virtual KAsync::Job<void> synchronizeWithSource(); |
42 | virtual KAsync::Job<void> processAllMessages(); | 42 | virtual KAsync::Job<void> processAllMessages(); |
43 | 43 | ||
44 | virtual void configurePipeline(Pipeline *pipeline); | ||
45 | |||
46 | Q_SIGNALS: | 44 | Q_SIGNALS: |
47 | void revisionUpdated(qint64); | 45 | void revisionUpdated(qint64); |
48 | 46 | ||