aboutsummaryrefslogtreecommitdiff
path: root/libcontextsubscriber/doc/html/class_context_subscriber_1_1_d_bus_name_listener.html
blob: 6f6c8c2f0da27dfccf59dff817651c86f50894ac (plain)
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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libcontextsubscriber: ContextSubscriber::DBusNameListener Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespace_context_subscriber.html">ContextSubscriber</a>::<a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html">DBusNameListener</a>
  </div>
</div>
<div class="contents">
<h1>ContextSubscriber::DBusNameListener Class Reference</h1><!-- doxytag: class="ContextSubscriber::DBusNameListener" -->Listens for changes in a specific service name on a D-Bus bus, optionally gets the initial state of the service name.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="dbusnamelistener_8h-source.html">dbusnamelistener.h</a>&gt;</code>
<p>

<p>
<a href="class_context_subscriber_1_1_d_bus_name_listener-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#c265c0eaa26e4e3b3c3182652563032d">ServicePresence</a> { <a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#c265c0eaa26e4e3b3c3182652563032de05cd8cfb673aebec9380153d11a8884">NotPresent</a> =  0, 
<a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#c265c0eaa26e4e3b3c3182652563032d7d8b53934031f453839328d87f1602ab">Present</a>, 
<a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#c265c0eaa26e4e3b3c3182652563032dd3f04d9af475c8f8a465d7aa0e0bd48c">Unknown</a>
 }</td></tr>

<tr><td colspan="2"><br><h2>Signals</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#156d249adafb167b396e61786590480b">nameAppeared</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#96df4b22f35d6e39d0db58e1e26a9550">nameDisappeared</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#80cd4b4576989625cefc639d21bfee5d">DBusNameListener</a> (QDBusConnection::BusType <a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#4ae2ef44be74c21c952f1bddb2a152f9">busType</a>, const QString &amp;<a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#86d18fe068b5a9e7b722aaf76dd897bd">busName</a>, QObject *parent=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#c9b64a5b065dab20600d600c54cac950">DBusNameListener</a> (const QDBusConnection bus, const QString &amp;<a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#86d18fe068b5a9e7b722aaf76dd897bd">busName</a>, QObject *parent=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#0049dbd454615122dcfca92253b7e7d7">~DBusNameListener</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#29c51998308e0448bee857df8f8206cc">startListening</a> (bool nameHasOwnerCheck)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Start listening to the NameOwnerChanged signal over D-Bus.  <a href="#29c51998308e0448bee857df8f8206cc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#c265c0eaa26e4e3b3c3182652563032d">ServicePresence</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#c6727dbeb9c1f8ef2c101b223ef3acca">isServicePresent</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return our current understanding (not present, present, unknown) of the presence of the watched service.  <a href="#c6727dbeb9c1f8ef2c101b223ef3acca"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Slots</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#ca7dd6273d3e2335a436b34b284d1830">onServiceOwnerChanged</a> (const QString &amp;name, const QString &amp;oldOwner, const QString &amp;newOwner)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This slot is called when DBusNameOwnerChanged signal arrives and it just filters the name and if we are interested in the name it emits the <code><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#156d249adafb167b396e61786590480b">nameAppeared()</a></code> or <code><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#96df4b22f35d6e39d0db58e1e26a9550">nameDisappeared()</a></code> signal.  <a href="#ca7dd6273d3e2335a436b34b284d1830"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#fd2c19f9dc41d1e68bc2d22a1e2ac4a7">onNameHasOwnerFinished</a> (QDBusPendingCallWatcher *watcher)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Handling of the asynchronous reply of the initial query.  <a href="#fd2c19f9dc41d1e68bc2d22a1e2ac4a7"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#888a8557a7246d7c268e8037220f3156">setServicePresent</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#2a28de9dd87121d688410053a025c470">setServiceGone</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#c265c0eaa26e4e3b3c3182652563032d">ServicePresence</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#b1dd997605d2d5ef768c1b113ee42c52">servicePresent</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Our current understanding about the service name's state.  <a href="#b1dd997605d2d5ef768c1b113ee42c52"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QDBusConnection::BusType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#4ae2ef44be74c21c952f1bddb2a152f9">busType</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The service bus type we are interested in.  <a href="#4ae2ef44be74c21c952f1bddb2a152f9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#86d18fe068b5a9e7b722aaf76dd897bd">busName</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The service name we are interested in.  <a href="#86d18fe068b5a9e7b722aaf76dd897bd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#2141c57da98b81259101f6e782cf92f5">listeningStarted</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QDBusConnection *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#e09ac9d58b9c15e9ba77bf7f8247a5e7">connection</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Listens for changes in a specific service name on a D-Bus bus, optionally gets the initial state of the service name. 
<p>
When you create an instance of this class, it won't open any D-Bus connections. When startListening is called, the instance connects to the NameOwnerChanged D-Bus signal. It can also check the current status of the service by executing an asynchronous NameHasOwner call.<p>
If the specified service appears on D-Bus, it will emit the <code><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#156d249adafb167b396e61786590480b">nameAppeared()</a></code> signal, if disappears, then the <a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#96df4b22f35d6e39d0db58e1e26a9550">nameDisappeared()</a> signal. An initial query and signal emission will be done if <code>initialCheck</code> is true, which is the default.<p>
Anytime you can check with <code><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#c6727dbeb9c1f8ef2c101b223ef3acca" title="Return our current understanding (not present, present, unknown) of the presence...">isServicePresent()</a></code> if according to our current knowledge (last signal emission) the service is present or not. This means that if <code>initialCheck</code> is false, <code><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#c6727dbeb9c1f8ef2c101b223ef3acca" title="Return our current understanding (not present, present, unknown) of the presence...">isServicePresent()</a></code> can return false, even though the service is present. <hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="c265c0eaa26e4e3b3c3182652563032d"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::ServicePresence" ref="c265c0eaa26e4e3b3c3182652563032d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#c265c0eaa26e4e3b3c3182652563032d">ContextSubscriber::DBusNameListener::ServicePresence</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="c265c0eaa26e4e3b3c3182652563032de05cd8cfb673aebec9380153d11a8884"></a><!-- doxytag: member="NotPresent" ref="c265c0eaa26e4e3b3c3182652563032de05cd8cfb673aebec9380153d11a8884" args="" -->NotPresent</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c265c0eaa26e4e3b3c3182652563032d7d8b53934031f453839328d87f1602ab"></a><!-- doxytag: member="Present" ref="c265c0eaa26e4e3b3c3182652563032d7d8b53934031f453839328d87f1602ab" args="" -->Present</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c265c0eaa26e4e3b3c3182652563032dd3f04d9af475c8f8a465d7aa0e0bd48c"></a><!-- doxytag: member="Unknown" ref="c265c0eaa26e4e3b3c3182652563032dd3f04d9af475c8f8a465d7aa0e0bd48c" args="" -->Unknown</em>&nbsp;</td><td>
</td></tr>
</table>
</dl>

