aboutsummaryrefslogtreecommitdiff
path: root/libcontextprovider/doc/html/class_context_provider_1_1_service_backend.html
blob: 20512d0fe5f217a1690ed0a12410aa1f05cb43d4 (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
<!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::ServiceBackend 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_service_backend.html">ServiceBackend</a>
  </div>
</div>
<div class="contents">
<h1>ContextProvider::ServiceBackend Class Reference</h1><!-- doxytag: class="ContextProvider::ServiceBackend" -->A <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> is the real worker behind <a class="el" href="class_context_provider_1_1_service.html" title="A Service object is a proxy representing a service on D-Bus that implements the ContextKit...">Service</a>.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="servicebackend_8h-source.html">servicebackend.h</a>&gt;</code>
<p>

<p>
<a href="class_context_provider_1_1_service_backend-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 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_service_backend.html#2f72a8d1752eb4f930410deed93bd14e">ServiceBackend</a> (QDBusConnection connection)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates new <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> with the given QDBusConnection.  <a href="#2f72a8d1752eb4f930410deed93bd14e"></a><br></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_service_backend.html#645ad8454046cc430aa1f6b6935e3e39">ServiceBackend</a> (QDBusConnection connection, const QString &amp;busName)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates new <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> with the given QDBusConnection and a service name to register.  <a href="#645ad8454046cc430aa1f6b6935e3e39"></a><br></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_provider_1_1_service_backend.html#7c22a78525e271a443d0b328c09a8ebb">~ServiceBackend</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destroys the <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a>.  <a href="#7c22a78525e271a443d0b328c09a8ebb"></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_service_backend.html#7b9d7a6b42fde2e7841edd7dbd5589af">sharedConnection</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true iff the <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> shares its QDBusConnection with the provider program.  <a href="#7b9d7a6b42fde2e7841edd7dbd5589af"></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_service_backend.html#f0ffcd20b78a6c070b46f2a808974bf5">start</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Start the <a class="el" href="class_context_provider_1_1_service.html" title="A Service object is a proxy representing a service on D-Bus that implements the ContextKit...">Service</a> again after it has been stopped.  <a href="#f0ffcd20b78a6c070b46f2a808974bf5"></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_service_backend.html#f580af0059e69905ee6aefa55056bdd5">stop</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Stop the service.  <a href="#f580af0059e69905ee6aefa55056bdd5"></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_service_backend.html#1f25b50b4abc8e8a5fbdf0b9b38f6691">setAsDefault</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> object as the default one to use when constructing <a class="el" href="class_context_provider_1_1_property.html" title="A Property object represents a context property, i.e., a key-value pair.">Property</a> objects.  <a href="#1f25b50b4abc8e8a5fbdf0b9b38f6691"></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_service_backend.html#3380d860b28632814283af9cb48115ad">setValue</a> (const QString &amp;key, const QVariant &amp;val)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the value of <em>key</em> to <em>val</em>.  <a href="#3380d860b28632814283af9cb48115ad"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_context_provider_1_1_manager.html">Manager</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_service_backend.html#c2341db978f732d4a68027568db73fd0">manager</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns 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> associated with this backend.  <a href="#c2341db978f732d4a68027568db73fd0"></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_service_backend.html#2b33587710d46129c3554fc405e93858">ref</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Increase the reference count by one. <a class="el" href="class_context_provider_1_1_service.html" title="A Service object is a proxy representing a service on D-Bus that implements the ContextKit...">Service</a> calls this.  <a href="#2b33587710d46129c3554fc405e93858"></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_service_backend.html#44c270d04037efde600e3f2ba7e4188f">unref</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Decrease the reference count by one.  <a href="#44c270d04037efde600e3f2ba7e4188f"></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_provider_1_1_service_backend.html">ServiceBackend</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_service_backend.html#03beadb30b9d1f837d372ccc77004595">instance</a> (QDBusConnection connection)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> instance for a given <em>connection</em>.  <a href="#03beadb30b9d1f837d372ccc77004595"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_context_provider_1_1_service_backend.html">ServiceBackend</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_service_backend.html#d584702ae8e0b3c633d4c8fe857cd766">instance</a> (QDBusConnection::BusType busType, const QString &amp;busName)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> instance for a given <em>busType</em> and <em>busName</em>.  <a href="#d584702ae8e0b3c633d4c8fe857cd766"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_context_provider_1_1_service_backend.html">ServiceBackend</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_service_backend.html#dba83a5a2a30247be68cd8485b3c6306">defaultServiceBackend</a></td></tr>

<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_service_backend.html#ed41fb3009b4b10268a07c9e2fb37ece">::ServiceBackendUnitTest</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_service_backend.html#6474ceb8669761e879329b39c3afb899">Service</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> is the real worker behind <a class="el" href="class_context_provider_1_1_service.html" title="A Service object is a proxy representing a service on D-Bus that implements the ContextKit...">Service</a>. 
<p>
Multiple <a class="el" href="class_context_provider_1_1_service.html" title="A Service object is a proxy representing a service on D-Bus that implements the ContextKit...">Service</a> instances can share same <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a>. The backend is the actual worker that operates on D-Bus, has a <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> and registers properties.<p>
The <a class="el" href="class_context_provider_1_1_service.html" title="A Service object is a proxy representing a service on D-Bus that implements the ContextKit...">Service</a> class actually proxies all methods to the <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a>. <hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="2f72a8d1752eb4f930410deed93bd14e"></a><!-- doxytag: member="ContextProvider::ServiceBackend::ServiceBackend" ref="2f72a8d1752eb4f930410deed93bd14e" args="(QDBusConnection connection)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ContextProvider::ServiceBackend::ServiceBackend           </td>
          <td>(</td>
          <td class="paramtype">QDBusConnection&nbsp;</td>
          <td class="paramname"> <em>connection</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates new <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> with the given QDBusConnection. 
<p>
The backend automatically creates it's <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>. The connection will be shared between <a class="el" href="class_context_provider_1_1_service.html" title="A Service object is a proxy representing a service on D-Bus that implements the ContextKit...">Service</a> and the provider program, and the <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> will not register any service names. 
</div>
</div><p>
<a class="anchor" name="645ad8454046cc430aa1f6b6935e3e39"></a><!-- doxytag: member="ContextProvider::ServiceBackend::ServiceBackend" ref="645ad8454046cc430aa1f6b6935e3e39" args="(QDBusConnection connection, const QString &amp;busName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ContextProvider::ServiceBackend::ServiceBackend           </td>
          <td>(</td>
          <td class="paramtype">QDBusConnection&nbsp;</td>
          <td class="paramname"> <em>connection</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><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates new <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> with the given QDBusConnection and a service name to register. 
<p>
The backend automatically creates it's <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>. The connection will not be shared between the <a class="el" href="class_context_provider_1_1_service.html" title="A Service object is a proxy representing a service on D-Bus that implements the ContextKit...">Service</a> and the provider program. 
</div>
</div><p>
<a class="anchor" name="7c22a78525e271a443d0b328c09a8ebb"></a><!-- doxytag: member="ContextProvider::ServiceBackend::~ServiceBackend" ref="7c22a78525e271a443d0b328c09a8ebb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ContextProvider::ServiceBackend::~ServiceBackend           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destroys the <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a>. 
<p>
The backend is stopped. If this backend is the defaultServiceBackend, the defaultServiceBackend is set back to NULL. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="d584702ae8e0b3c633d4c8fe857cd766"></a><!-- doxytag: member="ContextProvider::ServiceBackend::instance" ref="d584702ae8e0b3c633d4c8fe857cd766" args="(QDBusConnection::BusType busType, 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_service_backend.html">ServiceBackend</a> * ContextProvider::ServiceBackend::instance           </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><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> instance for a given <em>busType</em> and <em>busName</em>. 
<p>
Creates the instance if it does not exist yet. 
</div>
</div><p>
<a class="anchor" name="03beadb30b9d1f837d372ccc77004595"></a><!-- doxytag: member="ContextProvider::ServiceBackend::instance" ref="03beadb30b9d1f837d372ccc77004595" args="(QDBusConnection connection)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_context_provider_1_1_service_backend.html">ServiceBackend</a> * ContextProvider::ServiceBackend::instance           </td>
          <td>(</td>
          <td class="paramtype">QDBusConnection&nbsp;</td>
          <td class="paramname"> <em>connection</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> instance for a given <em>connection</em>. 
<p>
Creates the instance if it does not exist yet. 
</div>
</div><p>
<a class="anchor" name="c2341db978f732d4a68027568db73fd0"></a><!-- doxytag: member="ContextProvider::ServiceBackend::manager" ref="c2341db978f732d4a68027568db73fd0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_context_provider_1_1_manager.html">Manager</a> * ContextProvider::ServiceBackend::manager           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns 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> associated with this backend. 
<p>

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

<p>
Increase the reference count by one. <a class="el" href="class_context_provider_1_1_service.html" title="A Service object is a proxy representing a service on D-Bus that implements the ContextKit...">Service</a> calls this. 
<p>

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

<p>
Sets the <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> object as the default one to use when constructing <a class="el" href="class_context_provider_1_1_property.html" title="A Property object represents a context property, i.e., a key-value pair.">Property</a> objects. 
<p>

</div>
</div><p>
<a class="anchor" name="3380d860b28632814283af9cb48115ad"></a><!-- doxytag: member="ContextProvider::ServiceBackend::setValue" ref="3380d860b28632814283af9cb48115ad" args="(const QString &amp;key, const QVariant &amp;val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextProvider::ServiceBackend::setValue           </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>val</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the value of <em>key</em> to <em>val</em>. 
<p>
A property named <em>key</em> must have been registered already, by creating a <a class="el" href="class_context_provider_1_1_property.html" title="A Property object represents a context property, i.e., a key-value pair.">Property</a> object for it. 
</div>
</div><p>
<a class="anchor" name="7b9d7a6b42fde2e7841edd7dbd5589af"></a><!-- doxytag: member="ContextProvider::ServiceBackend::sharedConnection" ref="7b9d7a6b42fde2e7841edd7dbd5589af" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ContextProvider::ServiceBackend::sharedConnection           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns true iff the <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> shares its QDBusConnection with the provider program. 
<p>

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

<p>
Start the <a class="el" href="class_context_provider_1_1_service.html" title="A Service object is a proxy representing a service on D-Bus that implements the ContextKit...">Service</a> again after it has been stopped. 
<p>
In the case of shared connection, the objects will be registered to D-Bus. In the case of non-shared connection, also the service name will be registered on D-Bus. Returns true on success, false otherwise. 
</div>
</div><p>
<a class="anchor" name="f580af0059e69905ee6aefa55056bdd5"></a><!-- doxytag: member="ContextProvider::ServiceBackend::stop" ref="f580af0059e69905ee6aefa55056bdd5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextProvider::ServiceBackend::stop           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Stop the service. 
<p>
In the case of shared connection, this will cause the related objects to be unregistered, but the bus name will still be on D-Bus. In the case of non-shared connection, this will cause the service to disappear from D-Bus completely. 
</div>
</div><p>
<a class="anchor" name="44c270d04037efde600e3f2ba7e4188f"></a><!-- doxytag: member="ContextProvider::ServiceBackend::unref" ref="44c270d04037efde600e3f2ba7e4188f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextProvider::ServiceBackend::unref           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Decrease the reference count by one. 
<p>
<a class="el" href="class_context_provider_1_1_service.html" title="A Service object is a proxy representing a service on D-Bus that implements the ContextKit...">Service</a> calls this. If the reference count goes to zero, stop the <a class="el" href="class_context_provider_1_1_service_backend.html" title="A ServiceBackend is the real worker behind Service.">ServiceBackend</a> instance, remove it from the instance store and schedule it to be deleted. 
</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="ed41fb3009b4b10268a07c9e2fb37ece"></a><!-- doxytag: member="ContextProvider::ServiceBackend::::ServiceBackendUnitTest" ref="ed41fb3009b4b10268a07c9e2fb37ece" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class ::ServiceBackendUnitTest<code> [friend]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="6474ceb8669761e879329b39c3afb899"></a><!-- doxytag: member="ContextProvider::ServiceBackend::Service" ref="6474ceb8669761e879329b39c3afb899" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="class_context_provider_1_1_service.html">Service</a><code> [friend]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="dba83a5a2a30247be68cd8485b3c6306"></a><!-- doxytag: member="ContextProvider::ServiceBackend::defaultServiceBackend" ref="dba83a5a2a30247be68cd8485b3c6306" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_context_provider_1_1_service_backend.html">ServiceBackend</a> * <a class="el" href="class_context_provider_1_1_service_backend.html#dba83a5a2a30247be68cd8485b3c6306">ContextProvider::ServiceBackend::defaultServiceBackend</a><code> [static]</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="servicebackend_8h-source.html">servicebackend.h</a><li><a class="el" href="servicebackend_8cpp.html">servicebackend.cpp</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 30 10:23:55 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>