From d5f7a45a572f8844bcaffb55fc97b4b14bf7b54a Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 16 Nov 2023 08:47:52 +0100 Subject: [PATCH] Extend getString(). --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index d7d9b3d..a27bfc1 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -1094,7 +1094,7 @@ QStringList ATBDeviceControllerPlugin::getPluginInfoList() { QString const &ATBDeviceControllerPlugin::getString(nsDeviceControllerInterface::RESULT_STATE resultState) { - QString str; + static QString str; switch (resultState) { case nsDeviceControllerInterface::RESULT_STATE::SUCCESS: @@ -1115,6 +1115,15 @@ QString const &ATBDeviceControllerPlugin::getString(nsDeviceControllerInterface: case nsDeviceControllerInterface::RESULT_STATE::INFO: str = QString("RESULT_STATE::INFO"); break; + case nsDeviceControllerInterface::RESULT_STATE::ERROR_NETWORK: + str = QString("RESULT_STATE::ERROR_NETWORK"); + break; + case nsDeviceControllerInterface::RESULT_STATE::ERROR_BUSY: + str = QString("RESULT_STATE::ERROR_BUSY"); + break; + case nsDeviceControllerInterface::RESULT_STATE::ERROR_STATE: + str = QString("RESULT_STATE::ERROR_STATE"); + break; } return str;