aboutsummaryrefslogtreecommitdiff
path: root/libcontextsubscriber/doc/html/class_context_subscriber_1_1_property_handle.html
blob: cdee2379c3e82a0560768a2e4ac2e9c0da2d71d8 (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
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
<!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::PropertyHandle 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_property_handle.html">PropertyHandle</a>
  </div>
</div>
<div class="contents">
<h1>ContextSubscriber::PropertyHandle Class Reference</h1><!-- doxytag: class="ContextSubscriber::PropertyHandle" -->A common handle for a context property.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="propertyhandle_8h-source.html">propertyhandle.h</a>&gt;</code>
<p>

<p>
<a href="class_context_subscriber_1_1_property_handle-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_subscriber_1_1_property_handle.html#0ceee4d69e18be36e726af552aaa58ba">valueChanged</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Public 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_property_handle.html#0b12828c764b164dc276a84d46c2ae55">subscribe</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Increase the <code>subscribeCount</code> of this context property and subscribe to it through the <code>myProvider</code> instance if neccessary.  <a href="#0b12828c764b164dc276a84d46c2ae55"></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_property_handle.html#d1e8961717be9c3a813096092d1837a4">unsubscribe</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Decrease the <code>subscribeCount</code> of this context property and unsubscribe from it through the <code>myProvider</code> instance if neccessary.  <a href="#d1e8961717be9c3a813096092d1837a4"></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_property_handle.html#6d4c9e5006a080e7ae645ed15b1edb28">key</a> () const </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_subscriber_1_1_property_handle.html#bfeb2b16704e22adc33c31e162ef4e36">value</a> () const </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_property_handle.html#22f3af77b3cd883beeab47c5f4365169">isSubscribePending</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_context_property_info.html">ContextPropertyInfo</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_property_handle.html#2626ff2603e1afcd8172008d5932006a">info</a> () const </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_property_handle.html#1d0a471cd063b862fcf09aafd4b125af">onValueChanged</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Used by the <code><a class="el" href="class_context_subscriber_1_1_handle_signal_router.html" title="Routes the valueChanged() and the subscribeFinished() signals to the correct PropertyHandle...">HandleSignalRouter</a></code> to change the value of the property.  <a href="#1d0a471cd063b862fcf09aafd4b125af"></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_property_handle.html#1d4157822007d94fbdfa3af80a8fc758">setSubscribeFinished</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets <code>subscribePending</code> to false.  <a href="#1d4157822007d94fbdfa3af80a8fc758"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_context_subscriber_1_1_property_handle.html">PropertyHandle</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_property_handle.html#7f70f0de00c9781d43c99ca5d7f87eb1">instance</a> (const QString &amp;key)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_property_handle.html#6001316d6491ca69ca5be43af4a36211">ignoreCommander</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_property_handle.html#3031c1cf5c5d3ccdcf91a2218c2e460e">setTypeCheck</a> (bool typeCheck)</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_property_handle.html#067242c57b142940ba02b1e5a74548d5">updateProvider</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Decides who is the current provider of this property and sets up <code>myProvider</code> accordingly.  <a href="#067242c57b142940ba02b1e5a74548d5"></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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_property_handle.html#1d523c4bc3538073f7f617456cd81a79">PropertyHandle</a> (const QString &amp;key)</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_provider.html">Provider</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_property_handle.html#da859c28e9320fcb89328cb5153a3d35">myProvider</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="class_context_subscriber_1_1_provider.html" title="Connects to a group of properties via the help of a plugin.">Provider</a> of this property.  <a href="#da859c28e9320fcb89328cb5153a3d35"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_context_property_info.html">ContextPropertyInfo</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_property_handle.html#aa914d9958d6a3f6b69d3b1446307cea">myInfo</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Metadata for this property.  <a href="#aa914d9958d6a3f6b69d3b1446307cea"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_property_handle.html#809f0eae9aef4ffec99f035b7e0e547f">subscribeCount</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of subscribed <a class="el" href="class_context_property.html" title="The ContextProperty class allows access to keys and their values.">ContextProperty</a> objects subscribed to this property.  <a href="#809f0eae9aef4ffec99f035b7e0e547f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QMutex&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_property_handle.html#e7fb88f203671edb264655c06bc2e1f0">subscribeCountLock</a></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_property_handle.html#584bab7e2a167ccf22f45a5cd3f46c16">subscribePending</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">True when the subscription has been started, but hasn't been finished yet (used by the waitForSubscription() feature).  <a href="#584bab7e2a167ccf22f45a5cd3f46c16"></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_property_handle.html#ba3e2fbd0fc8a8ab0db60efe934f7d6d">myKey</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Key of this property.  <a href="#ba3e2fbd0fc8a8ab0db60efe934f7d6d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QReadWriteLock&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_property_handle.html#d3d31e74ac2b7e1727ff0947895f4fc1">valueLock</a></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_subscriber_1_1_property_handle.html#984638b2c34c7756fd17ff41de90a2df">myValue</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Current value of this property.  <a href="#984638b2c34c7756fd17ff41de90a2df"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html">DBusNameListener</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_property_handle.html#8cb5a37f3a69e7019e9d7559e1e2993c">commanderListener</a> = new <a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html">DBusNameListener</a>(commanderDBusType, commanderDBusName)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Listener for ContextCommander's (dis)appearance.  <a href="#8cb5a37f3a69e7019e9d7559e1e2993c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_property_handle.html#cb7a882c3ef0423544754bd6fd5de7af">commandingEnabled</a> = true</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Whether the properties can be directed to ContextCommander.  <a href="#cb7a882c3ef0423544754bd6fd5de7af"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_subscriber_1_1_property_handle.html#27312e770b51ebf5439e31361ceb46c4">typeCheckEnabled</a> = false</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Whether we check the type of the value received from the provider.  <a href="#27312e770b51ebf5439e31361ceb46c4"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A common handle for a context property. 
<p>
Only one handle exists at a time for a context property, no matter how much <a class="el" href="class_context_property.html" title="The ContextProperty class allows access to keys and their values.">ContextProperty</a> objects are created for it.<p>
Communication with the provider is done through the <code>myProvider</code> <code><a class="el" href="class_context_subscriber_1_1_provider.html" title="Connects to a group of properties via the help of a plugin.">Provider</a></code> instance, which is updated when needed because of registry changes. Handling of disappearance from the DBus and then reappearance on the DBus of the same provider is handled privately by <code><a class="el" href="class_context_subscriber_1_1_provider.html" title="Connects to a group of properties via the help of a plugin.">Provider</a></code>. If we don't know the current provider for this handle, then the <code>myProvider</code> pointer is 0.<p>
<a class="el" href="class_context_subscriber_1_1_property_handle.html" title="A common handle for a context property.">PropertyHandle</a> and <a class="el" href="class_context_subscriber_1_1_provider.html" title="Connects to a group of properties via the help of a plugin.">Provider</a> instances are never deleted; they stick around until the process is terminated.<p>
All of the <a class="el" href="class_context_subscriber_1_1_property_handle.html" title="A common handle for a context property.">PropertyHandle</a> instances and Property provider instances are always created with the <code>QCoreApplication's</code> thread as the thread where they live. This is needed, because user threads can go away and we would like to have only one DBus connection. <hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="1d523c4bc3538073f7f617456cd81a79"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::PropertyHandle" ref="1d523c4bc3538073f7f617456cd81a79" args="(const QString &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ContextSubscriber::PropertyHandle::PropertyHandle           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="6001316d6491ca69ca5be43af4a36211"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::ignoreCommander" ref="6001316d6491ca69ca5be43af4a36211" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::PropertyHandle::ignoreCommander           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="2626ff2603e1afcd8172008d5932006a"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::info" ref="2626ff2603e1afcd8172008d5932006a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_context_property_info.html">ContextPropertyInfo</a> * ContextSubscriber::PropertyHandle::info           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="7f70f0de00c9781d43c99ca5d7f87eb1"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::instance" ref="7f70f0de00c9781d43c99ca5d7f87eb1" args="(const QString &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_context_subscriber_1_1_property_handle.html">PropertyHandle</a> * ContextSubscriber::PropertyHandle::instance           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="22f3af77b3cd883beeab47c5f4365169"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::isSubscribePending" ref="22f3af77b3cd883beeab47c5f4365169" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ContextSubscriber::PropertyHandle::isSubscribePending           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="6d4c9e5006a080e7ae645ed15b1edb28"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::key" ref="6d4c9e5006a080e7ae645ed15b1edb28" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString ContextSubscriber::PropertyHandle::key           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="1d0a471cd063b862fcf09aafd4b125af"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::onValueChanged" ref="1d0a471cd063b862fcf09aafd4b125af" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::PropertyHandle::onValueChanged           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Used by the <code><a class="el" href="class_context_subscriber_1_1_handle_signal_router.html" title="Routes the valueChanged() and the subscribeFinished() signals to the correct PropertyHandle...">HandleSignalRouter</a></code> to change the value of the property. 
<p>
Before changing the value it checks the type if type checks are enabled. The verification errors are signalled on the stderr. After the check it updates the value and emits the <a class="el" href="class_context_subscriber_1_1_property_handle.html#0ceee4d69e18be36e726af552aaa58ba">valueChanged()</a> signal. 
</div>
</div><p>
<a class="anchor" name="1d4157822007d94fbdfa3af80a8fc758"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::setSubscribeFinished" ref="1d4157822007d94fbdfa3af80a8fc758" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::PropertyHandle::setSubscribeFinished           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets <code>subscribePending</code> to false. 
<p>

</div>
</div><p>
<a class="anchor" name="3031c1cf5c5d3ccdcf91a2218c2e460e"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::setTypeCheck" ref="3031c1cf5c5d3ccdcf91a2218c2e460e" args="(bool typeCheck)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::PropertyHandle::setTypeCheck           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>typeCheck</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="0b12828c764b164dc276a84d46c2ae55"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::subscribe" ref="0b12828c764b164dc276a84d46c2ae55" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::PropertyHandle::subscribe           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Increase the <code>subscribeCount</code> of this context property and subscribe to it through the <code>myProvider</code> instance if neccessary. 
<p>

</div>
</div><p>
<a class="anchor" name="d1e8961717be9c3a813096092d1837a4"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::unsubscribe" ref="d1e8961717be9c3a813096092d1837a4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::PropertyHandle::unsubscribe           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Decrease the <code>subscribeCount</code> of this context property and unsubscribe from it through the <code>myProvider</code> instance if neccessary. 
<p>

</div>
</div><p>
<a class="anchor" name="067242c57b142940ba02b1e5a74548d5"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::updateProvider" ref="067242c57b142940ba02b1e5a74548d5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::PropertyHandle::updateProvider           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Decides who is the current provider of this property and sets up <code>myProvider</code> accordingly. 
<p>
If the provider has changed then renews the subscriptions. 
</div>
</div><p>
<a class="anchor" name="bfeb2b16704e22adc33c31e162ef4e36"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::value" ref="bfeb2b16704e22adc33c31e162ef4e36" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVariant ContextSubscriber::PropertyHandle::value           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="0ceee4d69e18be36e726af552aaa58ba"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::valueChanged" ref="0ceee4d69e18be36e726af552aaa58ba" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextSubscriber::PropertyHandle::valueChanged           </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>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="8cb5a37f3a69e7019e9d7559e1e2993c"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::commanderListener" ref="8cb5a37f3a69e7019e9d7559e1e2993c" 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">DBusNameListener</a> * <a class="el" href="class_context_subscriber_1_1_property_handle.html#8cb5a37f3a69e7019e9d7559e1e2993c">ContextSubscriber::PropertyHandle::commanderListener</a> = new <a class="el" href="class_context_subscriber_1_1_d_bus_name_listener.html">DBusNameListener</a>(commanderDBusType, commanderDBusName)<code> [static, private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Listener for ContextCommander's (dis)appearance. 
<p>

</div>
</div><p>
<a class="anchor" name="cb7a882c3ef0423544754bd6fd5de7af"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::commandingEnabled" ref="cb7a882c3ef0423544754bd6fd5de7af" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_context_subscriber_1_1_property_handle.html#cb7a882c3ef0423544754bd6fd5de7af">ContextSubscriber::PropertyHandle::commandingEnabled</a> = true<code> [static, private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Whether the properties can be directed to ContextCommander. 
<p>

</div>
</div><p>
<a class="anchor" name="aa914d9958d6a3f6b69d3b1446307cea"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::myInfo" ref="aa914d9958d6a3f6b69d3b1446307cea" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_context_property_info.html">ContextPropertyInfo</a>* <a class="el" href="class_context_subscriber_1_1_property_handle.html#aa914d9958d6a3f6b69d3b1446307cea">ContextSubscriber::PropertyHandle::myInfo</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Metadata for this property. 
<p>

</div>
</div><p>
<a class="anchor" name="ba3e2fbd0fc8a8ab0db60efe934f7d6d"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::myKey" ref="ba3e2fbd0fc8a8ab0db60efe934f7d6d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="class_context_subscriber_1_1_property_handle.html#ba3e2fbd0fc8a8ab0db60efe934f7d6d">ContextSubscriber::PropertyHandle::myKey</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Key of this property. 
<p>

</div>
</div><p>
<a class="anchor" name="da859c28e9320fcb89328cb5153a3d35"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::myProvider" ref="da859c28e9320fcb89328cb5153a3d35" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_context_subscriber_1_1_provider.html">Provider</a>* <a class="el" href="class_context_subscriber_1_1_property_handle.html#da859c28e9320fcb89328cb5153a3d35">ContextSubscriber::PropertyHandle::myProvider</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="class_context_subscriber_1_1_provider.html" title="Connects to a group of properties via the help of a plugin.">Provider</a> of this property. 
<p>

</div>
</div><p>
<a class="anchor" name="984638b2c34c7756fd17ff41de90a2df"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::myValue" ref="984638b2c34c7756fd17ff41de90a2df" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVariant <a class="el" href="class_context_subscriber_1_1_property_handle.html#984638b2c34c7756fd17ff41de90a2df">ContextSubscriber::PropertyHandle::myValue</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Current value of this property. 
<p>

</div>
</div><p>
<a class="anchor" name="809f0eae9aef4ffec99f035b7e0e547f"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::subscribeCount" ref="809f0eae9aef4ffec99f035b7e0e547f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="class_context_subscriber_1_1_property_handle.html#809f0eae9aef4ffec99f035b7e0e547f">ContextSubscriber::PropertyHandle::subscribeCount</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Number of subscribed <a class="el" href="class_context_property.html" title="The ContextProperty class allows access to keys and their values.">ContextProperty</a> objects subscribed to this property. 
<p>

</div>
</div><p>
<a class="anchor" name="e7fb88f203671edb264655c06bc2e1f0"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::subscribeCountLock" ref="e7fb88f203671edb264655c06bc2e1f0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QMutex <a class="el" href="class_context_subscriber_1_1_property_handle.html#e7fb88f203671edb264655c06bc2e1f0">ContextSubscriber::PropertyHandle::subscribeCountLock</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="584bab7e2a167ccf22f45a5cd3f46c16"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::subscribePending" ref="584bab7e2a167ccf22f45a5cd3f46c16" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_context_subscriber_1_1_property_handle.html#584bab7e2a167ccf22f45a5cd3f46c16">ContextSubscriber::PropertyHandle::subscribePending</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
True when the subscription has been started, but hasn't been finished yet (used by the waitForSubscription() feature). 
<p>

</div>
</div><p>
<a class="anchor" name="27312e770b51ebf5439e31361ceb46c4"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::typeCheckEnabled" ref="27312e770b51ebf5439e31361ceb46c4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_context_subscriber_1_1_property_handle.html#27312e770b51ebf5439e31361ceb46c4">ContextSubscriber::PropertyHandle::typeCheckEnabled</a> = false<code> [static, private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Whether we check the type of the value received from the provider. 
<p>

</div>
</div><p>
<a class="anchor" name="d3d31e74ac2b7e1727ff0947895f4fc1"></a><!-- doxytag: member="ContextSubscriber::PropertyHandle::valueLock" ref="d3d31e74ac2b7e1727ff0947895f4fc1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QReadWriteLock <a class="el" href="class_context_subscriber_1_1_property_handle.html#d3d31e74ac2b7e1727ff0947895f4fc1">ContextSubscriber::PropertyHandle::valueLock</a><code> [mutable, private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="propertyhandle_8h-source.html">propertyhandle.h</a><li><a class="el" href="mocs_8cpp.html">mocs.cpp</a><li><a class="el" href="propertyhandle_8cpp.html">propertyhandle.cpp</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Oct 23 08:59:23 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>