From 7affcb03135a21bdb6bad5f3788eb942d762687c Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Mon, 4 Dec 2023 10:31:52 +0100 Subject: [PATCH] Update DeviceControllerInterface 1.0.3 Signal cashPaymentFinished() --- src/ATBAPP/DeviceControllerInterface.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/ATBAPP/DeviceControllerInterface.h b/src/ATBAPP/DeviceControllerInterface.h index edd737e..39645c8 100644 --- a/src/ATBAPP/DeviceControllerInterface.h +++ b/src/ATBAPP/DeviceControllerInterface.h @@ -125,6 +125,21 @@ signals: const QString & errorCode, const QString & errorDescription); + /** + * emitted if cashPayment has been finished, e.g. in result to task cashCollect(): + * -> ticket should be printed sucessfully + * -> coins in excrow or changer are given back to user + * Provides data for logging, especially changed value + */ + void cashPaymentFinished(nsDeviceControllerInterface::RESULT_STATE resultState, + const QString & newCashValue, // total inserted amount amount + const QString & coinValue, // inserted amount, paid with coins + const QString & noteValue, // inserted amount, paid with notes + const QString & changeValue, // amount changed by changer/escrow + const QString & errorCode, + const QString & errorDescription); + + /** * emitted e.g. if service door is opened @@ -167,7 +182,7 @@ signals: Q_DECLARE_INTERFACE(DeviceControllerInterface, - "eu.atb.ptu.plugin.DeviceControllerInterface/1.0.2") + "eu.atb.ptu.plugin.DeviceControllerInterface/1.0.3") namespace nsDeviceControllerInterface {