Send cashInputFinished(), when cash input is finished
This commit is contained in:
parent
2717c614e3
commit
98ef7b7b26
@ -75,6 +75,9 @@ void ATBDeviceControllerPlugin::requestStartCashInput(const QString & amount)
|
|||||||
void ATBDeviceControllerPlugin::requestStopCashInput()
|
void ATBDeviceControllerPlugin::requestStopCashInput()
|
||||||
{
|
{
|
||||||
hw->cash_stopPayment();
|
hw->cash_stopPayment();
|
||||||
|
|
||||||
|
// we need new cash value in application...
|
||||||
|
QTimer::singleShot(500, this, SLOT(onCashPayStoped()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ATBDeviceControllerPlugin::cashCollect()
|
void ATBDeviceControllerPlugin::cashCollect()
|
||||||
@ -322,6 +325,21 @@ void ATBDeviceControllerPlugin::onCashPayStopByTimeout()
|
|||||||
"");
|
"");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ATBDeviceControllerPlugin::onCashPayStoped()
|
||||||
|
{
|
||||||
|
// DEBUG
|
||||||
|
qCritical() << "ATBDeviceControllerPlugin::onCashPayStoped()";
|
||||||
|
|
||||||
|
uint32_t amountInt = this->hw->getInsertedAmount();
|
||||||
|
|
||||||
|
QString amountString = QString::number(amountInt);
|
||||||
|
|
||||||
|
emit this->cashInputFinished(nsDeviceControllerInterface::RESULT_STATE::SUCCESS,
|
||||||
|
amountString,
|
||||||
|
"",
|
||||||
|
"");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ATBDeviceControllerPlugin::private_loadCashAgentLib(QString pluginName)
|
bool ATBDeviceControllerPlugin::private_loadCashAgentLib(QString pluginName)
|
||||||
{
|
{
|
||||||
|
@ -127,6 +127,7 @@ private slots:
|
|||||||
|
|
||||||
// cash payment
|
// cash payment
|
||||||
void onCashGotCoin();
|
void onCashGotCoin();
|
||||||
|
void onCashPayStoped();
|
||||||
void onCashPayStopByMax();
|
void onCashPayStopByMax();
|
||||||
void onCashPayStopByEscrow();
|
void onCashPayStopByEscrow();
|
||||||
void onCashPayStopByError();
|
void onCashPayStopByError();
|
||||||
|
Loading…
Reference in New Issue
Block a user