Extend getString().
This commit is contained in:
parent
18c98abc5b
commit
d5f7a45a57
@ -1094,7 +1094,7 @@ QStringList ATBDeviceControllerPlugin::getPluginInfoList() {
|
|||||||
|
|
||||||
QString const &ATBDeviceControllerPlugin::getString(nsDeviceControllerInterface::RESULT_STATE resultState)
|
QString const &ATBDeviceControllerPlugin::getString(nsDeviceControllerInterface::RESULT_STATE resultState)
|
||||||
{
|
{
|
||||||
QString str;
|
static QString str;
|
||||||
|
|
||||||
switch (resultState) {
|
switch (resultState) {
|
||||||
case nsDeviceControllerInterface::RESULT_STATE::SUCCESS:
|
case nsDeviceControllerInterface::RESULT_STATE::SUCCESS:
|
||||||
@ -1115,6 +1115,15 @@ QString const &ATBDeviceControllerPlugin::getString(nsDeviceControllerInterface:
|
|||||||
case nsDeviceControllerInterface::RESULT_STATE::INFO:
|
case nsDeviceControllerInterface::RESULT_STATE::INFO:
|
||||||
str = QString("RESULT_STATE::INFO");
|
str = QString("RESULT_STATE::INFO");
|
||||||
break;
|
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;
|
return str;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user