DeviceControllerInterface 1.2.0

This commit is contained in:
Siegfried Siegert 2024-09-13 14:54:48 +02:00
parent acf3e143c1
commit bacee366b8
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -60,9 +60,10 @@ public:
virtual void requestStopCashInput() = 0; virtual void requestStopCashInput() = 0;
/** /**
* called e.g. on Button "NEXT" in pay-up (direct coin input) * called e.g. after printing
*/ */
virtual void cashCollect() = 0; virtual void cashCollect() = 0;
virtual void cashCollect(const QString & amount) = 0;
virtual void cashAbort() = 0; virtual void cashAbort() = 0;
// TASKS: Account ------------------------------------------------------------- // TASKS: Account -------------------------------------------------------------
@ -138,6 +139,14 @@ signals:
const QString & errorCode, const QString & errorCode,
const QString & errorDescription); const QString & errorDescription);
/**
* emitted if cashPayment has been finished, e.g. in result to task cashCollect():
* if coins in changer must be given back to user.
*/
void cashPaymentChanging(nsDeviceControllerInterface::RESULT_STATE resultState,
const QString & changeValue, // amount changed by changer/escrow
const QString & errorCode,
const QString & errorDescription);
/** /**
* emitted if cashPayment has been finished, e.g. in result to task cashCollect(): * emitted if cashPayment has been finished, e.g. in result to task cashCollect():
* -> ticket should be printed sucessfully * -> ticket should be printed sucessfully
@ -145,7 +154,7 @@ signals:
* Provides data for logging, especially changed value * Provides data for logging, especially changed value
*/ */
void cashPaymentFinished(nsDeviceControllerInterface::RESULT_STATE resultState, void cashPaymentFinished(nsDeviceControllerInterface::RESULT_STATE resultState,
const QString & newCashValue, // total inserted amount amount const QString & newCashValue, // total inserted amount
const QString & coinValue, // inserted amount, paid with coins const QString & coinValue, // inserted amount, paid with coins
const QString & noteValue, // inserted amount, paid with notes const QString & noteValue, // inserted amount, paid with notes
const QString & changeValue, // amount changed by changer/escrow const QString & changeValue, // amount changed by changer/escrow
@ -203,7 +212,7 @@ signals:
Q_DECLARE_INTERFACE(DeviceControllerInterface, Q_DECLARE_INTERFACE(DeviceControllerInterface,
"eu.atb.ptu.plugin.DeviceControllerInterface/1.1.6") "eu.atb.ptu.plugin.DeviceControllerInterface/1.2.0")
namespace nsDeviceControllerInterface { namespace nsDeviceControllerInterface {