summaryrefslogtreecommitdiffstats
path: root/common/resourcecontrol.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-24 23:43:57 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-24 23:43:57 +0200
commit02d36a5f58e9a23163426b8a5aacbe1564b16422 (patch)
tree2b4955ded38cbeec6442d52e509160939cd7b03e /common/resourcecontrol.cpp
parent53df06854ffdcf164c195884783cadf8f53fea2c (diff)
downloadsink-02d36a5f58e9a23163426b8a5aacbe1564b16422.tar.gz
sink-02d36a5f58e9a23163426b8a5aacbe1564b16422.zip
Pass in the inspection type
Diffstat (limited to 'common/resourcecontrol.cpp')
-rw-r--r--common/resourcecontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/resourcecontrol.cpp b/common/resourcecontrol.cpp
index ac6ddba..2be9b32 100644
--- a/common/resourcecontrol.cpp
+++ b/common/resourcecontrol.cpp
@@ -99,7 +99,7 @@ KAsync::Job<void> ResourceControl::inspect(const Inspection &inspectionCommand)
99 resourceAccess->open(); 99 resourceAccess->open();
100 auto notifier = QSharedPointer<Sink::Notifier>::create(resourceAccess); 100 auto notifier = QSharedPointer<Sink::Notifier>::create(resourceAccess);
101 auto id = QUuid::createUuid().toByteArray(); 101 auto id = QUuid::createUuid().toByteArray();
102 return resourceAccess->sendInspectionCommand(id, ApplicationDomain::getTypeName<DomainType>(), inspectionCommand.entityIdentifier, inspectionCommand.property, inspectionCommand.expectedValue) 102 return resourceAccess->sendInspectionCommand(inspectionCommand.type, id, ApplicationDomain::getTypeName<DomainType>(), inspectionCommand.entityIdentifier, inspectionCommand.property, inspectionCommand.expectedValue)
103 .template then<void>([resourceAccess, notifier, id, time](KAsync::Future<void> &future) { 103 .template then<void>([resourceAccess, notifier, id, time](KAsync::Future<void> &future) {
104 notifier->registerHandler([&future, id, time](const Notification &notification) { 104 notifier->registerHandler([&future, id, time](const Notification &notification) {
105 if (notification.id == id) { 105 if (notification.id == id) {