diff options
Diffstat (limited to 'examples/dummyresource/resourcefactory.cpp')
-rw-r--r-- | examples/dummyresource/resourcefactory.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp index 2bd52cc..21a76ad 100644 --- a/examples/dummyresource/resourcefactory.cpp +++ b/examples/dummyresource/resourcefactory.cpp | |||
@@ -23,6 +23,7 @@ | |||
23 | #include "entitybuffer.h" | 23 | #include "entitybuffer.h" |
24 | #include "pipeline.h" | 24 | #include "pipeline.h" |
25 | #include "dummycalendar_generated.h" | 25 | #include "dummycalendar_generated.h" |
26 | #include "notification_generated.h" | ||
26 | #include "mail_generated.h" | 27 | #include "mail_generated.h" |
27 | #include "createentity_generated.h" | 28 | #include "createentity_generated.h" |
28 | #include "domainadaptor.h" | 29 | #include "domainadaptor.h" |
@@ -144,6 +145,18 @@ DummyResource::~DummyResource() | |||
144 | 145 | ||
145 | } | 146 | } |
146 | 147 | ||
148 | KAsync::Job<void> DummyResource::synchronizeWithSource() | ||
149 | { | ||
150 | Trace() << "Synchronize with source and sending a notification about it"; | ||
151 | Sink::Notification n; | ||
152 | n.id = "connected"; | ||
153 | n.type = Sink::Notification::Status; | ||
154 | n.message = "We're connected"; | ||
155 | n.code = Sink::ApplicationDomain::ConnectedStatus; | ||
156 | emit notify(n); | ||
157 | return GenericResource::synchronizeWithSource(); | ||
158 | } | ||
159 | |||
147 | KAsync::Job<void> DummyResource::inspect(int inspectionType, const QByteArray &inspectionId, const QByteArray &domainType, const QByteArray &entityId, const QByteArray &property, const QVariant &expectedValue) | 160 | KAsync::Job<void> DummyResource::inspect(int inspectionType, const QByteArray &inspectionId, const QByteArray &domainType, const QByteArray &entityId, const QByteArray &property, const QVariant &expectedValue) |
148 | { | 161 | { |
149 | 162 | ||