Classes - Annotated - Tree - Functions - Home - Structure

QWSKeyboardHandler Class Reference

The QWSKeyboardHandler class implements the keyboard driver/handler for Qt/Embedded. More...

#include <qkeyboard_qws.h>

Inherits QObject.

List of all member functions.

Public Members

Protected Members


Detailed Description

The QWSKeyboardHandler class implements the keyboard driver/handler for Qt/Embedded.

The keyboard driver/handler handles events from system devices and generates key events.

A QWSKeyboardHandler will usually open some system device in its constructor, create a QSocketNotifier on that opened device and when it receives data, it will call processKeyEvent() to send the event to Qt/Embedded for relaying to clients.

See also Qt/Embedded.


Member Function Documentation

QWSKeyboardHandler::QWSKeyboardHandler ()

Constructs a keyboard handler. The handler may be passed to the system for later destruction with QWSServer::setKeyboardHandler(), though even without doing this, the handler can function, calling processKeyEvent() to emit events.

QWSKeyboardHandler::~QWSKeyboardHandler () [virtual]

Destroys a keyboard handler. Note that if you have called QWSServer::setKeyboardHandler(), you may not delete the handler.

void QWSKeyboardHandler::processKeyEvent ( int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat ) [virtual protected]

Subclasses call this to send a key event. The server may additionally filter it before sending it on to applications.


Search the documentation, FAQ, qt-interest archive and more (uses www.trolltech.com):


This file is part of the Qt toolkit, copyright © 1995-2001 Trolltech, all rights reserved.


Copyright © 2001 TrolltechTrademarks
Qt version 3.0.0-beta3