[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"><!--
|
---|
| 8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
| 9 | a:link { color: #004faf; text-decoration: none }
|
---|
| 10 | a:visited { color: #672967; text-decoration: none }
|
---|
| 11 | body { 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 Classes</font></a>
|
---|
| 23 | | <a href="mainclasses.html">
|
---|
| 24 | <font color="#004faf">Main 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 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
|
---|
| 35 | for Qt/Embedded.
|
---|
| 36 | <a href="#details">More...</a>
|
---|
| 37 | <p><tt>#include <<a href="qkeyboard_qws-h.html">qkeyboard_qws.h</a>></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 unicode, int keycode, int modifiers, bool isPress, bool autoRepeat )</li>
|
---|
| 48 | </ul>
|
---|
| 49 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
| 50 |
|
---|
| 51 |
|
---|
| 52 | The QWSKeyboardHandler class implements the keyboard driver
|
---|
| 53 | for Qt/Embedded.
|
---|
| 54 | <p>
|
---|
| 55 | <p> The keyboard driver handles events from system devices and
|
---|
| 56 | generates key events.
|
---|
| 57 | <p> A QWSKeyboardHandler will usually open some system device in its
|
---|
| 58 | constructor, create a <a href="qsocketnotifier.html">QSocketNotifier</a> on that opened device and
|
---|
| 59 | when it receives data, it will call <a href="#processKeyEvent">processKeyEvent</a>() to send the
|
---|
| 60 | event 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>
|
---|
| 66 | Constructs a keyboard handler. The handler <em>may</em> be passed to the
|
---|
| 67 | system for later destruction with <a href="qwsserver.html#setKeyboardHandler">QWSServer::setKeyboardHandler</a>(),
|
---|
| 68 | although even without doing this, the handler can function,
|
---|
| 69 | calling <a href="#processKeyEvent">processKeyEvent</a>() to emit events.
|
---|
| 70 |
|
---|
| 71 | <h3 class=fn><a name="~QWSKeyboardHandler"></a>QWSKeyboardHandler::~QWSKeyboardHandler ()<tt> [virtual]</tt>
|
---|
| 72 | </h3>
|
---|
| 73 | Destroys 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 unicode, int keycode, int modifiers, bool isPress, bool autoRepeat )<tt> [virtual protected]</tt>
|
---|
| 77 | </h3>
|
---|
| 78 | Subclasses call this function to send a key event. The server may
|
---|
| 79 | additionally filter the event before sending it on to
|
---|
| 80 | applications.
|
---|
| 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
|
---|
| 93 | mechanism, or an actual key press.
|
---|
| 94 | </table></center>
|
---|
| 95 |
|
---|
| 96 | <!-- eof -->
|
---|
| 97 | <hr><p>
|
---|
| 98 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
| 99 | Copyright © 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 © 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>
|
---|