40 #ifndef QEVDEVKEYBOARDHANDLER_P_H
41 #define QEVDEVKEYBOARDHANDLER_P_H
56 #include <QDataStream>
116 return ds >>
m.keycode >>
m.unicode >>
m.qtcode >>
m.modifiers >>
m.flags >>
m.special;
121 return ds <<
m.keycode <<
m.unicode <<
m.qtcode <<
m.modifiers <<
m.flags <<
m.special;
126 return ds >>
c.first >>
c.second >>
c.result;
131 return ds <<
c.first <<
c.second <<
c.result;
145 void reset() noexcept;
201 void processKeyEvent(
int nativecode,
int unicode,
int qtcode,
202 Qt::KeyboardModifiers modifiers,
bool isPress,
bool autoRepeat);
203 void switchLed(
int,
bool);
222 int m_keycompose_size;
The QDataStream class provides serialization of binary data to a QIODevice.
operator>>(QDataStream &ds, qfloat16 &f)
operator<<(QDataStream &ds, qfloat16 f)
QEvdevKeyboardHandler(const QString &device, QFdContainer &fd, bool disableZap, bool enableCompose, const QString &keymapFile)
static std::unique_ptr< QEvdevKeyboardHandler > create(const QString &device, const QString &specification, const QString &defaultKeymapFile=QString())
KeycodeAction processKeycode(quint16 keycode, bool pressed, bool autorepeat)
bool loadKeymap(const QString &file)
static Qt::KeyboardModifiers toQtModifiers(quint8 mod)
QFdContainer(int fd=-1) noexcept
The QObject class is the base class of all Qt objects.
The QSocketNotifier class provides support for monitoring activity on a file descriptor.
The QString class provides a Unicode character string.
auto it unsigned count const