QWSKeyboardHandler Class Reference

QWSKeyboardHandler Class Reference

#include <qkbd_qws.h>

Class Description

Definition at line 57 of file qkbd_qws.h.

+ Inheritance diagram for QWSKeyboardHandler:

Public Types

enum  KeycodeAction {
  None = 0, CapsLockOff = 0x01000000, CapsLockOn = 0x01000001, NumLockOff = 0x02000000,
  NumLockOn = 0x02000001, ScrollLockOff = 0x03000000, ScrollLockOn = 0x03000001, Reboot = 0x04000000,
  PreviousConsole = 0x05000000, NextConsole = 0x05000001, SwitchConsoleFirst = 0x06000000, SwitchConsoleLast = 0x0600007f,
  SwitchConsoleMask = 0x0000007f
}
 

Public Member Functions

 QWSKeyboardHandler ()
 
 QWSKeyboardHandler (const QString &device)
 
virtual ~QWSKeyboardHandler ()
 
virtual void processKeyEvent (int unicode, int keycode, Qt::KeyboardModifiers modifiers, bool isPress, bool autoRepeat)
 
KeycodeAction processKeycode (quint16 keycode, bool pressed, bool autorepeat)
 

Protected Member Functions

int transformDirKey (int key)
 
void beginAutoRepeat (int uni, int code, Qt::KeyboardModifiers mod)
 
void endAutoRepeat ()
 

Member Enumeration Documentation

Enumerator
None 
CapsLockOff 
CapsLockOn 
NumLockOff 
NumLockOn 
ScrollLockOff 
ScrollLockOn 
Reboot 
PreviousConsole 
NextConsole 
SwitchConsoleFirst 
SwitchConsoleLast 
SwitchConsoleMask 

Definition at line 67 of file qkbd_qws.h.

Constructor & Destructor Documentation

QWSKeyboardHandler ( const QString device)
virtual ~QWSKeyboardHandler ( )
virtual

Member Function Documentation

virtual void processKeyEvent ( int  unicode,
int  keycode,
Qt::KeyboardModifiers  modifiers,
bool  isPress,
bool  autoRepeat 
)
virtual
KeycodeAction processKeycode ( quint16  keycode,
bool  pressed,
bool  autorepeat 
)
int transformDirKey ( int  key)
protected
void beginAutoRepeat ( int  uni,
int  code,
Qt::KeyboardModifiers  mod 
)
protected
void endAutoRepeat ( )
protected

The documentation for this class was generated from the following file: