<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /tmp/qt-4.2.1-harald-1161357942206/qt-x11-opensource-src-4.2.1/src/gui/embedded/qwsevent_qws.cpp --> <head> <title>Qt 4.2: QWSEvent Class Reference</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td> <td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">QWSEvent Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1> <p>The QWSEvent class encapsulates an event in Qtopia Core. <a href="#details">More...</a></p> <pre> #include <QWSEvent></pre><ul> <li><a href="qwsevent-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-types"></a> <h3>Public Types</h3> <ul> <li><div class="fn"/>enum <b><a href="qwsevent.html#Type-enum">Type</a></b> { NoEvent, Connected, Mouse, Focus, ..., Embed }</li> </ul> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QWSEvent class encapsulates an event in Qtopia Core.</p> <p>When running a <a href="qtopiacore.html">Qtopia Core</a> application, it either runs as a server or connects to an existing server. In the client/server protocol, each event is sent as a QWSEvent object to the server.</p> <p>QWSEvent provides the Type enum specifying the origin of the event. Internally, each type is represented by a QWSEvent subclass, e.g. QWSKeyEvent.</p> <p>Note that the <a href="qapplication.html">QApplication</a> class provides the virtual <a href="qapplication.html#qwsEventFilter">qwsEventFilter()</a> function which can be reimplemented to get direct access to all QWS (Q Window System) events that are received from the QWS master process.</p> <p>See also <a href="qwsserver.html">QWSServer</a> and <a href="qwsclient.html">QWSClient</a>.</p> <hr /> <h2>Member Type Documentation</h2> <h3 class="fn"><a name="Type-enum"></a>enum QWSEvent::Type</h3> <p>This enum specifies the event's type.</p> <p><table border="1" cellpadding="2" cellspacing="1" width="100%"> <tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr> <tr><td valign="top"><tt>QWSEvent::NoEvent</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">No event has occurred.</td></tr> <tr><td valign="top"><tt>QWSEvent::Connected</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">An application has connected to the server.</td></tr> <tr><td valign="top"><tt>QWSEvent::Mouse</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">A mouse button is pressed or released, or the mouse cursor is moved. See also <a href="qtopiacore-pointer.html">Pointer Handling</a>.</td></tr> <tr><td valign="top"><tt>QWSEvent::Focus</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">A window has lost or received focus.</td></tr> <tr><td valign="top"><tt>QWSEvent::Key</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">A key is pressed or released. See also <a href="qtopiacore-charinput.html">Character Input</a>.</td></tr> <tr><td valign="top"><tt>QWSEvent::Region</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">A region has changed.</td></tr> <tr><td valign="top"><tt>QWSEvent::Creation</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">The server has created an ID, typically for a window.</td></tr> <tr><td valign="top"><tt>QWSEvent::PropertyNotify</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">A property has changed.</td></tr> <tr><td valign="top"><tt>QWSEvent::PropertyReply</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">The server is responding to a request for a property's value.</td></tr> <tr><td valign="top"><tt>QWSEvent::SelectionClear</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">A selection is deleted.</td></tr> <tr><td valign="top"><tt>QWSEvent::SelectionRequest</tt></td><td align="center" valign="top"><tt>10</tt></td><td valign="top">The server has queried for a selection.</td></tr> <tr><td valign="top"><tt>QWSEvent::SelectionNotify</tt></td><td align="center" valign="top"><tt>11</tt></td><td valign="top">A new selection has been created.</td></tr> <tr><td valign="top"><tt>QWSEvent::MaxWindowRect</tt></td><td align="center" valign="top"><tt>12</tt></td><td valign="top">The server has changed the maximum window for an application.</td></tr> <tr><td valign="top"><tt>QWSEvent::QCopMessage</tt></td><td align="center" valign="top"><tt>13</tt></td><td valign="top">A new Qt Cop message has appeared.</td></tr> <tr><td valign="top"><tt>QWSEvent::WindowOperation</tt></td><td align="center" valign="top"><tt>14</tt></td><td valign="top">A window operation, e.g. resizing, has occured.</td></tr> <tr><td valign="top"><tt>QWSEvent::IMEvent</tt></td><td align="center" valign="top"><tt>15</tt></td><td valign="top">An input method has been used to enter text for languages with non-Latin alphabets. See also <a href="qwsinputmethod.html">QWSInputMethod</a>.</td></tr> <tr><td valign="top"><tt>QWSEvent::IMQuery</tt></td><td align="center" valign="top"><tt>16</tt></td><td valign="top">An input method query for a specified property has occurred. See also <a href="qwsinputmethod.html">QWSInputMethod</a>.</td></tr> <tr><td valign="top"><tt>QWSEvent::NEvent</tt></td><td align="center" valign="top"><tt>19</tt></td><td valign="top">The number of events has changed.</td></tr> <tr><td valign="top"><tt>QWSEvent::Embed</tt></td><td align="center" valign="top"><tt>18</tt></td><td valign="top">An event used internally to implement <a href="qwsembedwidget.html">embedded windows</a>.</td></tr> </table></p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="30%">Copyright © 2006 <a href="trolltech.html">Trolltech</a></td> <td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="30%" align="right"><div align="right">Qt 4.2.1</div></td> </tr></table></div></address></body> </html>