mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-07-15 00:22:26 +02:00
25 lines
456 B
C++
25 lines
456 B
C++
#ifndef INPUTDEVICEEVENTMONITOR_H
|
|
#define INPUTDEVICEEVENTMONITOR_H
|
|
|
|
#include <QObject>
|
|
|
|
class InputDeviceEventMonitor : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit InputDeviceEventMonitor(const QString &fileName, QObject *parent = nullptr);
|
|
|
|
public slots:
|
|
void process();
|
|
|
|
signals:
|
|
void eventOccurred(quint16 type, quint16 code, qint32 value);
|
|
void finished();
|
|
|
|
private:
|
|
QString m_fileName;
|
|
|
|
};
|
|
|
|
#endif // INPUTDEVICEEVENTMONITOR_H
|