File: qwsserver.html

package info (click to toggle)
qt-x11 3%3A2.3.1-22
  • links: PTS
  • area: main
  • in suites: woody
  • size: 48,524 kB
  • ctags: 46,337
  • sloc: cpp: 260,077; ansic: 32,457; makefile: 31,131; yacc: 2,444; sh: 1,513; lex: 480; perl: 422; xml: 68; lisp: 15
file content (182 lines) | stat: -rw-r--r-- 12,485 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QWSServer Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">

<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>

<h1 align=center>QWSServer Class Reference</h1><br clear="all">
<p>
Server-specific functionality in Qt/Embedded
<a href="#details">More...</a>
<p>
<code>#include &lt;<a href="qwindowsystem_qws-h.html">qwindowsystem_qws.h</a>&gt;</code>
<p>
Inherits <a href="qobject.html">QObject</a>.
<p><a href="qwsserver-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#1451c1"><b>QWSServer</b></a>(intflags=0, QObject*parent=0, constchar*name=0)</div>
<li><div class="fn"><a href="#546a68"><b>~QWSServer</b></a>()</div>
<li><div class="fn">enum<b>ServerFlags</b>{DisableKeyboard=0x01, DisableMouse=0x02}</div>
<li><div class="fn">enum<b>GUIMode</b>{NoGui=FALSE, NormalGUI=TRUE, Server}</div>
<li><div class="fn">classKeyboardFilter{public:virtualbool<b>filter</b>(intunicode, intkeycode, intmodifiers, boolisPress, boolautoRepeat)</div>
<li><div class="fn">QWSWindow*<a href="#3e54c2"><b>windowAt</b></a>(constQPoint&amp;pos)</div>
<li><div class="fn">constQList&lt;QWSWindow&gt;&amp;<a href="#118beb"><b>clientWindows</b></a>()</div>
<li><div class="fn">void<a href="#afa219"><b>openMouse</b></a>()</div>
<li><div class="fn">void<a href="#022b1f"><b>closeMouse</b></a>()</div>
<li><div class="fn">void<a href="#854369"><b>openKeyboard</b></a>()</div>
<li><div class="fn">void<a href="#da677f"><b>closeKeyboard</b></a>()</div>
<li><div class="fn">void<a href="#275bb5"><b>refresh</b></a>()</div>
<li><div class="fn">void<a href="#5e6c49"><b>enablePainting</b></a>(bool)</div>
<li><div class="fn">void<b>sendPropertyNotifyEvent</b>(intproperty, intstate)(internal)</div>
<li><div class="fn">QWSPropertyManager*<b>manager</b>()</div>
<li><div class="fn">enum<b>WindowEvent</b>{Create=0x01, Destroy=0x02, Hide=0x04, Show=0x08, Raise=0x10, Lower=0x20, Geometry=0x40}</div>
</ul>
<h2>Signals</h2>
<ul>
<li><div class="fn">void<b>windowEvent</b>(QWSWindow*w, QWSServer::WindowEvente)</div>
</ul>
<h2>Static Public Members</h2>
<ul>
<li><div class="fn">void<a href="#b4dc20"><b>sendKeyEvent</b></a>(intunicode, intkeycode, intmodifiers, boolisPress, boolautoRepeat)</div>
<li><div class="fn">void<b>processKeyEvent</b>(intunicode, intkeycode, intmodifiers, boolisPress, boolautoRepeat)(internal)</div>
<li><div class="fn">typedefconstKeyMap*<b>keyMap</b>()</div>
<li><div class="fn">void<a href="#f261cb"><b>setKeyboardFilter</b></a>(KeyboardFilter*f)</div>
<li><div class="fn">void<a href="#bf4fdc"><b>setDefaultMouse</b></a>(constchar*)</div>
<li><div class="fn">void<a href="#5ddd1d"><b>setDefaultKeyboard</b></a>(constchar*)</div>
<li><div class="fn">void<a href="#89be3c"><b>setMaxWindowRect</b></a>(constQRect&amp;)</div>
<li><div class="fn">void<a href="#21f2e6"><b>sendMouseEvent</b></a>(constQPoint&amp;pos, intstate)</div>
<li><div class="fn">void<a href="#c01e54"><b>setDesktopBackground</b></a>(constQImage&amp;img)</div>
<li><div class="fn">void<a href="#90585c"><b>setDesktopBackground</b></a>(constQColor&amp;)</div>
<li><div class="fn">QWSMouseHandler*<a href="#eabcd7"><b>mouseHandler</b></a>()</div>
<li><div class="fn">void<b>setMouseHandler</b>(QWSMouseHandler*)(internal)</div>
<li><div class="fn">QWSKeyboardHandler*<a href="#a34530"><b>keyboardHandler</b></a>()</div>
<li><div class="fn">void<a href="#97ee9f"><b>setKeyboardHandler</b></a>(QWSKeyboardHandler*kh)</div>
<li><div class="fn">void<a href="#7cfed5"><b>setScreenSaverInterval</b></a>(int)</div>
<li><div class="fn">bool<a href="#e5bf3d"><b>screenSaverActive</b></a>()</div>
<li><div class="fn">void<a href="#a693cd"><b>screenSaverActivate</b></a>(bool)</div>
<li><div class="fn">void<b>processEventQueue</b>()(internal)</div>
<li><div class="fn">QList&lt;QWSInternalWindowInfo&gt;*<b>windowList</b>()(internal)</div>
<li><div class="fn">void<b>startup</b>(intflags)(internal)</div>
<li><div class="fn">void<b>closedown</b>()(internal)</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
Server-specific functionality in Qt/Embedded
<p>
When you run a Qt/Embedded application, it either runs as a server
or connects to an existing server. If it runs as a server, some additional
operations are provided via the QWSServer class.
<p>This class is instantiated by <a href="qapplication.html">QApplication</a> for Qt/Embedded server processes.
You should never construct this class yourself.
<p>A pointer to the QWSServer instance can be obtained via the global
qwsServer variable.

<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="1451c1"></a>QWSServer::QWSServer(intflags=0, <a href="qobject.html">QObject</a>*parent=0, constchar*name=0)</h3>
<p>Construct a QWSServer class.
<p>This class is instantiated by <a href="qapplication.html">QApplication</a> for Qt/Embedded server processes.
You should never construct this class yourself.
<h3 class="fn"><a name="546a68"></a>QWSServer::~QWSServer()</h3>
<p>Destruct QWSServer.
<h3 class="fn">const<a href="qlist.html">QList</a>&lt;<a href="qwswindow.html">QWSWindow</a>&gt;&amp;<a name="118beb"></a>QWSServer::clientWindows()</h3>
<p>Returns the list of top-level windows.  This list will change as
applications add and remove wigdets so it should not be stored for future
use.  The windows are sorted in stacking order from top-most to lowest.
<h3 class="fn">void<a name="da677f"></a>QWSServer::closeKeyboard()</h3>
<p>Closes keyboard device(s).
<h3 class="fn">void<a name="022b1f"></a>QWSServer::closeMouse()</h3>
<p>Closes pointer device(s).
<h3 class="fn">void<a name="5e6c49"></a>QWSServer::enablePainting(boole)</h3>
<p>Disables all painting on the display.
<h3 class="fn"><a href="qwskeyboardhandler.html">QWSKeyboardHandler</a>*<a name="a34530"></a>QWSServer::keyboardHandler() <code>[static]</code></h3>
<p>Returns the primary keyboard handler.
<h3 class="fn"><a href="qwsmousehandler.html">QWSMouseHandler</a>*<a name="eabcd7"></a>QWSServer::mouseHandler() <code>[static]</code></h3>
<p>Returns the primary mouse handler.
<h3 class="fn">void<a name="854369"></a>QWSServer::openKeyboard()</h3>
<p>Open keyboard device(s).
<h3 class="fn">void<a name="afa219"></a>QWSServer::openMouse()</h3>
<p>Opens the mouse device(s).
<h3 class="fn">void<a name="275bb5"></a>QWSServer::refresh()</h3>
<p>Refreshes the entire display.
<h3 class="fn">void<a name="a693cd"></a>QWSServer::screenSaverActivate(boolactivate) <code>[static]</code></h3>
<p>Activates the screensaver immediately if <code>activate</code> is TRUE otherwise
deactivates the screensaver.
<h3 class="fn">bool<a name="e5bf3d"></a>QWSServer::screenSaverActive() <code>[static]</code></h3>
<p>Returns TRUE if the screensaver is active (i.e. blanked).
<h3 class="fn">void<a name="b4dc20"></a>QWSServer::sendKeyEvent(intunicode, intkeycode, intmodifiers, boolisPress, boolautoRepeat) <code>[static]</code></h3>
<p>Send a key event. You can use this to send key events generated by
"virtual keyboards".
<h3 class="fn">void<a name="21f2e6"></a>QWSServer::sendMouseEvent(const<a href="qpoint.html">QPoint</a>&amp;pos, intstate) <code>[static]</code></h3>
<p>Send a mouse event.
<h3 class="fn">void<a name="5ddd1d"></a>QWSServer::setDefaultKeyboard(constchar*k) <code>[static]</code></h3>
<p>Set the keyboard driver to use if $QWS_KEYBOARD is not defined. The default
is platform-dependant.
<h3 class="fn">void<a name="bf4fdc"></a>QWSServer::setDefaultMouse(constchar*m) <code>[static]</code></h3>
<p>Set the mouse driver to use if $QWS_MOUSE_PROTO is not defined. The default
is platform-dependant.
<h3 class="fn">void<a name="90585c"></a>QWSServer::setDesktopBackground(const<a href="qcolor.html">QColor</a>&amp;c) <code>[static]</code></h3>
<p>Sets the color to use as the background in the absence of obscuring windows.
<h3 class="fn">void<a name="c01e54"></a>QWSServer::setDesktopBackground(const<a href="qimage.html">QImage</a>&amp;img) <code>[static]</code></h3>
<p>Sets the image to use as the background in the absence of obscuring windows.
<h3 class="fn">void<a name="f261cb"></a>QWSServer::setKeyboardFilter(KeyboardFilter*f) <code>[static]</code></h3>
<p>Sets a filter to be invoked for all key events from physical keyboard
drivers (events sent via <a href="#dce3d4">processKeyEvent</a>()).
The filter is not invoked for keys generated by virtual keyboard
drivers (events send via <a href="#b4dc20">sendKeyEvent</a>()).
<h3 class="fn">void<a name="97ee9f"></a>QWSServer::setKeyboardHandler(<a href="qwskeyboardhandler.html">QWSKeyboardHandler</a>*kh) <code>[static]</code></h3>
<p>Sets the primary keyboard handler to <em>kh.</em>
<h3 class="fn">void<a name="89be3c"></a>QWSServer::setMaxWindowRect(const<a href="qrect.html">QRect</a>&amp;r) <code>[static]</code></h3>
<p>Sets the area of the screen which Qt/Embedded application will consider
to be the maximum area to use for windows.
<p>See also  <a href="qwidget.html#400e25">QWidget::showMaximized</a>().
<h3 class="fn">void<a name="7cfed5"></a>QWSServer::setScreenSaverInterval(intms) <code>[static]</code></h3>
<p>Sets the timeout for the screensaver to <em>ms</em> milliseconds. A setting
of zero turns of the screensaver.
<h3 class="fn"><a href="qwswindow.html">QWSWindow</a>*<a name="3e54c2"></a>QWSServer::windowAt(const<a href="qpoint.html">QPoint</a>&amp;pos)</h3>
<p>Returns the window containing the point <code>pos</code> or 0 if there is no window
under the point.
<h3 class="fn">void<a name="b8d3e4"></a>QWSServer::closedown() <code>[static]</code></h3>
<p>For internal use only.
<h3 class="fn">void<a name="970e43"></a>QWSServer::processEventQueue() <code>[static]</code></h3>
<p>For internal use only.
<h3 class="fn">void<a name="dce3d4"></a>QWSServer::processKeyEvent(intunicode, intkeycode, intmodifiers, boolisPress, boolautoRepeat) <code>[static]</code></h3>
<p>For internal use only.
<h3 class="fn">void<a name="bd1d86"></a>QWSServer::sendPropertyNotifyEvent(intproperty, intstate)</h3>
<p>For internal use only.
<h3 class="fn">void<a name="ee7ae1"></a>QWSServer::setMouseHandler(<a href="qwsmousehandler.html">QWSMouseHandler</a>*mh) <code>[static]</code></h3>
<p>For internal use only.
<h3 class="fn">void<a name="259b8b"></a>QWSServer::startup(intflags) <code>[static]</code></h3>
<p>For internal use only.
<h3 class="fn"><a href="qlist.html">QList</a>&lt;QWSInternalWindowInfo&gt;*<a name="d344c1"></a>QWSServer::windowList() <code>[static]</code></h3>
<p>For internal use only.
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.1"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright &copy; 1995-2000
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright  2000 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.1</div>
</table></div></address></body></html>