diff --git a/tempo/integrationplugintempo.cpp b/tempo/integrationplugintempo.cpp index 856c1efa..62682062 100644 --- a/tempo/integrationplugintempo.cpp +++ b/tempo/integrationplugintempo.cpp @@ -1,6 +1,6 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -* Copyright 2013 - 2020, nymea GmbH +* Copyright 2013 - 2025, nymea GmbH * Contact: contact@nymea.io * * This file is part of nymea. @@ -31,7 +31,8 @@ #include "integrationplugintempo.h" #include "plugininfo.h" -#include "network/networkaccessmanager.h" +#include +#include #include #include diff --git a/tempo/integrationplugintempo.h b/tempo/integrationplugintempo.h index 17d73b22..5bfab717 100644 --- a/tempo/integrationplugintempo.h +++ b/tempo/integrationplugintempo.h @@ -31,11 +31,12 @@ #ifndef INTEGRATIONPLUGINTEMPO_H #define INTEGRATIONPLUGINTEMPO_H -#include "integrations/integrationplugin.h" -#include "plugintimer.h" +#include #include "tempo.h" +class PluginTimer; + class IntegrationPluginTempo : public IntegrationPlugin { Q_OBJECT @@ -70,5 +71,6 @@ private slots: void onAccountWorkloadReceived(const QString &accountKey, QList workloads, int limit, int offset); void onTeamWorkloadReceived(int teamId, QList workloads, int limit, int offset); + }; #endif // INTEGRATIONPLUGINTEMPO_H diff --git a/tempo/tempo.cpp b/tempo/tempo.cpp index b0f698fa..5a6c5dca 100644 --- a/tempo/tempo.cpp +++ b/tempo/tempo.cpp @@ -291,19 +291,19 @@ bool Tempo::checkStatusCode(QNetworkReply *reply, const QByteArray &rawData) case 400: //Error occurred (e.g. validation error - value is out of range) if(!jsonDoc.toVariant().toMap().contains("error")) { if(jsonDoc.toVariant().toMap().value("error").toString() == "invalid_client") { - qWarning(dcTempo()) << "Client token provided doesn’t correspond to client that generated auth code."; + qCWarning(dcTempo()) << "Client token provided doesn’t correspond to client that generated auth code."; } if(jsonDoc.toVariant().toMap().value("error").toString() == "invalid_redirect_uri") { - qWarning(dcTempo()) << "Missing redirect_uri parameter."; + qCWarning(dcTempo()) << "Missing redirect_uri parameter."; } if(jsonDoc.toVariant().toMap().value("error").toString() == "invalid_code") { - qWarning(dcTempo()) << "Expired authorization code."; + qCWarning(dcTempo()) << "Expired authorization code."; } } setAuthenticated(false); return false; case 401: - qWarning(dcTempo()) << "Client does not have permission to use this API."; + qCWarning(dcTempo()) << "Client does not have permission to use this API."; setAuthenticated(false); return false; case 403: @@ -314,7 +314,7 @@ bool Tempo::checkStatusCode(QNetworkReply *reply, const QByteArray &rawData) qCWarning(dcTempo()) << "Not Found. This resource is not available (e.g. no images on washing machine)"; return false; case 405: - qWarning(dcTempo()) << "Wrong HTTP method used."; + qCWarning(dcTempo()) << "Wrong HTTP method used."; setAuthenticated(false); return false; case 408: diff --git a/tempo/tempo.pro b/tempo/tempo.pro index f649c4e5..1a84d1c3 100644 --- a/tempo/tempo.pro +++ b/tempo/tempo.pro @@ -1,8 +1,6 @@ include(../plugins.pri) -QT += network - -TARGET = $$qtLibraryTarget(nymea_integrationplugintempo) +QT *= network SOURCES += \ integrationplugintempo.cpp \