diff --git a/keba/integrationpluginkeba.cpp b/keba/integrationpluginkeba.cpp index d96ef2ed..c25c0c6c 100644 --- a/keba/integrationpluginkeba.cpp +++ b/keba/integrationpluginkeba.cpp @@ -1,6 +1,6 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2024, nymea GmbH +* Copyright 2013 - 2025, nymea GmbH * Contact: contact@nymea.io * * This file is part of nymea. @@ -28,9 +28,9 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "plugininfo.h" -#include "kebaproductinfo.h" #include "integrationpluginkeba.h" +#include "kebaproductinfo.h" +#include "plugininfo.h" #include #include diff --git a/keba/keba.pro b/keba/keba.pro index d28edbd8..af37ee02 100644 --- a/keba/keba.pro +++ b/keba/keba.pro @@ -1,8 +1,6 @@ include(../plugins.pri) -QT += network - -TARGET = $$qtLibraryTarget(nymea_integrationpluginkeba) +QT *= network SOURCES += \ integrationpluginkeba.cpp \ diff --git a/keba/kecontact.h b/keba/kecontact.h index 3df318d1..321bc65e 100644 --- a/keba/kecontact.h +++ b/keba/kecontact.h @@ -1,6 +1,6 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2021, nymea GmbH +* Copyright 2013 - 2025, nymea GmbH * Contact: contact@nymea.io * * This file is part of nymea. @@ -228,11 +228,11 @@ signals: void reachableChanged(bool status); void commandExecuted(QUuid requestId, bool success); void deviceInformationReceived(const QString &firmware); - void reportOneReceived(const ReportOne &reportOne); - void reportTwoReceived(const ReportTwo &reportTwo); - void reportThreeReceived(const ReportThree &reportThree); - void report1XXReceived(int reportNumber, const Report1XX &report); - void broadcastReceived(BroadcastType type, const QVariant &content); + void reportOneReceived(const KeContact::ReportOne &reportOne); + void reportTwoReceived(const KeContact::ReportTwo &reportTwo); + void reportThreeReceived(const KeContact::ReportThree &reportThree); + void report1XXReceived(int reportNumber, const KeContact::Report1XX &report); + void broadcastReceived(KeContact::BroadcastType type, const QVariant &content); private slots: void onReceivedDatagram(const QHostAddress &address, const QByteArray &datagram); diff --git a/keba/kecontactdatalayer.cpp b/keba/kecontactdatalayer.cpp index 806c1a60..a60e5c1c 100644 --- a/keba/kecontactdatalayer.cpp +++ b/keba/kecontactdatalayer.cpp @@ -37,7 +37,11 @@ KeContactDataLayer::KeContactDataLayer(QObject *parent) : QObject(parent) m_udpSocket = new QUdpSocket(this); connect(m_udpSocket, &QUdpSocket::readyRead, this, &KeContactDataLayer::readPendingDatagrams); connect(m_udpSocket, &QUdpSocket::stateChanged, this, &KeContactDataLayer::onSocketStateChanged); +#if QT_VERSION >= QT_VERSION_CHECK(6,0,0) + connect(m_udpSocket, &QUdpSocket::errorOccurred, this, &KeContactDataLayer::onSocketError); +#else connect(m_udpSocket, SIGNAL(error(QAbstractSocket::SocketError)),this, SLOT(onSocketError(QAbstractSocket::SocketError))); +#endif } KeContactDataLayer::~KeContactDataLayer()