DtkDevice
DTK library for device.
dinputdevicekeyboard.h
浏览该文件的文档.
1// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DINPUTDEVICEKEYBOARD_H
6#define DINPUTDEVICEKEYBOARD_H
8#include "dtkdevice_global.h"
9DDEVICE_BEGIN_NAMESPACE
10class DInputDeviceKeyboardPrivate;
11class LIBDTKDEVICESHARED_EXPORT DInputDeviceKeyboard : public DInputDeviceGeneric
12{
13 Q_OBJECT
14
15public:
16 ~DInputDeviceKeyboard() override;
17
18public Q_SLOTS:
19 DExpected<void> reset() override;
20
21protected:
22 DInputDeviceKeyboard(const DeviceInfo &info = DeviceInfoInitializer, bool enabled = true, QObject *parent = nullptr);
23
24private:
25 friend class DInputDeviceManager;
26 D_DECLARE_PRIVATE(DInputDeviceKeyboard)
27};
28
29DDEVICE_END_NAMESPACE
30#endif // DINPUTDEVICEKEYBOARD_H
基本设备类
Definition: dinputdevicegeneric.h:23
键盘设备类
Definition: dinputdevicekeyboard.h:12
DExpected< void > reset() override
重置键盘相关的所有设置
DInputDeviceKeyboard(const DeviceInfo &info=DeviceInfoInitializer, bool enabled=true, QObject *parent=nullptr)
默认构造函数与指定父对象的构造函数, 该函数仅开放给子类和DInputDeviceManager使用.
Manager类
Definition: dinputdevicemanager.h:27
设备信息类
Definition: dtkinputdevices_types.h:16