aboutsummaryrefslogtreecommitdiff
path: root/libcontextprovider/doc/html/class_context_provider_1_1_manager.html
blob: 2fd5cc7a53f6c9292e77eb1bc5a4c710be3961e6 (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libcontextprovider: ContextProvider::Manager 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_provider.html">ContextProvider</a>::<a class="el" href="class_context_provider_1_1_manager.html">Manager</a>
  </div>
</div>
<div class="contents">
<h1>ContextProvider::Manager Class Reference</h1><!-- doxytag: class="ContextProvider::Manager" --><a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> implements the org.freedesktop.ContextKit.Manager DBus interface. (With the help of <a class="el" href="class_context_provider_1_1_manager_adaptor.html" title="A DBus adaptor for implementing the org.freedesktop.ContextKit.Manager interface...">ManagerAdaptor</a>.) It creates and manages the <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> objects. There is one <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> object per each service.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="manager_8h-source.html">manager.h</a>&gt;</code>
<p>

<p>
<a href="class_context_provider_1_1_manager-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></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_provider_1_1_manager.html#f63b1764b3ca90140dddc0e041a2c0c5">firstSubscriberAppeared</a> (const QString &amp;key)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Emitted when the first subscriber appears for the specified <em>key</em>.  <a href="#f63b1764b3ca90140dddc0e041a2c0c5"></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_provider_1_1_manager.html#53f6700553dfe9958cae15a2c7f12142">lastSubscriberDisappeared</a> (const QString &amp;key)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Emitted when the last subscriber disappears from the specified <em>key</em>.  <a href="#53f6700553dfe9958cae15a2c7f12142"></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_provider_1_1_manager.html#34c580dc9b1a105d083fa44d06fff1ee">keyValueChanged</a> (const QString &amp;key, const QVariant &amp;newValue)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Emitted when a <em>key</em> managed by the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> changes to value <em>newValue</em>.  <a href="#34c580dc9b1a105d083fa44d06fff1ee"></a><br></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_provider_1_1_manager.html#690f98398be0562a475c7c3191dab82f">Manager</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#28223781c8fa135b05993ce31b2b26cb">~Manager</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destroys the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>.  <a href="#28223781c8fa135b05993ce31b2b26cb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_context_provider_1_1_subscriber.html">Subscriber</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#2c020866b5871894a5f2149dea6252a3">getSubscriber</a> (const QString &amp;busName)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gives the <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object to a client with a given <em>busName</em>.  <a href="#2c020866b5871894a5f2149dea6252a3"></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_provider_1_1_manager.html#1a06f69bb5e25b957b8d2163d1596678">keyIsValid</a> (const QString &amp;key) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if the given <em>key</em> is valid for this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>.  <a href="#1a06f69bb5e25b957b8d2163d1596678"></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_provider_1_1_manager.html#87b54dba08c59479a11b3c7c223bda9b">increaseSubscriptionCount</a> (const QString &amp;key)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Increases the subscription count for the given <em>key</em>.  <a href="#87b54dba08c59479a11b3c7c223bda9b"></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_provider_1_1_manager.html#f2d5d29f10a473bb71c5cf1a9dc53708">decreaseSubscriptionCount</a> (const QString &amp;key)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Decreases the subscription count for the given <em>key</em>.  <a href="#f2d5d29f10a473bb71c5cf1a9dc53708"></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_provider_1_1_manager.html#06c2c0a4b9f837377d19d891375a5fab">setKeyValue</a> (const QString &amp;key, const QVariant &amp;v)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the given <em>key</em> to a new value <em>v</em>.  <a href="#06c2c0a4b9f837377d19d891375a5fab"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QVariant&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#e28730fbd946143d5f257f8647200c96">getKeyValue</a> (const QString &amp;key)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the current value of the <em>key</em>.  <a href="#e28730fbd946143d5f257f8647200c96"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#6a2a5d39c7ba6a770645f91dfea7011a">getSubscriptionCount</a> (const QString &amp;key) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the current subscription count for the given <em>key</em>.  <a href="#6a2a5d39c7ba6a770645f91dfea7011a"></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_provider_1_1_manager.html#c8535b2e47e2b67546dc3e2f28e6e665">busNameIsGone</a> (const QString &amp;key)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Informs the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> that the specified bus name is now gone.  <a href="#c8535b2e47e2b67546dc3e2f28e6e665"></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_provider_1_1_manager.html#862864581c8c8fabb871211ec50735b4">hasSubscriberWithBusName</a> (const QString &amp;name) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> has a <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object with the given <em>name</em>.  <a href="#862864581c8c8fabb871211ec50735b4"></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_provider_1_1_manager.html#c4b4c739c7429a94a3294af47ee0fbf7">addKey</a> (const QString &amp;key)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a key to this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>.  <a href="#c4b4c739c7429a94a3294af47ee0fbf7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QStringList&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#36d1aa023f27e2d5852a5e48b1974806">getKeys</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the list of keys handled by this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>.  <a href="#36d1aa023f27e2d5852a5e48b1974806"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> implements the org.freedesktop.ContextKit.Manager DBus interface. (With the help of <a class="el" href="class_context_provider_1_1_manager_adaptor.html" title="A DBus adaptor for implementing the org.freedesktop.ContextKit.Manager interface...">ManagerAdaptor</a>.) It creates and manages the <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> objects. There is one <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> object per each service. 
<p>
<a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> is responsible of allocating <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> objects to clients. It ensures that each client gets a unique <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object (even if it executes GetSubscriber multiple times). When a client terminates its DBus connection, the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> (through the help of the adapter) deletes the corresponding <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object.<p>
Each service started gets it's own <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> object that manages the keys belonging to the service. The <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> is registered as the org.freedesktop.ContextKit.Manager on the bus belonging to the service. <hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="690f98398be0562a475c7c3191dab82f"></a><!-- doxytag: member="ContextProvider::Manager::Manager" ref="690f98398be0562a475c7c3191dab82f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ContextProvider::Manager::Manager           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="28223781c8fa135b05993ce31b2b26cb"></a><!-- doxytag: member="ContextProvider::Manager::~Manager" ref="28223781c8fa135b05993ce31b2b26cb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ContextProvider::Manager::~Manager           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destroys the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. 
<p>
Also destroys all the belonging subscriber objects created through <a class="el" href="class_context_provider_1_1_manager.html#2c020866b5871894a5f2149dea6252a3" title="Gives the Subscriber object to a client with a given busName.">getSubscriber()</a>. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="c4b4c739c7429a94a3294af47ee0fbf7"></a><!-- doxytag: member="ContextProvider::Manager::addKey" ref="c4b4c739c7429a94a3294af47ee0fbf7" args="(const QString &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextProvider::Manager::addKey           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add a key to this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. 
<p>
Duplicate keys will be ignored with a warning. 
</div>
</div><p>
<a class="anchor" name="c8535b2e47e2b67546dc3e2f28e6e665"></a><!-- doxytag: member="ContextProvider::Manager::busNameIsGone" ref="c8535b2e47e2b67546dc3e2f28e6e665" args="(const QString &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextProvider::Manager::busNameIsGone           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>busName</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Informs the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> that the specified bus name is now gone. 
<p>
The manager should remove all the subscribers created with this busname. 
</div>
</div><p>
<a class="anchor" name="f2d5d29f10a473bb71c5cf1a9dc53708"></a><!-- doxytag: member="ContextProvider::Manager::decreaseSubscriptionCount" ref="f2d5d29f10a473bb71c5cf1a9dc53708" args="(const QString &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextProvider::Manager::decreaseSubscriptionCount           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Decreases the subscription count for the given <em>key</em>. 
<p>
The <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> will emit a lastSubscriberDisappeared signal if this is the last subscription. This is called by the child <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> objects. 
</div>
</div><p>
<a class="anchor" name="f63b1764b3ca90140dddc0e041a2c0c5"></a><!-- doxytag: member="ContextProvider::Manager::firstSubscriberAppeared" ref="f63b1764b3ca90140dddc0e041a2c0c5" args="(const QString &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextProvider::Manager::firstSubscriberAppeared           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Emitted when the first subscriber appears for the specified <em>key</em>. 
<p>

</div>
</div><p>
<a class="anchor" name="36d1aa023f27e2d5852a5e48b1974806"></a><!-- doxytag: member="ContextProvider::Manager::getKeys" ref="36d1aa023f27e2d5852a5e48b1974806" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QStringList ContextProvider::Manager::getKeys           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the list of keys handled by this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. 
<p>

</div>
</div><p>
<a class="anchor" name="e28730fbd946143d5f257f8647200c96"></a><!-- doxytag: member="ContextProvider::Manager::getKeyValue" ref="e28730fbd946143d5f257f8647200c96" args="(const QString &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVariant ContextProvider::Manager::getKeyValue           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the current value of the <em>key</em>. 
<p>
The returned QVariant is invalid if the value is undetermined or they key is not valid for this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. 
</div>
</div><p>
<a class="anchor" name="2c020866b5871894a5f2149dea6252a3"></a><!-- doxytag: member="ContextProvider::Manager::getSubscriber" ref="2c020866b5871894a5f2149dea6252a3" args="(const QString &amp;busName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_context_provider_1_1_subscriber.html">Subscriber</a> * ContextProvider::Manager::getSubscriber           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>busName</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gives the <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object to a client with a given <em>busName</em>. 
<p>
If the client is new, creates a new <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object and gives it to the client. If the client has requested a <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> previously, returns the same object. 
</div>
</div><p>
<a class="anchor" name="6a2a5d39c7ba6a770645f91dfea7011a"></a><!-- doxytag: member="ContextProvider::Manager::getSubscriptionCount" ref="6a2a5d39c7ba6a770645f91dfea7011a" args="(const QString &amp;key) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ContextProvider::Manager::getSubscriptionCount           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the current subscription count for the given <em>key</em>. 
<p>
Returns -1 if the key could not be found. 
</div>
</div><p>
<a class="anchor" name="862864581c8c8fabb871211ec50735b4"></a><!-- doxytag: member="ContextProvider::Manager::hasSubscriberWithBusName" ref="862864581c8c8fabb871211ec50735b4" args="(const QString &amp;name) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ContextProvider::Manager::hasSubscriberWithBusName           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns true if the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> has a <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object with the given <em>name</em>. 
<p>
The <em>name</em> is the bus name. 
</div>
</div><p>
<a class="anchor" name="87b54dba08c59479a11b3c7c223bda9b"></a><!-- doxytag: member="ContextProvider::Manager::increaseSubscriptionCount" ref="87b54dba08c59479a11b3c7c223bda9b" args="(const QString &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextProvider::Manager::increaseSubscriptionCount           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Increases the subscription count for the given <em>key</em>. 
<p>
The <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> will emit a firstSubscriberAppeared signal if this is the first subscription. This is called by the child <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> objects. 
</div>
</div><p>
<a class="anchor" name="1a06f69bb5e25b957b8d2163d1596678"></a><!-- doxytag: member="ContextProvider::Manager::keyIsValid" ref="1a06f69bb5e25b957b8d2163d1596678" args="(const QString &amp;key) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ContextProvider::Manager::keyIsValid           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns true if the given <em>key</em> is valid for this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. 
<p>
In other words, returns true if the <em>key</em> is managed by this manager. 
</div>
</div><p>
<a class="anchor" name="34c580dc9b1a105d083fa44d06fff1ee"></a><!-- doxytag: member="ContextProvider::Manager::keyValueChanged" ref="34c580dc9b1a105d083fa44d06fff1ee" args="(const QString &amp;key, const QVariant &amp;newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextProvider::Manager::keyValueChanged           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QVariant &amp;&nbsp;</td>
          <td class="paramname"> <em>newValue</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Emitted when a <em>key</em> managed by the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> changes to value <em>newValue</em>. 
<p>

</div>
</div><p>
<a class="anchor" name="53f6700553dfe9958cae15a2c7f12142"></a><!-- doxytag: member="ContextProvider::Manager::lastSubscriberDisappeared" ref="53f6700553dfe9958cae15a2c7f12142" args="(const QString &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextProvider::Manager::lastSubscriberDisappeared           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Emitted when the last subscriber disappears from the specified <em>key</em>. 
<p>

</div>
</div><p>
<a class="anchor" name="06c2c0a4b9f837377d19d891375a5fab"></a><!-- doxytag: member="ContextProvider::Manager::setKeyValue" ref="06c2c0a4b9f837377d19d891375a5fab" args="(const QString &amp;key, const QVariant &amp;v)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextProvider::Manager::setKeyValue           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QVariant &amp;&nbsp;</td>
          <td class="paramname"> <em>v</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the given <em>key</em> to a new value <em>v</em>. 
<p>
This triggers the emission of the <a class="el" href="class_context_provider_1_1_manager.html#34c580dc9b1a105d083fa44d06fff1ee" title="Emitted when a key managed by the Manager changes to value newValue.">Manager::keyValueChanged</a> signal. 
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="manager_8h-source.html">manager.h</a><li><a class="el" href="manager_8cpp.html">manager.cpp</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Oct 23 08:58:39 2009 for libcontextprovider 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>