mystrom: Add Qt6 support

This commit is contained in:
Simon Stürz 2025-08-08 14:51:07 +02:00
parent c323e0ffd7
commit 47d8cb8a7b
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Copyright 2013 - 2021, nymea GmbH
* Copyright 2013 - 2025, nymea GmbH
* Contact: contact@nymea.io
*
* This file is part of nymea.
@ -254,7 +254,7 @@ QUrl IntegrationPluginMyStrom::composeUrl(Thing *thing, const QString &path)
if (address.isNull()) {
pluginStorage()->beginGroup(thing->id().toString());
address = pluginStorage()->value("cachedAddress").toString();
address = QHostAddress(pluginStorage()->value("cachedAddress").toString());
pluginStorage()->endGroup();
}

View File

@ -1,6 +1,6 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Copyright 2013 - 2021, nymea GmbH
* Copyright 2013 - 2025, nymea GmbH
* Contact: contact@nymea.io
*
* This file is part of nymea.
@ -31,7 +31,7 @@
#ifndef INTEGRATIONPLUGINMYSTROM_H
#define INTEGRATIONPLUGINMYSTROM_H
#include "integrations/integrationplugin.h"
#include <integrations/integrationplugin.h>
#include <QUrlQuery>
#include <QNetworkReply>
@ -58,7 +58,7 @@ public:
void executeAction(ThingActionInfo *info) override;
private:
void finishDiscoveryReply(QNetworkReply* reply, ThingDiscoveryInfo* info, QList<QNetworkReply*> *pendingReplies);
void finishDiscoveryReply(QNetworkReply *reply, ThingDiscoveryInfo *info, QList<QNetworkReply *> *pendingReplies);
QUrl composeUrl(Thing *thing, const QString &path);
ZeroConfServiceBrowser *m_zeroConf = nullptr;