From 8c1aa261451d764d51dc5d7058e03da8fc0b72b4 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Thu, 30 Nov 2023 12:04:11 +0100 Subject: [PATCH] Update DeviceControllerInterface 1.0.2 Send cashInputFinished with coins/notes/change --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 12 ++++++++++++ src/ATBAPP/DeviceControllerInterface.h | 6 ++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index c81d3a8..c60d725 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -929,6 +929,9 @@ void ATBDeviceControllerPlugin::onCashPayStopByEscrow() emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::ERROR_BACKEND, amountString, "", + "", + "", + "", ""); } @@ -944,6 +947,9 @@ void ATBDeviceControllerPlugin::onCashPayStopByError() emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::ERROR_BACKEND, amountString, "", + "", + "", + "", ""); } @@ -959,6 +965,9 @@ void ATBDeviceControllerPlugin::onCashPayStopByTimeout() emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::ERROR_BACKEND, amountString, "", + "", + "", + "", ""); } @@ -976,6 +985,9 @@ void ATBDeviceControllerPlugin::onCashPayStopedSuccess() emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::SUCCESS, amountString, + "", // coins + "", // notes + "", // change "", ""); } diff --git a/src/ATBAPP/DeviceControllerInterface.h b/src/ATBAPP/DeviceControllerInterface.h index 61e1318..edd737e 100644 --- a/src/ATBAPP/DeviceControllerInterface.h +++ b/src/ATBAPP/DeviceControllerInterface.h @@ -119,7 +119,9 @@ signals: */ void cashInputFinished(nsDeviceControllerInterface::RESULT_STATE resultState, const QString & newCashValue, - /* additional variables? */ + const QString & coinValue, + const QString & noteValue, + const QString & changeValue, const QString & errorCode, const QString & errorDescription); @@ -165,7 +167,7 @@ signals: Q_DECLARE_INTERFACE(DeviceControllerInterface, - "eu.atb.ptu.plugin.DeviceControllerInterface/1.0.1") + "eu.atb.ptu.plugin.DeviceControllerInterface/1.0.2") namespace nsDeviceControllerInterface {