Qt 4.8
Classes | Namespaces | Enumerations | Functions | Variables
qkbd_qws_p.h File Reference
#include <QDataStream>

Go to the source code of this file.

Classes

struct  QWSKeyboard::Composing
 
struct  QWSKeyboard::Mapping
 

Namespaces

 QWSKeyboard
 

Enumerations

enum  QWSKeyboard::Flags { QWSKeyboard::IsDead = 0x01, QWSKeyboard::IsLetter = 0x02, QWSKeyboard::IsModifier = 0x04, QWSKeyboard::IsSystem = 0x08 }
 
enum  QWSKeyboard::Modifiers {
  QWSKeyboard::ModPlain = 0x00, QWSKeyboard::ModShift = 0x01, QWSKeyboard::ModAltGr = 0x02, QWSKeyboard::ModControl = 0x04,
  QWSKeyboard::ModAlt = 0x08, QWSKeyboard::ModShiftL = 0x10, QWSKeyboard::ModShiftR = 0x20, QWSKeyboard::ModCtrlL = 0x40,
  QWSKeyboard::ModCtrlR = 0x80
}
 
enum  QWSKeyboard::System {
  QWSKeyboard::SystemConsoleFirst = 0x0100, QWSKeyboard::SystemConsoleMask = 0x007f, QWSKeyboard::SystemConsoleLast = 0x017f, QWSKeyboard::SystemConsolePrevious = 0x0180,
  QWSKeyboard::SystemConsoleNext = 0x0181, QWSKeyboard::SystemReboot = 0x0200, QWSKeyboard::SystemZap = 0x0300
}
 

Functions

QDataStreamoperator<< (QDataStream &ds, const QWSKeyboard::Mapping &m)
 
QDataStreamoperator<< (QDataStream &ds, const QWSKeyboard::Composing &c)
 
QDataStreamoperator>> (QDataStream &ds, QWSKeyboard::Mapping &m)
 
QDataStreamoperator>> (QDataStream &ds, QWSKeyboard::Composing &c)
 

Variables

const quint32 QWSKeyboard::FileMagic = 0x514d4150
 

Function Documentation

◆ operator<<() [1/2]

QDataStream& operator<< ( QDataStream ds,
const QWSKeyboard::Mapping m 
)
inline

Definition at line 116 of file qkbd_qws_p.h.

117 {
118  return ds << m.keycode << m.unicode << m.qtcode << m.modifiers << m.flags << m.special;
119 }

◆ operator<<() [2/2]

QDataStream& operator<< ( QDataStream ds,
const QWSKeyboard::Composing c 
)
inline

Definition at line 126 of file qkbd_qws_p.h.

127 {
128  return ds << c.first << c.second << c.result;
129 }

◆ operator>>() [1/2]

QDataStream& operator>> ( QDataStream ds,
QWSKeyboard::Mapping m 
)
inline

Definition at line 111 of file qkbd_qws_p.h.

112 {
113  return ds >> m.keycode >> m.unicode >> m.qtcode >> m.modifiers >> m.flags >> m.special;
114 }

◆ operator>>() [2/2]

QDataStream& operator>> ( QDataStream ds,
QWSKeyboard::Composing c 
)
inline

Definition at line 121 of file qkbd_qws_p.h.

122 {
123  return ds >> c.first >> c.second >> c.result;
124 }