From b6a3a8e0bf4848712fe2e24fafe0c151c285fa27 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 16 Dec 2019 11:35:38 +0100 Subject: [PATCH] fix typos in api doc --- libnymea-core/jsonrpc/systemhandler.cpp | 10 +++++----- tests/auto/api.json | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libnymea-core/jsonrpc/systemhandler.cpp b/libnymea-core/jsonrpc/systemhandler.cpp index 7ff8ad3a..859d7c07 100644 --- a/libnymea-core/jsonrpc/systemhandler.cpp +++ b/libnymea-core/jsonrpc/systemhandler.cpp @@ -39,10 +39,10 @@ SystemHandler::SystemHandler(Platform *platform, QObject *parent): // Methods QString description; QVariantMap params; QVariantMap returns; description = "Get the list of capabilites on this system. The property \"powerManagement\" indicates whether " - "rebooting or shutting down the system running nymea:core is supported on this host. The property " - "\"updateManagement indicates whether system update features are available in this API. The " - "property \"timeManagement\" indicates whether the system time can be configured on this system. " - "Note that GetTime will be available in any case."; + "rebooting or shutting down is supported on this system. The property \"updateManagement indicates " + "whether system update features are available in this system. The property \"timeManagement\" " + "indicates whether the system time can be configured on this system. Note that GetTime will be " + "available in any case."; returns.insert("powerManagement", enumValueName(Bool)); returns.insert("updateManagement", enumValueName(Bool)); returns.insert("timeManagement", enumValueName(Bool)); @@ -150,7 +150,7 @@ SystemHandler::SystemHandler(Platform *platform, QObject *parent): params.clear(); returns.clear(); description = "Returns the list of IANA specified time zone IDs which can be used to select a time zone. It is not " - "required to use this method of the client toolkit already provides means to obtain a list of IANA time " + "required to use this method if the client toolkit already provides means to obtain a list of IANA time " "zone ids."; returns.insert("timeZones", enumValueName(StringList)); registerMethod("GetTimeZones", description, params, returns); diff --git a/tests/auto/api.json b/tests/auto/api.json index e6c42d70..41b81257 100644 --- a/tests/auto/api.json +++ b/tests/auto/api.json @@ -1257,7 +1257,7 @@ } }, "System.GetCapabilities": { - "description": "Get the list of capabilites on this system. The property \"powerManagement\" indicates whether rebooting or shutting down the system running nymea:core is supported on this host. The property \"updateManagement indicates whether system update features are available in this API. The property \"timeManagement\" indicates whether the system time can be configured on this system. Note that GetTime will be available in any case.", + "description": "Get the list of capabilites on this system. The property \"powerManagement\" indicates whether rebooting or shutting down is supported on this system. The property \"updateManagement indicates whether system update features are available in this system. The property \"timeManagement\" indicates whether the system time can be configured on this system. Note that GetTime will be available in any case.", "params": { }, "returns": { @@ -1294,7 +1294,7 @@ } }, "System.GetTimeZones": { - "description": "Returns the list of IANA specified time zone IDs which can be used to select a time zone. It is not required to use this method of the client toolkit already provides means to obtain a list of IANA time zone ids.", + "description": "Returns the list of IANA specified time zone IDs which can be used to select a time zone. It is not required to use this method if the client toolkit already provides means to obtain a list of IANA time zone ids.", "params": { }, "returns": {