35 lines
719 B
C++
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
|