diff --git a/src/ATBAPP/DeviceControllerInterface.h b/src/ATBAPP/DeviceControllerInterface.h index caae99f..8ad9581 100644 --- a/src/ATBAPP/DeviceControllerInterface.h +++ b/src/ATBAPP/DeviceControllerInterface.h @@ -60,9 +60,10 @@ public: 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(const QString & amount) = 0; virtual void cashAbort() = 0; // TASKS: Account ------------------------------------------------------------- @@ -138,6 +139,14 @@ signals: const QString & errorCode, 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(): * -> ticket should be printed sucessfully @@ -145,7 +154,7 @@ signals: * Provides data for logging, especially changed value */ 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 & noteValue, // inserted amount, paid with notes const QString & changeValue, // amount changed by changer/escrow @@ -203,7 +212,7 @@ signals: Q_DECLARE_INTERFACE(DeviceControllerInterface, - "eu.atb.ptu.plugin.DeviceControllerInterface/1.1.6") + "eu.atb.ptu.plugin.DeviceControllerInterface/1.2.0") namespace nsDeviceControllerInterface {