wakeonlan: Add Qt6 support

This commit is contained in:
Simon Stürz 2025-08-11 15:03:32 +02:00
parent 2bc88e5aa2
commit d9e02a719c
3 changed files with 6 additions and 11 deletions

View File

@ -1,6 +1,6 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright 2013 - 2020, 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.
@ -29,13 +29,13 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "integrationpluginwakeonlan.h" #include "integrationpluginwakeonlan.h"
#include "integrations/thing.h"
#include "plugininfo.h" #include "plugininfo.h"
#include "network/networkdevicediscovery.h" #include <integrations/thing.h>
#include <network/networkdevicediscovery.h>
#include <QDebug> #include <QDebug>
#include <QProcess>
#include <QStringList> #include <QStringList>
#include <QUdpSocket> #include <QUdpSocket>

View File

@ -31,9 +31,7 @@
#ifndef INTEGRATIONPLUGINWAKEONLAN_H #ifndef INTEGRATIONPLUGINWAKEONLAN_H
#define INTEGRATIONPLUGINWAKEONLAN_H #define INTEGRATIONPLUGINWAKEONLAN_H
#include "integrations/integrationplugin.h" #include <integrations/integrationplugin.h>
#include <QProcess>
class IntegrationPluginWakeOnLan : public IntegrationPlugin class IntegrationPluginWakeOnLan : public IntegrationPlugin
{ {
@ -46,7 +44,6 @@ public:
explicit IntegrationPluginWakeOnLan(); explicit IntegrationPluginWakeOnLan();
void discoverThings(ThingDiscoveryInfo *info) override; void discoverThings(ThingDiscoveryInfo *info) override;
void executeAction(ThingActionInfo *info) override; void executeAction(ThingActionInfo *info) override;
private slots: private slots:

View File

@ -1,8 +1,6 @@
include(../plugins.pri) include(../plugins.pri)
TARGET = $$qtLibraryTarget(nymea_integrationpluginwakeonlan) QT *= network
QT += network
SOURCES += \ SOURCES += \
integrationpluginwakeonlan.cpp integrationpluginwakeonlan.cpp