notifyevents: Add Qt6 support

This commit is contained in:
Simon Stürz 2025-08-08 15:00:32 +02:00
parent a7ccccd962
commit d991034b61
2 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,6 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright 2013 - 2023, nymea GmbH * Copyright 2013 - 2025, nymea GmbH
* Contact: contact@nymea.io * Contact: contact@nymea.io
* *
* This file is part of nymea. * This file is part of nymea.
@ -81,7 +81,7 @@ void IntegrationPluginNotfyEvents::executeAction(ThingActionInfo *info)
connect(reply, &QNetworkReply::finished, info, [reply, info]{ connect(reply, &QNetworkReply::finished, info, [reply, info]{
if (reply->error() != QNetworkReply::NoError) { if (reply->error() != QNetworkReply::NoError) {
qCWarning(dcNotifyEvents()) << "Notify.Events message sending failed for" << info->thing()->name() << info->thing()->id() << reply->errorString() << reply->error(); 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; return;
} }
@ -96,10 +96,7 @@ void IntegrationPluginNotfyEvents::executeAction(ThingActionInfo *info)
return; return;
} }
QVariantMap replyMap = jsonDoc.toVariant().toMap(); qCDebug(dcNotifyEvents()) << qUtf8Printable(jsonDoc.toJson());
qDebug(dcNotifyEvents()) << qUtf8Printable(jsonDoc.toJson());
qCDebug(dcNotifyEvents()) << "Message sent successfully"; qCDebug(dcNotifyEvents()) << "Message sent successfully";
info->finish(Thing::ThingErrorNoError); info->finish(Thing::ThingErrorNoError);
}); });

View File

@ -1,6 +1,6 @@
include(../plugins.pri) include(../plugins.pri)
QT+= network QT *= network
SOURCES += \ SOURCES += \
integrationpluginnotifyevents.cpp integrationpluginnotifyevents.cpp