diff options
Diffstat (limited to 'common/genericresource.cpp')
-rw-r--r-- | common/genericresource.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/genericresource.cpp b/common/genericresource.cpp index e9a6012..c7f323a 100644 --- a/common/genericresource.cpp +++ b/common/genericresource.cpp | |||
@@ -7,6 +7,7 @@ | |||
7 | #include "modifyentity_generated.h" | 7 | #include "modifyentity_generated.h" |
8 | #include "deleteentity_generated.h" | 8 | #include "deleteentity_generated.h" |
9 | #include "inspection_generated.h" | 9 | #include "inspection_generated.h" |
10 | #include "notification_generated.h" | ||
10 | #include "domainadaptor.h" | 11 | #include "domainadaptor.h" |
11 | #include "commands.h" | 12 | #include "commands.h" |
12 | #include "index.h" | 13 | #include "index.h" |
@@ -312,13 +313,13 @@ GenericResource::GenericResource(const QByteArray &resourceInstanceIdentifier, c | |||
312 | QVariant expectedValue; | 313 | QVariant expectedValue; |
313 | s >> expectedValue; | 314 | s >> expectedValue; |
314 | inspect(inspectionType, inspectionId, domainType, entityId, property, expectedValue).then<void>([=]() { | 315 | inspect(inspectionType, inspectionId, domainType, entityId, property, expectedValue).then<void>([=]() { |
315 | Akonadi2::ResourceNotification n; | 316 | Akonadi2::Notification n; |
316 | n.type = Akonadi2::Commands::NotificationType_Inspection; | 317 | n.type = Akonadi2::Commands::NotificationType_Inspection; |
317 | n.id = inspectionId; | 318 | n.id = inspectionId; |
318 | n.code = Akonadi2::Commands::NotificationCode_Success; | 319 | n.code = Akonadi2::Commands::NotificationCode_Success; |
319 | emit notify(n); | 320 | emit notify(n); |
320 | }, [=](int code, const QString &message) { | 321 | }, [=](int code, const QString &message) { |
321 | Akonadi2::ResourceNotification n; | 322 | Akonadi2::Notification n; |
322 | n.type = Akonadi2::Commands::NotificationType_Inspection; | 323 | n.type = Akonadi2::Commands::NotificationType_Inspection; |
323 | n.message = message; | 324 | n.message = message; |
324 | n.id = inspectionId; | 325 | n.id = inspectionId; |