33class QDeviceDiscovery :
public QObject
39 Device_Unknown = 0x00,
41 Device_Touchpad = 0x02,
42 Device_Touchscreen = 0x04,
43 Device_Keyboard = 0x08,
45 Device_DRM_PrimaryGPU = 0x20,
47 Device_Joystick = 0x80,
48 Device_InputMask = Device_Mouse | Device_Touchpad | Device_Touchscreen | Device_Keyboard | Device_Tablet | Device_Joystick,
49 Device_VideoMask = Device_DRM
52 Q_DECLARE_FLAGS(QDeviceTypes, QDeviceType)
54 static QDeviceDiscovery *create(QDeviceTypes type, QObject *parent =
nullptr);
56 virtual QStringList scanConnectedDevices() = 0;
59 void deviceDetected(
const QString &deviceNode);
60 void deviceRemoved(
const QString &deviceNode);
61 void deviceChanged(
const QString &deviceNode);
64 QDeviceDiscovery(QDeviceTypes types, QObject *parent) : QObject(parent), m_types(types) { }
65 Q_DISABLE_COPY_MOVE(QDeviceDiscovery)