From 89b6f63bab839ab0504cd3067f0389afe4dc47e3 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 7 Nov 2016 21:48:44 +0100 Subject: Implement debug stream operators for query. --- examples/dummyresource/resourcefactory.cpp | 6 +++--- examples/dummyresource/resourcefactory.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/dummyresource') diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp index 242a772..46e67f3 100644 --- a/examples/dummyresource/resourcefactory.cpp +++ b/examples/dummyresource/resourcefactory.cpp @@ -109,7 +109,7 @@ class DummySynchronizer : public Sink::Synchronizer { SinkTrace() << "Sync of " << count << " entities of type " << bufferType << " done." << Sink::Log::TraceTime(time->elapsed()); } - KAsync::Job synchronizeWithSource() Q_DECL_OVERRIDE + KAsync::Job synchronizeWithSource(const Sink::QueryBase &) Q_DECL_OVERRIDE { SinkLog() << " Synchronizing with the source"; return KAsync::syncStart([this]() { @@ -146,7 +146,7 @@ DummyResource::~DummyResource() } -KAsync::Job DummyResource::synchronizeWithSource() +KAsync::Job DummyResource::synchronizeWithSource(const Sink::QueryBase &query) { SinkTrace() << "Synchronize with source and sending a notification about it"; Sink::Notification n; @@ -155,7 +155,7 @@ KAsync::Job DummyResource::synchronizeWithSource() n.message = "We're connected"; n.code = Sink::ApplicationDomain::ConnectedStatus; emit notify(n); - return GenericResource::synchronizeWithSource(); + return GenericResource::synchronizeWithSource(query); } KAsync::Job DummyResource::inspect(int inspectionType, const QByteArray &inspectionId, const QByteArray &domainType, const QByteArray &entityId, const QByteArray &property, const QVariant &expectedValue) diff --git a/examples/dummyresource/resourcefactory.h b/examples/dummyresource/resourcefactory.h index 46a557e..8ef27a6 100644 --- a/examples/dummyresource/resourcefactory.h +++ b/examples/dummyresource/resourcefactory.h @@ -32,7 +32,7 @@ public: DummyResource(const Sink::ResourceContext &resourceContext, const QSharedPointer &pipeline = QSharedPointer()); virtual ~DummyResource(); - KAsync::Job synchronizeWithSource() Q_DECL_OVERRIDE; + KAsync::Job synchronizeWithSource(const Sink::QueryBase &) Q_DECL_OVERRIDE; KAsync::Job inspect(int inspectionType, const QByteArray &inspectionId, const QByteArray &domainType, const QByteArray &entityId, const QByteArray &property, const QVariant &expectedValue) Q_DECL_OVERRIDE; }; -- cgit v1.2.3