Extend getString().

This commit is contained in:
Gerhard Hoffmann 2023-11-16 08:47:52 +01:00
parent 18c98abc5b
commit d5f7a45a57

View File

@ -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;