From 40a67689a54d0470bf62a20ade4f5ed4485f4089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Fri, 8 Aug 2025 16:34:31 +0200 Subject: [PATCH] spothinta: Add Qt6 support --- spothinta/integrationpluginspothinta.cpp | 12 +++++++----- spothinta/integrationpluginspothinta.h | 7 ++++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/spothinta/integrationpluginspothinta.cpp b/spothinta/integrationpluginspothinta.cpp index 57014bc0..ddd95864 100644 --- a/spothinta/integrationpluginspothinta.cpp +++ b/spothinta/integrationpluginspothinta.cpp @@ -1,6 +1,6 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2022, nymea GmbH +* Copyright 2013 - 2025, nymea GmbH * Contact: contact@nymea.io * * This file is part of nymea. @@ -29,10 +29,12 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include "integrationpluginspothinta.h" -#include "integrations/thing.h" #include "plugininfo.h" -#include "hardwaremanager.h" -#include "network/networkaccessmanager.h" + +#include +#include +#include +#include #include #include @@ -154,7 +156,7 @@ void IntegrationPluginSpotHinta::processPriceData(Thing *thing, const QVariant & minPrice = price; thing->setStateValue(spothintaCurrentMarketPriceStateTypeId, price); - thing->setStateValue(spothintaValidUntilStateTypeId, endTime.toLocalTime().toTime_t()); + thing->setStateValue(spothintaValidUntilStateTypeId, endTime.toLocalTime().toSecsSinceEpoch()); thing->setStateValue(spothintaCurrentRankStateTypeId, rank); } } diff --git a/spothinta/integrationpluginspothinta.h b/spothinta/integrationpluginspothinta.h index a1f88c23..cc810674 100644 --- a/spothinta/integrationpluginspothinta.h +++ b/spothinta/integrationpluginspothinta.h @@ -1,6 +1,6 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2022, nymea GmbH +* Copyright 2013 - 2025, nymea GmbH * Contact: contact@nymea.io * * This file is part of nymea. @@ -31,10 +31,11 @@ #ifndef INTEGRATIONPLUGINSPOTHINTA_H #define INTEGRATIONPLUGINSPOTHINTA_H -#include "integrations/integrationplugin.h" -#include "plugintimer.h" +#include #include "extern-plugininfo.h" +class PluginTimer; + class IntegrationPluginSpotHinta : public IntegrationPlugin { Q_OBJECT