DCDiag: add dbus interface

This commit is contained in:
2025-05-27 12:59:12 +02:00
parent 58c99753a9
commit efe56672ff
3 changed files with 9 additions and 3 deletions

View File

@@ -12,6 +12,7 @@
#include "support/PersistentData.h"
class DBusControllerInterface;
namespace DeviceController {
Q_NAMESPACE
@@ -79,7 +80,7 @@ class DeviceControllerDiag : public QObject
public:
DeviceControllerDiag(PersistentData *pData, QObject *parent = nullptr);
void init(hwinf* hw, QObject* eventReceiver);
void init(hwinf* hw, DBusControllerInterface *dbus, QObject* eventReceiver);
nsDeviceControllerInterface::COIN_PROCESSOR coinProcessorType;
nsDeviceControllerInterface::BILL_ACCEPTOR billAcceptor;
@@ -118,9 +119,11 @@ signals:
private:
QObject *eventReceiver;
hwinf* hw;
DBusControllerInterface* dbus;
bool isRequestRunning;
bool flagInterruptDiag;
bool isDiagBackgroundTask;
QTimer *diagRequestTimeoutTimer;