YULTek/Otarcik_CAN/Sources/LANDevicesPresenceMonitor.h
2024-03-05 16:29:13 -05:00

35 lines
719 B
C++

#ifndef LANDEVICESPRESENCEMONITOR_H
#define LANDEVICESPRESENCEMONITOR_H
#include <QObject>
#include "LANDeviceMonitor.h"
#include "LANDevicePresenceConfig.h"
#include <QList>
#include <QTimer>
class COtarcikCan;
class CLANDevicesPresenceMonitor: public QObject
{
Q_OBJECT
public:
CLANDevicesPresenceMonitor();
~CLANDevicesPresenceMonitor();
int Start(QList<CLANDevicePresenceConfig> *LANDevicesList);
int Stop();
quint64 GetDevicesPresenceCANMask();
QTimer *mLANDevicesPresenceStateUpdateTimer;
COtarcikCan *mProgramPtr;
private:
QList<CLANDeviceMonitor*> mLANMonitorList;
public slots:
void DevicesPresenceUpdateTimerExpired();
};
#endif // LANDEVICESPRESENCEMONITOR_H