From d991034b6198f7a55e287c0a3cd3952b286d99c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Fri, 8 Aug 2025 15:00:32 +0200 Subject: [PATCH] notifyevents: Add Qt6 support --- notifyevents/integrationpluginnotifyevents.cpp | 9 +++------ notifyevents/notifyevents.pro | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/notifyevents/integrationpluginnotifyevents.cpp b/notifyevents/integrationpluginnotifyevents.cpp index 312de450..06a5b9c7 100644 --- a/notifyevents/integrationpluginnotifyevents.cpp +++ b/notifyevents/integrationpluginnotifyevents.cpp @@ -1,6 +1,6 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2023, nymea GmbH +* Copyright 2013 - 2025, nymea GmbH * Contact: contact@nymea.io * * This file is part of nymea. @@ -81,7 +81,7 @@ void IntegrationPluginNotfyEvents::executeAction(ThingActionInfo *info) connect(reply, &QNetworkReply::finished, info, [reply, info]{ if (reply->error() != QNetworkReply::NoError) { qCWarning(dcNotifyEvents()) << "Notify.Events message sending failed for" << info->thing()->name() << info->thing()->id() << reply->errorString() << reply->error(); - emit info->finish(Thing::ThingErrorHardwareNotAvailable); + info->finish(Thing::ThingErrorHardwareNotAvailable); return; } @@ -96,10 +96,7 @@ void IntegrationPluginNotfyEvents::executeAction(ThingActionInfo *info) return; } - QVariantMap replyMap = jsonDoc.toVariant().toMap(); - qDebug(dcNotifyEvents()) << qUtf8Printable(jsonDoc.toJson()); - - + qCDebug(dcNotifyEvents()) << qUtf8Printable(jsonDoc.toJson()); qCDebug(dcNotifyEvents()) << "Message sent successfully"; info->finish(Thing::ThingErrorNoError); }); diff --git a/notifyevents/notifyevents.pro b/notifyevents/notifyevents.pro index 4978109a..5ac77022 100644 --- a/notifyevents/notifyevents.pro +++ b/notifyevents/notifyevents.pro @@ -1,6 +1,6 @@ include(../plugins.pri) -QT+= network +QT *= network SOURCES += \ integrationpluginnotifyevents.cpp