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
11
DDEVICE_BEGIN_NAMESPACE
12
13
class
DInputDevicePrivate;
14
class
LIBDTKDEVICESHARED_EXPORT
DInputDevice
:
public
QObject
15
{
16
public
:
17
explicit
DInputDevice
(QObject *parent =
nullptr
);
18
~DInputDevice
();
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
27
private
:
28
QScopedPointer<DInputDevicePrivate> d_ptr;
29
Q_DECLARE_PRIVATE(
DInputDevice
)
30
};
31
32
DDEVICE_END_NAMESPACE
33
34
#endif
// DDISKDEVICE_H
Dtk::Device::DInputDevice
外设设备信息.
Definition:
dinputdevice.h:15
Dtk::Device::DInputDevice::vendor
QString vendor(int index)
获取指定外设的厂商.
Dtk::Device::DInputDevice::interface
QString interface(int index)
获取指定外设的接口.
Dtk::Device::DInputDevice::driver
QString driver(int index)
获取指定外设的驱动.
Dtk::Device::DInputDevice::name
QString name(int index)
获取指定外设名称.
Dtk::Device::DInputDevice::count
int count()
获取所有外设个数.
Dtk::Device::DInputDevice::model
QString model(int index)
获取指定外设的型号.
include
lsdevice
dinputdevice.h
文档生成时间:2023-07-10-06:43 +00
Doxygen Version
1.9.4
制作者:deepin doc doc go SIG
文档使用CC-BY-4.0共享