From 1334bb5bc707c21c7af8e991bd87627f4f4414ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 14 Jul 2020 16:36:03 +0200 Subject: [PATCH] Fix missing name override for json handlers --- libnymea-core/jsonrpc/actionhandler.h | 2 +- libnymea-core/jsonrpc/configurationhandler.h | 2 +- libnymea-core/jsonrpc/jsonrpcserverimplementation.h | 2 +- libnymea-core/jsonrpc/networkmanagerhandler.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libnymea-core/jsonrpc/actionhandler.h b/libnymea-core/jsonrpc/actionhandler.h index e73111a9..30ab6151 100644 --- a/libnymea-core/jsonrpc/actionhandler.h +++ b/libnymea-core/jsonrpc/actionhandler.h @@ -42,7 +42,7 @@ class ActionHandler : public JsonHandler public: explicit ActionHandler(QObject *parent = nullptr); - QString name() const; + QString name() const override; Q_INVOKABLE JsonReply *ExecuteAction(const QVariantMap ¶ms, const JsonContext &context); Q_INVOKABLE JsonReply *GetActionType(const QVariantMap ¶ms, const JsonContext &context) const; diff --git a/libnymea-core/jsonrpc/configurationhandler.h b/libnymea-core/jsonrpc/configurationhandler.h index 1e93f665..47bb5249 100644 --- a/libnymea-core/jsonrpc/configurationhandler.h +++ b/libnymea-core/jsonrpc/configurationhandler.h @@ -44,7 +44,7 @@ class ConfigurationHandler : public JsonHandler public: ConfigurationHandler(QObject *parent = nullptr); - QString name() const; + QString name() const override; Q_INVOKABLE JsonReply *GetConfigurations(const QVariantMap ¶ms) const; Q_INVOKABLE JsonReply *GetTimeZones(const QVariantMap ¶ms) const; diff --git a/libnymea-core/jsonrpc/jsonrpcserverimplementation.h b/libnymea-core/jsonrpc/jsonrpcserverimplementation.h index 8b533a0d..1430526b 100644 --- a/libnymea-core/jsonrpc/jsonrpcserverimplementation.h +++ b/libnymea-core/jsonrpc/jsonrpcserverimplementation.h @@ -56,7 +56,7 @@ public: JsonRPCServerImplementation(const QSslConfiguration &sslConfiguration = QSslConfiguration(), QObject *parent = nullptr); // JsonHandler API implementation - QString name() const; + QString name() const override; Q_INVOKABLE JsonReply *Hello(const QVariantMap ¶ms, const JsonContext &context); Q_INVOKABLE JsonReply *Introspect(const QVariantMap ¶ms) const; Q_INVOKABLE JsonReply *Version(const QVariantMap ¶ms) const; diff --git a/libnymea-core/jsonrpc/networkmanagerhandler.h b/libnymea-core/jsonrpc/networkmanagerhandler.h index d09445ab..11f48de4 100644 --- a/libnymea-core/jsonrpc/networkmanagerhandler.h +++ b/libnymea-core/jsonrpc/networkmanagerhandler.h @@ -44,7 +44,7 @@ class NetworkManagerHandler : public JsonHandler public: explicit NetworkManagerHandler(NetworkManager *networkManager, QObject *parent = nullptr); - QString name() const; + QString name() const override; Q_INVOKABLE JsonReply *GetNetworkStatus(const QVariantMap ¶ms); Q_INVOKABLE JsonReply *EnableNetworking(const QVariantMap ¶ms);