mystrom: Add Qt6 support
This commit is contained in:
parent
c323e0ffd7
commit
47d8cb8a7b
@ -1,6 +1,6 @@
|
|||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
*
|
*
|
||||||
* Copyright 2013 - 2021, 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.
|
||||||
@ -254,7 +254,7 @@ QUrl IntegrationPluginMyStrom::composeUrl(Thing *thing, const QString &path)
|
|||||||
|
|
||||||
if (address.isNull()) {
|
if (address.isNull()) {
|
||||||
pluginStorage()->beginGroup(thing->id().toString());
|
pluginStorage()->beginGroup(thing->id().toString());
|
||||||
address = pluginStorage()->value("cachedAddress").toString();
|
address = QHostAddress(pluginStorage()->value("cachedAddress").toString());
|
||||||
pluginStorage()->endGroup();
|
pluginStorage()->endGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
*
|
*
|
||||||
* Copyright 2013 - 2021, 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.
|
||||||
@ -31,7 +31,7 @@
|
|||||||
#ifndef INTEGRATIONPLUGINMYSTROM_H
|
#ifndef INTEGRATIONPLUGINMYSTROM_H
|
||||||
#define INTEGRATIONPLUGINMYSTROM_H
|
#define INTEGRATIONPLUGINMYSTROM_H
|
||||||
|
|
||||||
#include "integrations/integrationplugin.h"
|
#include <integrations/integrationplugin.h>
|
||||||
|
|
||||||
#include <QUrlQuery>
|
#include <QUrlQuery>
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
@ -58,7 +58,7 @@ public:
|
|||||||
void executeAction(ThingActionInfo *info) override;
|
void executeAction(ThingActionInfo *info) override;
|
||||||
|
|
||||||
private:
|
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);
|
QUrl composeUrl(Thing *thing, const QString &path);
|
||||||
|
|
||||||
ZeroConfServiceBrowser *m_zeroConf = nullptr;
|
ZeroConfServiceBrowser *m_zeroConf = nullptr;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user