DtkDevice
DTK library for device.
dinputdevice.h
1// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4#ifndef DINPUTDEVICE_H
5#define DINPUTDEVICE_H
6
7#include "dtkdevice_global.h"
8
9#include <QObject>
10
11DDEVICE_BEGIN_NAMESPACE
12
13class DInputDevicePrivate;
14class LIBDTKDEVICESHARED_EXPORT DInputDevice : public QObject
15{
16public:
17 explicit DInputDevice(QObject *parent = nullptr);
19
20 int count();
21 QString name(int index);
22 QString vendor(int index);
23 QString model(int index);
24 QString interface(int index);
25 QString driver(int index);
26
27private:
28 QScopedPointer<DInputDevicePrivate> d_ptr;
29 Q_DECLARE_PRIVATE(DInputDevice)
30};
31
32DDEVICE_END_NAMESPACE
33
34#endif // DDISKDEVICE_H
外设设备信息.
Definition: dinputdevice.h:15
QString vendor(int index)
获取指定外设的厂商.
QString interface(int index)
获取指定外设的接口.
QString driver(int index)
获取指定外设的驱动.
QString name(int index)
获取指定外设名称.
int count()
获取所有外设个数.
QString model(int index)
获取指定外设的型号.