5#ifndef DINPUTDEVICEGENERIC_H
6#define DINPUTDEVICEGENERIC_H
8#include "dtkdevice_global.h"
14#include <QSharedPointer>
18DDEVICE_BEGIN_NAMESPACE
19using DCORE_NAMESPACE::DExpected;
20using DCORE_NAMESPACE::DObject;
21class DInputDeviceGenericPrivate;
25 Q_PROPERTY(quint32
id READ
id CONSTANT)
26 Q_PROPERTY(QString name READ name CONSTANT)
28 Q_PROPERTY(
bool enabled READ enabled NOTIFY enabledChanged)
31 virtual quint32
id()
const;
32 virtual QString
name()
const;
36 using Ptr = QSharedPointer<DInputDeviceGeneric>;
43 virtual DExpected<void>
reset();
设备信息类
Definition: dtkinputdevices_types.h:16