5#ifndef DTKINPUTDEVICES_TYPES_H
6#define DTKINPUTDEVICES_TYPES_H
7#include "dtkdevice_global.h"
11DDEVICE_BEGIN_NAMESPACE
13enum class DeviceType { Mouse, TrackPoint, TouchPad, Tablet, Keyboard, Generic };
22 friend QDebug operator<<(QDebug debug,
const DeviceInfo &info);
29enum class Key { KeyUp, KeyDown };
31enum class KeyAction { LeftClick, MiddleClick, RightClick, PageUp, PageDown };
33enum class ScrollMethod { NoScroll, ScrollTwoFinger, ScrollEdge, ScrollOnButtonDown };
43QDebug operator<<(QDebug debug, DeviceType type);
44QDebug operator<<(QDebug debug, AccelerationProfile profile);
46using ErrorCode = EnumWrapper::ErrorCode;
49Q_DECLARE_METATYPE(DTK_DEVICE_NAMESPACE::DeviceType)
50Q_DECLARE_METATYPE(DTK_DEVICE_NAMESPACE::DeviceInfo)
51Q_DECLARE_METATYPE(DTK_DEVICE_NAMESPACE::AccelerationProfile)
52Q_DECLARE_METATYPE(DTK_DEVICE_NAMESPACE::Key)
53Q_DECLARE_METATYPE(DTK_DEVICE_NAMESPACE::KeyAction)
54Q_DECLARE_METATYPE(DTK_DEVICE_NAMESPACE::ScrollMethod)
55Q_DECLARE_METATYPE(DTK_DEVICE_NAMESPACE::ErrorCode)
枚举类型包装器
Definition: dtkinputdevices_types.h:36
ErrorCode
错误代码
Definition: dtkinputdevices_types.h:39
设备信息类
Definition: dtkinputdevices_types.h:16
quint32 id
Definition: dtkinputdevices_types.h:17
QString name
Definition: dtkinputdevices_types.h:18
DeviceType type
Definition: dtkinputdevices_types.h:19