DeviceControllerInterface: erroCode is a string

This commit is contained in:
Siegfried Siegert 2023-05-02 17:07:48 +02:00
parent c6574280ac
commit 8ff17a2e00
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03
3 changed files with 4 additions and 5 deletions

View File

@ -74,7 +74,7 @@ PLUGIN_STATE ATBDeviceControllerPlugin::getState()
return this->pluginState;
}
quint32 ATBDeviceControllerPlugin::getLastError()
QString & ATBDeviceControllerPlugin::getLastError()
{
return this->errorCode;
}

View File

@ -51,7 +51,7 @@ public:
// mandantory ATBAPP plugin methods: ------------------------------------------
nsDeviceControllerInterface::PLUGIN_STATE getState();
quint32 getLastError();
QString & getLastError();
const QString & getLastErrorDescription();
const QString & getPluginInfo();
@ -89,8 +89,7 @@ signals:
private:
quint32 errorCode;
QString errorCodeString;
QString errorCode;
QString errorDescription;
QString pluginInfo;

View File

@ -52,7 +52,7 @@ public:
// mandantory ATBAPP plugin methods:
virtual nsDeviceControllerInterface::PLUGIN_STATE getState() = 0;
virtual quint32 getLastError() = 0;
virtual const QString & getLastError() = 0;
virtual const QString & getLastErrorDescription() = 0;
// return a plugin description in JSON or XML