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/resourceaccess.cpp | |
parent | 53df06854ffdcf164c195884783cadf8f53fea2c (diff) | |
download | sink-02d36a5f58e9a23163426b8a5aacbe1564b16422.tar.gz sink-02d36a5f58e9a23163426b8a5aacbe1564b16422.zip |
Pass in the inspection type
Diffstat (limited to 'common/resourceaccess.cpp')
-rw-r--r-- | common/resourceaccess.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 6dcc898..3696a93 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -353,7 +353,7 @@ KAsync::Job<void> ResourceAccess::sendRevisionReplayedCommand(qint64 revision) | |||
353 | } | 353 | } |
354 | 354 | ||
355 | KAsync::Job<void> | 355 | KAsync::Job<void> |
356 | ResourceAccess::sendInspectionCommand(const QByteArray &inspectionId, const QByteArray &domainType, const QByteArray &entityId, const QByteArray &property, const QVariant &expectedValue) | 356 | ResourceAccess::sendInspectionCommand(int inspectionType, const QByteArray &inspectionId, const QByteArray &domainType, const QByteArray &entityId, const QByteArray &property, const QVariant &expectedValue) |
357 | { | 357 | { |
358 | flatbuffers::FlatBufferBuilder fbb; | 358 | flatbuffers::FlatBufferBuilder fbb; |
359 | auto id = fbb.CreateString(inspectionId.toStdString()); | 359 | auto id = fbb.CreateString(inspectionId.toStdString()); |
@@ -366,7 +366,7 @@ ResourceAccess::sendInspectionCommand(const QByteArray &inspectionId, const QByt | |||
366 | s << expectedValue; | 366 | s << expectedValue; |
367 | 367 | ||
368 | auto expected = fbb.CreateString(array.toStdString()); | 368 | auto expected = fbb.CreateString(array.toStdString()); |
369 | auto location = Sink::Commands::CreateInspection(fbb, id, 0, entity, domain, prop, expected); | 369 | auto location = Sink::Commands::CreateInspection(fbb, id, inspectionType, entity, domain, prop, expected); |
370 | Sink::Commands::FinishInspectionBuffer(fbb, location); | 370 | Sink::Commands::FinishInspectionBuffer(fbb, location); |
371 | open(); | 371 | open(); |
372 | return sendCommand(Sink::Commands::InspectionCommand, fbb); | 372 | return sendCommand(Sink::Commands::InspectionCommand, fbb); |