Extend getString().

This commit is contained in:
Gerhard Hoffmann 2023-11-17 11:46:29 +01:00
parent 38994ac192
commit 2efdbe2d68

View File

@ -112,8 +112,6 @@ QString const &ATBVMCPlugin::getLastErrorDescription() {
return m_errorDescription;
}
// helpers e.g. for debug / log
QString const &ATBVMCPlugin::getString(RESULT_STATE resultState) {
static QString str;
@ -137,6 +135,15 @@ QString const &ATBVMCPlugin::getString(RESULT_STATE resultState) {
case RESULT_STATE::INFO:
str = QString("RESULT_STATE::INFO");
break;
case RESULT_STATE::ERROR_NETWORK:
str = QString("RESULT_STATE::ERROR_NETWORK");
break;
case RESULT_STATE::ERROR_BUSY:
str = QString("RESULT_STATE::ERROR_BUSY");
break;
case RESULT_STATE::ERROR_STATE:
str = QString("RESULT_STATE::ERROR_STATE");
break;
}
return str;
}