summaryrefslogtreecommitdiffstats
path: root/examples/dummyresource
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dummyresource')
-rw-r--r--examples/dummyresource/resourcefactory.cpp6
-rw-r--r--examples/dummyresource/resourcefactory.h2
2 files changed, 4 insertions, 4 deletions
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 {
109 SinkTrace() << "Sync of " << count << " entities of type " << bufferType << " done." << Sink::Log::TraceTime(time->elapsed()); 109 SinkTrace() << "Sync of " << count << " entities of type " << bufferType << " done." << Sink::Log::TraceTime(time->elapsed());
110 } 110 }
111 111
112 KAsync::Job<void> synchronizeWithSource() Q_DECL_OVERRIDE 112 KAsync::Job<void> synchronizeWithSource(const Sink::QueryBase &) Q_DECL_OVERRIDE
113 { 113 {
114 SinkLog() << " Synchronizing with the source"; 114 SinkLog() << " Synchronizing with the source";
115 return KAsync::syncStart<void>([this]() { 115 return KAsync::syncStart<void>([this]() {
@@ -146,7 +146,7 @@ DummyResource::~DummyResource()
146 146
147} 147}
148 148
149KAsync::Job<void> DummyResource::synchronizeWithSource() 149KAsync::Job<void> DummyResource::synchronizeWithSource(const Sink::QueryBase &query)
150{ 150{
151 SinkTrace() << "Synchronize with source and sending a notification about it"; 151 SinkTrace() << "Synchronize with source and sending a notification about it";
152 Sink::Notification n; 152 Sink::Notification n;
@@ -155,7 +155,7 @@ KAsync::Job<void> DummyResource::synchronizeWithSource()
155 n.message = "We're connected"; 155 n.message = "We're connected";
156 n.code = Sink::ApplicationDomain::ConnectedStatus; 156 n.code = Sink::ApplicationDomain::ConnectedStatus;
157 emit notify(n); 157 emit notify(n);
158 return GenericResource::synchronizeWithSource(); 158 return GenericResource::synchronizeWithSource(query);
159} 159}
160 160
161KAsync::Job<void> DummyResource::inspect(int inspectionType, const QByteArray &inspectionId, const QByteArray &domainType, const QByteArray &entityId, const QByteArray &property, const QVariant &expectedValue) 161KAsync::Job<void> 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:
32 DummyResource(const Sink::ResourceContext &resourceContext, const QSharedPointer<Sink::Pipeline> &pipeline = QSharedPointer<Sink::Pipeline>()); 32 DummyResource(const Sink::ResourceContext &resourceContext, const QSharedPointer<Sink::Pipeline> &pipeline = QSharedPointer<Sink::Pipeline>());
33 virtual ~DummyResource(); 33 virtual ~DummyResource();
34 34
35 KAsync::Job<void> synchronizeWithSource() Q_DECL_OVERRIDE; 35 KAsync::Job<void> synchronizeWithSource(const Sink::QueryBase &) Q_DECL_OVERRIDE;
36 KAsync::Job<void> inspect(int inspectionType, const QByteArray &inspectionId, const QByteArray &domainType, const QByteArray &entityId, const QByteArray &property, const QVariant &expectedValue) Q_DECL_OVERRIDE; 36 KAsync::Job<void> inspect(int inspectionType, const QByteArray &inspectionId, const QByteArray &domainType, const QByteArray &entityId, const QByteArray &property, const QVariant &expectedValue) Q_DECL_OVERRIDE;
37}; 37};
38 38