Update DeviceControllerInterface 1.0.2

Send cashInputFinished with coins/notes/change
This commit is contained in:
Siegfried Siegert 2023-11-30 12:04:11 +01:00
parent 30de664991
commit 8c1aa26145
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03
2 changed files with 16 additions and 2 deletions

View File

@ -929,6 +929,9 @@ void ATBDeviceControllerPlugin::onCashPayStopByEscrow()
emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::ERROR_BACKEND, emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::ERROR_BACKEND,
amountString, amountString,
"", "",
"",
"",
"",
""); "");
} }
@ -944,6 +947,9 @@ void ATBDeviceControllerPlugin::onCashPayStopByError()
emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::ERROR_BACKEND, emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::ERROR_BACKEND,
amountString, amountString,
"", "",
"",
"",
"",
""); "");
} }
@ -959,6 +965,9 @@ void ATBDeviceControllerPlugin::onCashPayStopByTimeout()
emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::ERROR_BACKEND, emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::ERROR_BACKEND,
amountString, amountString,
"", "",
"",
"",
"",
""); "");
} }
@ -976,6 +985,9 @@ void ATBDeviceControllerPlugin::onCashPayStopedSuccess()
emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::SUCCESS, emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::SUCCESS,
amountString, amountString,
"", // coins
"", // notes
"", // change
"", "",
""); "");
} }

View File

@ -119,7 +119,9 @@ signals:
*/ */
void cashInputFinished(nsDeviceControllerInterface::RESULT_STATE resultState, void cashInputFinished(nsDeviceControllerInterface::RESULT_STATE resultState,
const QString & newCashValue, const QString & newCashValue,
/* additional variables? */ const QString & coinValue,
const QString & noteValue,
const QString & changeValue,
const QString & errorCode, const QString & errorCode,
const QString & errorDescription); const QString & errorDescription);
@ -165,7 +167,7 @@ signals:
Q_DECLARE_INTERFACE(DeviceControllerInterface, Q_DECLARE_INTERFACE(DeviceControllerInterface,
"eu.atb.ptu.plugin.DeviceControllerInterface/1.0.1") "eu.atb.ptu.plugin.DeviceControllerInterface/1.0.2")
namespace nsDeviceControllerInterface { namespace nsDeviceControllerInterface {