From 8ff17a2e00619247ef7381d74f75d597465c3b7f Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Tue, 2 May 2023 17:07:48 +0200 Subject: [PATCH] DeviceControllerInterface: erroCode is a string --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 2 +- src/ATBAPP/ATBDeviceControllerPlugin.h | 5 ++--- src/ATBAPP/DeviceControllerInterface.h | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index 00d6d04..a93926e 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -74,7 +74,7 @@ PLUGIN_STATE ATBDeviceControllerPlugin::getState() return this->pluginState; } -quint32 ATBDeviceControllerPlugin::getLastError() +QString & ATBDeviceControllerPlugin::getLastError() { return this->errorCode; } diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.h b/src/ATBAPP/ATBDeviceControllerPlugin.h index ba70a20..3f74bf0 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.h +++ b/src/ATBAPP/ATBDeviceControllerPlugin.h @@ -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; diff --git a/src/ATBAPP/DeviceControllerInterface.h b/src/ATBAPP/DeviceControllerInterface.h index 2f4641a..3d5d3e8 100644 --- a/src/ATBAPP/DeviceControllerInterface.h +++ b/src/ATBAPP/DeviceControllerInterface.h @@ -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