Diag: track ErrorState

This commit is contained in:
2024-03-19 13:43:01 +01:00
parent 6a08cf0b62
commit 379a5d4e3e
2 changed files with 42 additions and 0 deletions

View File

@@ -72,6 +72,13 @@ public:
nsDeviceControllerInterface::COIN_PROCESSOR coinProcessorType;
nsDeviceControllerInterface::BILL_ACCEPTOR billAcceptor;
/**
* return true, if machineEventSet contains an error
*/
bool isErrorState();
bool isOperatingState();
QSet<DeviceController::State> getCurrentMachineState();
public slots:
void diagRequest();
@@ -95,6 +102,7 @@ private:
DeviceController::State lastState;
QSet<DeviceController::State> machineEventSet;
bool _isErrorState;
PersistentData* pData;