diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-24 23:43:57 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-24 23:43:57 +0200 |
commit | 02d36a5f58e9a23163426b8a5aacbe1564b16422 (patch) | |
tree | 2b4955ded38cbeec6442d52e509160939cd7b03e /common/resourcecontrol.cpp | |
parent | 53df06854ffdcf164c195884783cadf8f53fea2c (diff) | |
download | sink-02d36a5f58e9a23163426b8a5aacbe1564b16422.tar.gz sink-02d36a5f58e9a23163426b8a5aacbe1564b16422.zip |
Pass in the inspection type
Diffstat (limited to 'common/resourcecontrol.cpp')
-rw-r--r-- | common/resourcecontrol.cpp | 2 |
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 ¬ification) { | 104 | notifier->registerHandler([&future, id, time](const Notification ¬ification) { |
105 | if (notification.id == id) { | 105 | if (notification.id == id) { |