summaryrefslogtreecommitdiffstats
path: root/common/genericresource.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-19 14:47:11 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-19 14:47:11 +0100
commit336e88d4bd330e0d28861c7f702711f53996bfca (patch)
tree82a58ccb3c4d15600a004b319e720bf722e31439 /common/genericresource.cpp
parentcd7287325944571e9d53b00b48abdba4c9257474 (diff)
downloadsink-336e88d4bd330e0d28861c7f702711f53996bfca.tar.gz
sink-336e88d4bd330e0d28861c7f702711f53996bfca.zip
ResourceNotification -> Notification
Diffstat (limited to 'common/genericresource.cpp')
-rw-r--r--common/genericresource.cpp5
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;