</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="80cd4b4576989625cefc639d21bfee5d"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::DBusNameListener" ref="80cd4b4576989625cefc639d21bfee5d" args="(QDBusConnection::BusType busType, const QString &amp;busName, QObject *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ContextSubscriber::DBusNameListener::DBusNameListener           </td>
          <td>(</td>
          <td class="paramtype">QDBusConnection::BusType&nbsp;</td>
          <td class="paramname"> <em>busType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>busName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QObject *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="c9b64a5b065dab20600d600c54cac950"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::DBusNameListener" ref="c9b64a5b065dab20600d600c54cac950" args="(const QDBusConnection bus, const QString &amp;busName, QObject *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ContextSubscriber::DBusNameListener::DBusNameListener           </td>
          <td>(</td>
          <td class="paramtype">const QDBusConnection&nbsp;</td>
          <td class="paramname"> <em>bus</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>busName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QObject *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="0049dbd454615122dcfca92253b7e7d7"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::~DBusNameListener" ref="0049dbd454615122dcfca92253b7e7d7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ContextSubscriber::DBusNameListener::~DBusNameListener           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="c6727dbeb9c1f8ef2c101b223ef3acca"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::isServicePresent" ref="c6727dbeb9c1f8ef2c101b223ef3acca" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#c265c0eaa26e4e3b3c3182652563032d">DBusNameListener::ServicePresence</a> ContextSubscriber::DBusNameListener::isServicePresent           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return our current understanding (not present, present, unknown) of the presence of the watched service. 
<p>

</div>
</div><p>
<a class="anchor" name="156d249adafb167b396e61786590480b"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::nameAppeared" ref="156d249adafb167b396e61786590480b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::DBusNameListener::nameAppeared           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="96df4b22f35d6e39d0db58e1e26a9550"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::nameDisappeared" ref="96df4b22f35d6e39d0db58e1e26a9550" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::DBusNameListener::nameDisappeared           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="fd2c19f9dc41d1e68bc2d22a1e2ac4a7"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::onNameHasOwnerFinished" ref="fd2c19f9dc41d1e68bc2d22a1e2ac4a7" args="(QDBusPendingCallWatcher *watcher)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::DBusNameListener::onNameHasOwnerFinished           </td>
          <td>(</td>
          <td class="paramtype">QDBusPendingCallWatcher *&nbsp;</td>
          <td class="paramname"> <em>watcher</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Handling of the asynchronous reply of the initial query. 
<p>

</div>
</div><p>
<a class="anchor" name="ca7dd6273d3e2335a436b34b284d1830"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::onServiceOwnerChanged" ref="ca7dd6273d3e2335a436b34b284d1830" args="(const QString &amp;name, const QString &amp;oldOwner, const QString &amp;newOwner)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::DBusNameListener::onServiceOwnerChanged           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>oldOwner</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>newOwner</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This slot is called when DBusNameOwnerChanged signal arrives and it just filters the name and if we are interested in the name it emits the <code><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#156d249adafb167b396e61786590480b">nameAppeared()</a></code> or <code><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#96df4b22f35d6e39d0db58e1e26a9550">nameDisappeared()</a></code> signal. 
<p>

</div>
</div><p>
<a class="anchor" name="2a28de9dd87121d688410053a025c470"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::setServiceGone" ref="2a28de9dd87121d688410053a025c470" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::DBusNameListener::setServiceGone           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="888a8557a7246d7c268e8037220f3156"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::setServicePresent" ref="888a8557a7246d7c268e8037220f3156" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::DBusNameListener::setServicePresent           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="29c51998308e0448bee857df8f8206cc"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::startListening" ref="29c51998308e0448bee857df8f8206cc" args="(bool nameHasOwnerCheck)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::DBusNameListener::startListening           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>nameHasOwnerCheck</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Start listening to the NameOwnerChanged signal over D-Bus. 
<p>
If <em>nameHasOwnerCheck</em> is true, also send a NameHasOwner query to D-Bus (asyncronously). 
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="86d18fe068b5a9e7b722aaf76dd897bd"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::busName" ref="86d18fe068b5a9e7b722aaf76dd897bd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#86d18fe068b5a9e7b722aaf76dd897bd">ContextSubscriber::DBusNameListener::busName</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The service name we are interested in. 
<p>

</div>
</div><p>
<a class="anchor" name="4ae2ef44be74c21c952f1bddb2a152f9"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::busType" ref="4ae2ef44be74c21c952f1bddb2a152f9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QDBusConnection::BusType <a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#4ae2ef44be74c21c952f1bddb2a152f9">ContextSubscriber::DBusNameListener::busType</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The service bus type we are interested in. 
<p>

</div>
</div><p>
<a class="anchor" name="e09ac9d58b9c15e9ba77bf7f8247a5e7"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::connection" ref="e09ac9d58b9c15e9ba77bf7f8247a5e7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QDBusConnection* <a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#e09ac9d58b9c15e9ba77bf7f8247a5e7">ContextSubscriber::DBusNameListener::connection</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="2141c57da98b81259101f6e782cf92f5"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::listeningStarted" ref="2141c57da98b81259101f6e782cf92f5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#2141c57da98b81259101f6e782cf92f5">ContextSubscriber::DBusNameListener::listeningStarted</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="b1dd997605d2d5ef768c1b113ee42c52"></a><!-- doxytag: member="ContextSubscriber::DBusNameListener::servicePresent" ref="b1dd997605d2d5ef768c1b113ee42c52" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#c265c0eaa26e4e3b3c3182652563032d">ServicePresence</a> <a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html#b1dd997605d2d5ef768c1b113ee42c52">ContextSubscriber::DBusNameListener::servicePresent</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Our current understanding about the service name's state. 
<p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="dbusnamelistener_8h-source.html">dbusnamelistener.h</a><li><a class="el" href="dbusnamelistener_8cpp.html">dbusnamelistener.cpp</a><li><a class="el" href="mocs_8cpp.html">mocs.cpp</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 30 10:24:18 2009 for libcontextsubscriber by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>