File: qabstracteventdispatcher.html

package info (click to toggle)
qt4-x11 4%3A4.8.2%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 701,696 kB
  • sloc: cpp: 2,686,179; ansic: 375,485; python: 25,859; sh: 19,349; xml: 17,091; perl: 14,765; yacc: 5,383; asm: 5,038; makefile: 1,259; lex: 555; ruby: 526; objc: 347; cs: 112; pascal: 112; php: 54; sed: 34
file content (257 lines) | stat: -rw-r--r-- 24,342 bytes parent folder | download
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qabstracteventdispatcher.cpp -->
  <title>Qt 4.8: QAbstractEventDispatcher Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtcore.html">QtCore</a></li>
<li>QAbstractEventDispatcher</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QAbstractEventDispatcher Class Reference</h1>
<!-- $$$QAbstractEventDispatcher-brief -->
<p>The QAbstractEventDispatcher class provides an interface to manage Qt's event queue. <a href="#details">More...</a></p>
<!-- @@@QAbstractEventDispatcher -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QAbstractEventDispatcher&gt;</span></pre><p><b>Inherits: </b><a href="qobject.html">QObject</a>.</p>
<ul>
<li><a href="qabstracteventdispatcher-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#EventFilter-typedef">EventFilter</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#TimerInfo-typedef">TimerInfo</a></b></td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#QAbstractEventDispatcher">QAbstractEventDispatcher</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#dtor.QAbstractEventDispatcher">~QAbstractEventDispatcher</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#filterEvent">filterEvent</a></b> ( void * <i>message</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#flush">flush</a></b> () = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#hasPendingEvents">hasPendingEvents</a></b> () = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#interrupt">interrupt</a></b> () = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#processEvents">processEvents</a></b> ( QEventLoop::ProcessEventsFlags <i>flags</i> ) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#registerSocketNotifier">registerSocketNotifier</a></b> ( QSocketNotifier * <i>notifier</i> ) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#registerTimer">registerTimer</a></b> ( int <i>interval</i>, QObject * <i>object</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#registerTimer-2">registerTimer</a></b> ( int <i>timerId</i>, int <i>interval</i>, QObject * <i>object</i> ) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QList&lt;TimerInfo&gt; </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#registeredTimers">registeredTimers</a></b> ( QObject * <i>object</i> ) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> EventFilter </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#setEventFilter">setEventFilter</a></b> ( EventFilter <i>filter</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#unregisterSocketNotifier">unregisterSocketNotifier</a></b> ( QSocketNotifier * <i>notifier</i> ) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#unregisterTimer">unregisterTimer</a></b> ( int <i>timerId</i> ) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#unregisterTimers">unregisterTimers</a></b> ( QObject * <i>object</i> ) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#wakeUp">wakeUp</a></b> () = 0</td></tr>
</table>
<ul>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#aboutToBlock">aboutToBlock</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#awake">awake</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QAbstractEventDispatcher * </td><td class="memItemRight bottomAlign"><b><a href="qabstracteventdispatcher.html#instance">instance</a></b> ( QThread * <i>thread</i> = 0 )</td></tr>
</table>
<ul>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QAbstractEventDispatcher-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QAbstractEventDispatcher class provides an interface to manage Qt's event queue.</p>
<p>An event dispatcher receives events from the window system and other sources. It then sends them to the <a href="qcoreapplication.html">QCoreApplication</a> or <a href="qapplication.html">QApplication</a> instance for processing and delivery. QAbstractEventDispatcher provides fine-grained control over event delivery.</p>
<p>For simple control of event processing use <a href="qcoreapplication.html#processEvents">QCoreApplication::processEvents</a>().</p>
<p>For finer control of the application's event loop, call <a href="qabstracteventdispatcher.html#instance">instance</a>() and call functions on the QAbstractEventDispatcher object that is returned. If you want to use your own instance of QAbstractEventDispatcher or of a QAbstractEventDispatcher subclass, you must create your instance <i>before</i> you create the <a href="qapplication.html">QApplication</a> object.</p>
<p>The main event loop is started by calling <a href="qcoreapplication.html#exec">QCoreApplication::exec</a>(), and stopped by calling <a href="qcoreapplication.html#exit">QCoreApplication::exit</a>(). Local event loops can be created using <a href="qeventloop.html">QEventLoop</a>.</p>
<p>Programs that perform long operations can call <a href="qabstracteventdispatcher.html#processEvents">processEvents</a>() with a bitwise OR combination of various <a href="qeventloop.html#ProcessEventsFlag-enum">QEventLoop::ProcessEventsFlag</a> values to control which events should be delivered.</p>
<p>QAbstractEventDispatcher also allows the integration of an external event loop with the Qt event loop. For example, the <a href="ftp://ftp.qt.nokia.com/pub/qt/solutions/lgpl/qtmotifextension-2.7_1-opensource.tar.gz">Motif Extension</a> includes a reimplementation of QAbstractEventDispatcher that merges Qt and Motif events together.</p>
</div>
<p><b>See also </b><a href="qeventloop.html">QEventLoop</a> and <a href="qcoreapplication.html">QCoreApplication</a>.</p>
<!-- @@@QAbstractEventDispatcher -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$EventFilter -->
<h3 class="fn"><a name="EventFilter-typedef"></a>typedef QAbstractEventDispatcher::<span class="name">EventFilter</span></h3>
<p>Typedef for a function with the signature</p>
<pre class="cpp"> <span class="type">bool</span> myEventFilter(<span class="type">void</span> <span class="operator">*</span>message);</pre>
<p>Note that the type of the <i>message</i> is platform dependent. The following table shows the <i>message</i>'s type on Windows, Mac, and X11. You can do a static cast to these types.</p>
<table class="generic">
<thead><tr class="qt-style"><th >Platform</th><th >type</th></tr></thead>
<tr valign="top" class="odd"><td >Windows</td><td >MSG</td></tr>
<tr valign="top" class="even"><td >X11</td><td >XEvent</td></tr>
<tr valign="top" class="odd"><td >Mac</td><td >NSEvent</td></tr>
</table>
<p><b>See also </b><a href="qabstracteventdispatcher.html#setEventFilter">setEventFilter</a>() and <a href="qabstracteventdispatcher.html#filterEvent">filterEvent</a>().</p>
<!-- @@@EventFilter -->
<!-- $$$TimerInfo -->
<h3 class="fn"><a name="TimerInfo-typedef"></a>typedef QAbstractEventDispatcher::<span class="name">TimerInfo</span></h3>
<p>Typedef for <a href="qpair.html">QPair</a>&lt;int, int&gt;. The first component of the pair is the timer ID; the second component is the interval.</p>
<p><b>See also </b><a href="qabstracteventdispatcher.html#registeredTimers">registeredTimers</a>().</p>
<!-- @@@TimerInfo -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QAbstractEventDispatcher[overload1]$$$QAbstractEventDispatcherQObject* -->
<h3 class="fn"><a name="QAbstractEventDispatcher"></a>QAbstractEventDispatcher::<span class="name">QAbstractEventDispatcher</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs a new event dispatcher with the given <i>parent</i>.</p>
<!-- @@@QAbstractEventDispatcher -->
<!-- $$$~QAbstractEventDispatcher[overload1]$$$~QAbstractEventDispatcher -->
<h3 class="fn"><a name="dtor.QAbstractEventDispatcher"></a>QAbstractEventDispatcher::<span class="name">~QAbstractEventDispatcher</span> ()</h3>
<p>Destroys the event dispatcher.</p>
<!-- @@@~QAbstractEventDispatcher -->
<!-- $$$aboutToBlock[overload1]$$$aboutToBlock -->
<h3 class="fn"><a name="aboutToBlock"></a><span class="type">void</span> QAbstractEventDispatcher::<span class="name">aboutToBlock</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted before the event loop calls a function that could block.</p>
<p><b>See also </b><a href="qabstracteventdispatcher.html#awake">awake</a>().</p>
<!-- @@@aboutToBlock -->
<!-- $$$awake[overload1]$$$awake -->
<h3 class="fn"><a name="awake"></a><span class="type">void</span> QAbstractEventDispatcher::<span class="name">awake</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted after the event loop returns from a function that could block.</p>
<p><b>See also </b><a href="qabstracteventdispatcher.html#wakeUp">wakeUp</a>() and <a href="qabstracteventdispatcher.html#aboutToBlock">aboutToBlock</a>().</p>
<!-- @@@awake -->
<!-- $$$filterEvent[overload1]$$$filterEventvoid* -->
<h3 class="fn"><a name="filterEvent"></a><span class="type">bool</span> QAbstractEventDispatcher::<span class="name">filterEvent</span> ( <span class="type">void</span> * <i>message</i> )</h3>
<p>Sends <i>message</i> through the event filter that was set by <a href="qabstracteventdispatcher.html#setEventFilter">setEventFilter</a>(). If no event filter has been set, this function returns false; otherwise, this function returns the result of the event filter function.</p>
<p>Subclasses of <a href="qabstracteventdispatcher.html">QAbstractEventDispatcher</a> <i>must</i> call this function for <i>all</i> messages received from the system to ensure compatibility with any extensions that may be used in the application.</p>
<p>Note that the type of <i>message</i> is platform dependent. See <a href="qabstracteventdispatcher.html#EventFilter-typedef">QAbstractEventDispatcher::EventFilter</a> for details.</p>
<p><b>See also </b><a href="qabstracteventdispatcher.html#setEventFilter">setEventFilter</a>().</p>
<!-- @@@filterEvent -->
<!-- $$$flush[overload1]$$$flush -->
<h3 class="fn"><a name="flush"></a><span class="type">void</span> QAbstractEventDispatcher::<span class="name">flush</span> ()<tt> [pure virtual]</tt></h3>
<p>Flushes the event queue. This normally returns almost immediately. Does nothing on platforms other than X11.</p>
<!-- @@@flush -->
<!-- $$$hasPendingEvents[overload1]$$$hasPendingEvents -->
<h3 class="fn"><a name="hasPendingEvents"></a><span class="type">bool</span> QAbstractEventDispatcher::<span class="name">hasPendingEvents</span> ()<tt> [pure virtual]</tt></h3>
<p>Returns true if there is an event waiting; otherwise returns false.</p>
<!-- @@@hasPendingEvents -->
<!-- $$$instance[overload1]$$$instanceQThread* -->
<h3 class="fn"><a name="instance"></a><span class="type">QAbstractEventDispatcher</span> * QAbstractEventDispatcher::<span class="name">instance</span> ( <span class="type"><a href="qthread.html">QThread</a></span> * <i>thread</i> = 0 )<tt> [static]</tt></h3>
<p>Returns a pointer to the event dispatcher object for the specified <i>thread</i>. If <i>thread</i> is zero, the current thread is used. If no event dispatcher exists for the specified thread, this function returns 0.</p>
<p><b>Note:</b> If Qt is built without thread support, the <i>thread</i> argument is ignored.</p>
<!-- @@@instance -->
<!-- $$$interrupt[overload1]$$$interrupt -->
<h3 class="fn"><a name="interrupt"></a><span class="type">void</span> QAbstractEventDispatcher::<span class="name">interrupt</span> ()<tt> [pure virtual]</tt></h3>
<p>Interrupts event dispatching; i.e&#x2e; the event dispatcher will return from <a href="qabstracteventdispatcher.html#processEvents">processEvents</a>() as soon as possible.</p>
<!-- @@@interrupt -->
<!-- $$$processEvents[overload1]$$$processEventsQEventLoop::ProcessEventsFlags -->
<h3 class="fn"><a name="processEvents"></a><span class="type">bool</span> QAbstractEventDispatcher::<span class="name">processEvents</span> ( <span class="type"><a href="qeventloop.html#ProcessEventsFlag-enum">QEventLoop::ProcessEventsFlags</a></span> <i>flags</i> )<tt> [pure virtual]</tt></h3>
<p>Processes pending events that match <i>flags</i> until there are no more events to process. Returns true if an event was processed; otherwise returns false.</p>
<p>This function is especially useful if you have a long running operation and want to show its progress without allowing user input; i.e&#x2e; by using the <a href="qeventloop.html#ProcessEventsFlag-enum">QEventLoop::ExcludeUserInputEvents</a> flag.</p>
<p>If the <a href="qeventloop.html#ProcessEventsFlag-enum">QEventLoop::WaitForMoreEvents</a> flag is set in <i>flags</i>, the behavior of this function is as follows:</p>
<ul>
<li>If events are available, this function returns after processing them.</li>
<li>If no events are available, this function will wait until more are available and return after processing newly available events.</li>
</ul>
<p>If the <a href="qeventloop.html#ProcessEventsFlag-enum">QEventLoop::WaitForMoreEvents</a> flag is not set in <i>flags</i>, and no events are available, this function will return immediately.</p>
<p><b>Note:</b> This function does not process events continuously; it returns after all available events are processed.</p>
<p><b>See also </b><a href="qabstracteventdispatcher.html#hasPendingEvents">hasPendingEvents</a>().</p>
<!-- @@@processEvents -->
<!-- $$$registerSocketNotifier[overload1]$$$registerSocketNotifierQSocketNotifier* -->
<h3 class="fn"><a name="registerSocketNotifier"></a><span class="type">void</span> QAbstractEventDispatcher::<span class="name">registerSocketNotifier</span> ( <span class="type"><a href="qsocketnotifier.html">QSocketNotifier</a></span> * <i>notifier</i> )<tt> [pure virtual]</tt></h3>
<p>Registers <i>notifier</i> with the event loop. Subclasses must implement this method to tie a socket notifier into another event loop.</p>
<!-- @@@registerSocketNotifier -->
<!-- $$$registerTimer[overload1]$$$registerTimerintQObject* -->
<h3 class="fn"><a name="registerTimer"></a><span class="type">int</span> QAbstractEventDispatcher::<span class="name">registerTimer</span> ( <span class="type">int</span> <i>interval</i>, <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i> )</h3>
<p>Registers a timer with the specified <i>interval</i> for the given <i>object</i>.</p>
<!-- @@@registerTimer -->
<!-- $$$registerTimer$$$registerTimerintintQObject* -->
<h3 class="fn"><a name="registerTimer-2"></a><span class="type">void</span> QAbstractEventDispatcher::<span class="name">registerTimer</span> ( <span class="type">int</span> <i>timerId</i>, <span class="type">int</span> <i>interval</i>, <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i> )<tt> [pure virtual]</tt></h3>
<p>Register a timer with the specified <i>timerId</i> and <i>interval</i> for the given <i>object</i>.</p>
<!-- @@@registerTimer -->
<!-- $$$registeredTimers[overload1]$$$registeredTimersQObject* -->
<h3 class="fn"><a name="registeredTimers"></a><span class="type"><a href="qlist.html">QList</a></span>&lt;<span class="type"><a href="qabstracteventdispatcher.html#TimerInfo-typedef">TimerInfo</a></span>&gt; QAbstractEventDispatcher::<span class="name">registeredTimers</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i> ) const<tt> [pure virtual]</tt></h3>
<p>Returns a list of registered timers for <i>object</i>. The timer ID is the first member in each pair; the interval is the second.</p>
<!-- @@@registeredTimers -->
<!-- $$$setEventFilter[overload1]$$$setEventFilterEventFilter -->
<h3 class="fn"><a name="setEventFilter"></a><span class="type"><a href="qabstracteventdispatcher.html#EventFilter-typedef">EventFilter</a></span> QAbstractEventDispatcher::<span class="name">setEventFilter</span> ( <span class="type"><a href="qabstracteventdispatcher.html#EventFilter-typedef">EventFilter</a></span> <i>filter</i> )</h3>
<p>Replaces the event filter function for this <a href="qabstracteventdispatcher.html">QAbstractEventDispatcher</a> with <i>filter</i> and returns the replaced event filter function. Only the current event filter function is called. If you want to use both filter functions, save the replaced <a href="qabstracteventdispatcher.html#EventFilter-typedef">EventFilter</a> in a place where yours can call it.</p>
<p>The event filter function set here is called for all messages taken from the system event loop before the event is dispatched to the respective target, including the messages not meant for Qt objects.</p>
<p>The event filter function should return true if the message should be filtered, (i.e&#x2e; stopped). It should return false to allow processing the message to continue.</p>
<p>By default, no event filter function is set (i.e&#x2e;, this function returns a null <a href="qabstracteventdispatcher.html#EventFilter-typedef">EventFilter</a> the first time it is called).</p>
<!-- @@@setEventFilter -->
<!-- $$$unregisterSocketNotifier[overload1]$$$unregisterSocketNotifierQSocketNotifier* -->
<h3 class="fn"><a name="unregisterSocketNotifier"></a><span class="type">void</span> QAbstractEventDispatcher::<span class="name">unregisterSocketNotifier</span> ( <span class="type"><a href="qsocketnotifier.html">QSocketNotifier</a></span> * <i>notifier</i> )<tt> [pure virtual]</tt></h3>
<p>Unregisters <i>notifier</i> from the event dispatcher. Subclasses must reimplement this method to tie a socket notifier into another event loop. Reimplementations must call the base implementation.</p>
<!-- @@@unregisterSocketNotifier -->
<!-- $$$unregisterTimer[overload1]$$$unregisterTimerint -->
<h3 class="fn"><a name="unregisterTimer"></a><span class="type">bool</span> QAbstractEventDispatcher::<span class="name">unregisterTimer</span> ( <span class="type">int</span> <i>timerId</i> )<tt> [pure virtual]</tt></h3>
<p>Unregisters the timer with the given <i>timerId</i>. Returns true if successful; otherwise returns false.</p>
<p><b>See also </b><a href="qabstracteventdispatcher.html#registerTimer">registerTimer</a>() and <a href="qabstracteventdispatcher.html#unregisterTimers">unregisterTimers</a>().</p>
<!-- @@@unregisterTimer -->
<!-- $$$unregisterTimers[overload1]$$$unregisterTimersQObject* -->
<h3 class="fn"><a name="unregisterTimers"></a><span class="type">bool</span> QAbstractEventDispatcher::<span class="name">unregisterTimers</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i> )<tt> [pure virtual]</tt></h3>
<p>Unregisters all the timers associated with the given <i>object</i>. Returns true if all timers were successful removed; otherwise returns false.</p>
<p><b>See also </b><a href="qabstracteventdispatcher.html#unregisterTimer">unregisterTimer</a>() and <a href="qabstracteventdispatcher.html#registeredTimers">registeredTimers</a>().</p>
<!-- @@@unregisterTimers -->
<!-- $$$wakeUp[overload1]$$$wakeUp -->
<h3 class="fn"><a name="wakeUp"></a><span class="type">void</span> QAbstractEventDispatcher::<span class="name">wakeUp</span> ()<tt> [pure virtual]</tt></h3>
<p>Wakes up the event loop.</p>
<p><b>Note:</b> This function is <a href="threads-reentrancy.html#thread-safe">thread-safe</a>.</p>
<p><b>See also </b><a href="qabstracteventdispatcher.html#awake">awake</a>().</p>
<!-- @@@wakeUp -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2012 Nokia Corporation and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>