source: trunk/doc/html/qwskeyboardhandler.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 5.0 KB
RevLine 
[190]1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/embedded/qkbd_qws.cpp:82 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QWSKeyboardHandler Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QWSKeyboardHandler Class Reference</h1>
33
34<p>The QWSKeyboardHandler class implements the keyboard driver
35for Qt/Embedded.
36<a href="#details">More...</a>
37<p><tt>#include &lt;<a href="qkeyboard_qws-h.html">qkeyboard_qws.h</a>&gt;</tt>
38<p>Inherits <a href="qobject.html">QObject</a>.
39<p><a href="qwskeyboardhandler-members.html">List of all member functions.</a>
40<h2>Public Members</h2>
41<ul>
42<li class=fn><a href="#QWSKeyboardHandler"><b>QWSKeyboardHandler</b></a> ()</li>
43<li class=fn>virtual <a href="#~QWSKeyboardHandler"><b>~QWSKeyboardHandler</b></a> ()</li>
44</ul>
45<h2>Protected Members</h2>
46<ul>
47<li class=fn>virtual void <a href="#processKeyEvent"><b>processKeyEvent</b></a> ( int&nbsp;unicode, int&nbsp;keycode, int&nbsp;modifiers, bool&nbsp;isPress, bool&nbsp;autoRepeat )</li>
48</ul>
49<hr><a name="details"></a><h2>Detailed Description</h2>
50
51
52The QWSKeyboardHandler class implements the keyboard driver
53for Qt/Embedded.
54<p>
55<p> The keyboard driver handles events from system devices and
56generates key events.
57<p> A QWSKeyboardHandler will usually open some system device in its
58constructor, create a <a href="qsocketnotifier.html">QSocketNotifier</a> on that opened device and
59when it receives data, it will call <a href="#processKeyEvent">processKeyEvent</a>() to send the
60event to Qt/Embedded for relaying to clients.
61<p>See also <a href="qws.html">Qt/Embedded</a>.
62
63<hr><h2>Member Function Documentation</h2>
64<h3 class=fn><a name="QWSKeyboardHandler"></a>QWSKeyboardHandler::QWSKeyboardHandler ()
65</h3>
66Constructs a keyboard handler. The handler <em>may</em> be passed to the
67system for later destruction with <a href="qwsserver.html#setKeyboardHandler">QWSServer::setKeyboardHandler</a>(),
68although even without doing this, the handler can function,
69calling <a href="#processKeyEvent">processKeyEvent</a>() to emit events.
70
71<h3 class=fn><a name="~QWSKeyboardHandler"></a>QWSKeyboardHandler::~QWSKeyboardHandler ()<tt> [virtual]</tt>
72</h3>
73Destroys a keyboard handler. Note that if you have called
74<a href="qwsserver.html#setKeyboardHandler">QWSServer::setKeyboardHandler</a>(), you must not delete the handler.
75
76<h3 class=fn>void <a name="processKeyEvent"></a>QWSKeyboardHandler::processKeyEvent ( int&nbsp;unicode, int&nbsp;keycode, int&nbsp;modifiers, bool&nbsp;isPress, bool&nbsp;autoRepeat )<tt> [virtual protected]</tt>
77</h3>
78Subclasses call this function to send a key event. The server may
79additionally filter the event before sending it on to
80applications.
81<p> <center><table cellpadding="4" cellspacing="2" border="0">
82<tr bgcolor="#a2c511"> <th valign="top">Parameter <th valign="top">Meaning
83<tr bgcolor="#f0f0f0"> <td valign="top"><em>unicode</em>
84<td valign="top">The Unicode value for the key, or 0xFFFF is none is appropriate.
85<tr bgcolor="#d0d0d0"> <td valign="top"><em>keycode</em>
86<td valign="top">The Qt keycode for the key (see <a href="qt.html#Key-enum">Qt::Key</a> for the list of codes).
87<tr bgcolor="#f0f0f0"> <td valign="top"><em>modifiers</em>
88<td valign="top">The set of modifier keys (see <a href="qt.html#Modifier-enum">Qt::Modifier</a>).
89<tr bgcolor="#d0d0d0"> <td valign="top"><em>isPress</em>
90<td valign="top">Whether this is a press or a release.
91<tr bgcolor="#f0f0f0"> <td valign="top"><em>autoRepeat</em>
92<td valign="top">Whether this event was generated by an auto-repeat
93mechanism, or an actual key press.
94</table></center>
95
96<!-- eof -->
97<hr><p>
98This file is part of the <a href="index.html">Qt toolkit</a>.
99Copyright &copy; 1995-2007
100<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
101<table width=100% cellspacing=0 border=0><tr>
102<td>Copyright &copy; 2007
103<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
104<td align=right><div align=right>Qt 3.3.8</div>
105</table></div></address></body>
106</html>
Note: See TracBrowser for help on using the repository browser.