From 2b9295f8d078081c9aecfe6047cb331ab0cd0129 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 28 Nov 2016 23:18:44 +0100 Subject: Cleanup --- common/genericresource.cpp | 2 -- common/genericresource.h | 12 ++++-------- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'common') diff --git a/common/genericresource.cpp b/common/genericresource.cpp index 82112b3..5819a07 100644 --- a/common/genericresource.cpp +++ b/common/genericresource.cpp @@ -20,8 +20,6 @@ #include "genericresource.h" #include "pipeline.h" -#include "domainadaptor.h" -#include "log.h" #include "synchronizer.h" #include "commandprocessor.h" #include "definitions.h" diff --git a/common/genericresource.h b/common/genericresource.h index cc73f50..558145c 100644 --- a/common/genericresource.h +++ b/common/genericresource.h @@ -21,13 +21,8 @@ #include "sink_export.h" #include -#include -#include -#include #include -#include - namespace Sink { class Pipeline; class Preprocessor; @@ -54,7 +49,9 @@ public: static void removeFromDisk(const QByteArray &instanceIdentifier); static qint64 diskUsage(const QByteArray &instanceIdentifier); + //TODO Remove this API, it's only used in tests KAsync::Job synchronizeWithSource(const Sink::QueryBase &query); + //TODO Remove this API, it's only used in tests KAsync::Job processAllMessages(); private slots: @@ -65,12 +62,11 @@ protected: void setupSynchronizer(const QSharedPointer &synchronizer); void setupInspector(const QSharedPointer &inspector); - void onProcessorError(int errorCode, const QString &errorMessage); - void enqueueCommand(MessageQueue &mq, int commandId, const QByteArray &data); - ResourceContext mResourceContext; private: + void onProcessorError(int errorCode, const QString &errorMessage); + QSharedPointer mPipeline; QSharedPointer mProcessor; QSharedPointer mSynchronizer; -- cgit v1.2.3