This file is indexed.

/usr/share/doc/libtelepathy-glib-doc/telepathy-glib/telepathy-glib-simple-observer.html is in libtelepathy-glib-doc 0.24.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>telepathy-glib API Reference Manual: TpSimpleObserver</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="telepathy-glib API Reference Manual">
<link rel="up" href="ch-service-base.html" title="Service-side implementation">
<link rel="prev" href="telepathy-glib-handle-channels-context.html" title="TpHandleChannelsContext">
<link rel="next" href="telepathy-glib-simple-approver.html" title="TpSimpleApprover">
<meta name="generator" content="GTK-Doc V1.21 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#telepathy-glib-simple-observer.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#telepathy-glib-simple-observer.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces">  <span class="dim">|</span> 
                  <a href="#telepathy-glib-simple-observer.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#telepathy-glib-simple-observer.properties" class="shortcut">Properties</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch-service-base.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="telepathy-glib-handle-channels-context.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="telepathy-glib-simple-approver.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="telepathy-glib-simple-observer"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="telepathy-glib-simple-observer.top_of_page"></a>TpSimpleObserver</span></h2>
<p>TpSimpleObserver — a subclass of <a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="type">TpBaseClient</span></a> implementing
a simple Observer</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="telepathy-glib-simple-observer.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserverObserveChannelsImpl" title="TpSimpleObserverObserveChannelsImpl ()">*TpSimpleObserverObserveChannelsImpl</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-simple-observer.html#tp-simple-observer-new" title="tp_simple_observer_new ()">tp_simple_observer_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-simple-observer.html#tp-simple-observer-new-with-am" title="tp_simple_observer_new_with_am ()">tp_simple_observer_new_with_am</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-simple-observer.html#tp-simple-observer-new-with-factory" title="tp_simple_observer_new_with_factory ()">tp_simple_observer_new_with_factory</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="telepathy-glib-simple-observer.properties"></a><h2>Properties</h2>
<div class="informaltable"><table border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type"><span class="type">gpointer</span></td>
<td class="property_name"><a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver--callback" title="The “callback” property">callback</a></td>
<td class="property_flags">Write / Construct Only</td>
</tr>
<tr>
<td class="property_type"><span class="type">gpointer</span></td>
<td class="property_name"><a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver--destroy" title="The “destroy” property">destroy</a></td>
<td class="property_flags">Write / Construct Only</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver--recover" title="The “recover” property">recover</a></td>
<td class="property_flags">Write / Construct Only</td>
</tr>
<tr>
<td class="property_type"><span class="type">gpointer</span></td>
<td class="property_name"><a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver--user-data" title="The “user-data” property">user-data</a></td>
<td class="property_flags">Write / Construct Only</td>
</tr>
</tbody>
</table></div>
</div>
<a name="TpSimpleObserver"></a><div class="refsect1">
<a name="telepathy-glib-simple-observer.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody><tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver-struct" title="struct TpSimpleObserver">TpSimpleObserver</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="telepathy-glib-simple-observer.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    GObject
    <span class="lineart">╰──</span> <a class="link" href="telepathy-glib-base-client.html#TpBaseClient">TpBaseClient</a>
        <span class="lineart">╰──</span> TpSimpleObserver
</pre>
</div>
<div class="refsect1">
<a name="telepathy-glib-simple-observer.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
TpSimpleObserver implements
 <a class="link" href="telepathy-glib-svc-generic.html#TpSvcDBusProperties">TpSvcDBusProperties</a>,  <a class="link" href="telepathy-glib-svc-client.html#TpSvcClient">TpSvcClient</a>,  <a class="link" href="telepathy-glib-svc-client.html#TpSvcClientObserver">TpSvcClientObserver</a>,  <a class="link" href="telepathy-glib-svc-client.html#TpSvcClientApprover">TpSvcClientApprover</a>,  <a class="link" href="telepathy-glib-svc-client.html#TpSvcClientHandler">TpSvcClientHandler</a> and  <a class="link" href="telepathy-glib-svc-client.html#TpSvcClientInterfaceRequests">TpSvcClientInterfaceRequests</a>.</p>
</div>
<div class="refsect1">
<a name="telepathy-glib-simple-observer.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include &lt;telepathy-glib/telepathy-glib.h&gt;
</pre>
</div>
<div class="refsect1">
<a name="telepathy-glib-simple-observer.description"></a><h2>Description</h2>
<p>This class makes it easier to write <a class="link" href="telepathy-glib-svc-client.html#TpSvcClient"><span class="type">TpSvcClient</span></a> implementing the
TpSvcClientObserver interface.</p>
<p>A typical simple observer would look liks this:</p>
<div class="informalexample">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>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</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="gtkdoc kwb">static void</span>
<span class="function">my_observe_channels</span> <span class="gtkdoc opt">(</span>TpSimpleObserver <span class="gtkdoc opt">*</span>observer<span class="gtkdoc opt">,</span>
   TpAccount <span class="gtkdoc opt">*</span>account<span class="gtkdoc opt">,</span>
   TpConnection <span class="gtkdoc opt">*</span>connection<span class="gtkdoc opt">,</span>
   GList <span class="gtkdoc opt">*</span>channels<span class="gtkdoc opt">,</span>
   TpChannelDispatchOperation <span class="gtkdoc opt">*</span>dispatch_operation<span class="gtkdoc opt">,</span>
   GList <span class="gtkdoc opt">*</span>requests<span class="gtkdoc opt">,</span>
   TpObserveChannelsContext <span class="gtkdoc opt">*</span>context<span class="gtkdoc opt">,</span>
   gpointer user_data<span class="gtkdoc opt">)</span>
<span class="gtkdoc opt">{</span>
 <span class="gtkdoc opt">/&lt;!-- --&gt;*</span> <span class="keyword">do</span> something useful with the channels here <span class="gtkdoc opt">*&lt;!-- --&gt;/</span>

 <span class="function"><a href="telepathy-glib-observe-channels-context.html#tp-observe-channels-context-accept">tp_observe_channels_context_accept</a></span> <span class="gtkdoc opt">(</span>context<span class="gtkdoc opt">);</span>
<span class="gtkdoc opt">}</span>

factory <span class="gtkdoc opt">=</span> <span class="function"><a href="telepathy-glib-automatic-client-factory.html#tp-automatic-client-factory-new">tp_automatic_client_factory_new</a></span> <span class="gtkdoc opt">(</span>dbus<span class="gtkdoc opt">);</span>
client <span class="gtkdoc opt">=</span> <span class="function"><a href="telepathy-glib-simple-observer.html#tp-simple-observer-new-with-factory">tp_simple_observer_new_with_factory</a></span> <span class="gtkdoc opt">(</span>factory<span class="gtkdoc opt">,</span> TRUE<span class="gtkdoc opt">,</span> <span class="string">&quot;MyObserver&quot;</span><span class="gtkdoc opt">,</span>
    FALSE<span class="gtkdoc opt">,</span> my_observe_channels<span class="gtkdoc opt">,</span> user_data<span class="gtkdoc opt">);</span>
<span class="function">g_object_unref</span> <span class="gtkdoc opt">(</span>factory<span class="gtkdoc opt">);</span>

<span class="function"><a href="telepathy-glib-base-client.html#tp-base-client-take-observer-filter">tp_base_client_take_observer_filter</a></span> <span class="gtkdoc opt">(</span>client<span class="gtkdoc opt">,</span> <span class="function"><a href="telepathy-glib-asv.html#tp-asv-new">tp_asv_new</a></span> <span class="gtkdoc opt">(</span>
     TP_PROP_CHANNEL_CHANNEL_TYPE<span class="gtkdoc opt">,</span> G_TYPE_STRING<span class="gtkdoc opt">,</span> TP_IFACE_CHANNEL_TYPE_TEXT<span class="gtkdoc opt">,</span>
     TP_PROP_CHANNEL_TARGET_HANDLE_TYPE<span class="gtkdoc opt">,</span> G_TYPE_UINT<span class="gtkdoc opt">,</span> TP_HANDLE_TYPE_CONTACT<span class="gtkdoc opt">,</span>
     NULL<span class="gtkdoc opt">));</span>

<span class="function"><a href="telepathy-glib-base-client.html#tp-base-client-register">tp_base_client_register</a></span> <span class="gtkdoc opt">(</span>client<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">);</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

<p></p>
<p>See examples/client/media-observer.c for a complete example.</p>
</div>
<div class="refsect1">
<a name="telepathy-glib-simple-observer.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="TpSimpleObserverObserveChannelsImpl"></a><h3>TpSimpleObserverObserveChannelsImpl ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
<span class="c_punctuation">(</span>*TpSimpleObserverObserveChannelsImpl<span class="c_punctuation">)</span>
                               (<em class="parameter"><code><a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a> *observer</code></em>,
                                <em class="parameter"><code><a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a> *account</code></em>,
                                <em class="parameter"><code><a class="link" href="telepathy-glib-connection.html#TpConnection"><span class="type">TpConnection</span></a> *connection</code></em>,
                                <em class="parameter"><code><span class="type">GList</span> *channels</code></em>,
                                <em class="parameter"><code><a class="link" href="telepathy-glib-channel-dispatch-operation.html#TpChannelDispatchOperation"><span class="type">TpChannelDispatchOperation</span></a> *dispatch_operation</code></em>,
                                <em class="parameter"><code><span class="type">GList</span> *requests</code></em>,
                                <em class="parameter"><code><a class="link" href="telepathy-glib-observe-channels-context.html#TpObserveChannelsContext"><span class="type">TpObserveChannelsContext</span></a> *context</code></em>,
                                <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>Signature of the implementation of the ObserveChannels method.</p>
<p>This function must call either <a class="link" href="telepathy-glib-observe-channels-context.html#tp-observe-channels-context-accept" title="tp_observe_channels_context_accept ()"><code class="function">tp_observe_channels_context_accept()</code></a>,
<a class="link" href="telepathy-glib-observe-channels-context.html#tp-observe-channels-context-delay" title="tp_observe_channels_context_delay ()"><code class="function">tp_observe_channels_context_delay()</code></a> or <a class="link" href="telepathy-glib-observe-channels-context.html#tp-observe-channels-context-fail" title="tp_observe_channels_context_fail ()"><code class="function">tp_observe_channels_context_fail()</code></a>
on <em class="parameter"><code>context</code></em>
 before it returns.</p>
<div class="refsect3">
<a name="id-1.6.25.11.2.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>observer</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>account</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a> having <a class="link" href="telepathy-glib-account.html#TP-ACCOUNT-FEATURE-CORE:CAPS" title="TP_ACCOUNT_FEATURE_CORE"><code class="literal">TP_ACCOUNT_FEATURE_CORE</code></a> prepared if possible</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>connection</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-connection.html#TpConnection"><span class="type">TpConnection</span></a> having <a class="link" href="telepathy-glib-connection.html#TP-CONNECTION-FEATURE-CORE:CAPS" title="TP_CONNECTION_FEATURE_CORE"><code class="literal">TP_CONNECTION_FEATURE_CORE</code></a> prepared
if possible</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>channels</p></td>
<td class="parameter_description"><p> a <span class="type">GList</span> of <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a>,
all having <a class="link" href="telepathy-glib-channel.html#TP-CHANNEL-FEATURE-CORE:CAPS" title="TP_CHANNEL_FEATURE_CORE"><code class="literal">TP_CHANNEL_FEATURE_CORE</code></a> prepared if possible. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> TelepathyGLib.Channel]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>dispatch_operation</p></td>
<td class="parameter_description"><p> a <a class="link" href="telepathy-glib-channel-dispatch-operation.html#TpChannelDispatchOperation"><span class="type">TpChannelDispatchOperation</span></a> or <code class="literal">NULL</code>;
the dispatch_operation is not guaranteed to be prepared. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>requests</p></td>
<td class="parameter_description"><p> a <span class="type">GList</span> of
<a class="link" href="telepathy-glib-channel-request.html#TpChannelRequest"><span class="type">TpChannelRequest</span></a>, all having their object-path defined but are not
guaranteed to be prepared. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> TelepathyGLib.ChannelRequest]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-observe-channels-context.html#TpObserveChannelsContext"><span class="type">TpObserveChannelsContext</span></a> representing the context of this
D-Bus call</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>arbitrary user-supplied data passed to <a class="link" href="telepathy-glib-simple-observer.html#tp-simple-observer-new" title="tp_simple_observer_new ()"><code class="function">tp_simple_observer_new()</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since 0.11.5</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-simple-observer-new"></a><h3>tp_simple_observer_new ()</h3>
<pre class="programlisting"><a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> *
tp_simple_observer_new (<em class="parameter"><code><a class="link" href="telepathy-glib-dbus.html#TpDBusDaemon"><span class="type">TpDBusDaemon</span></a> *dbus</code></em>,
                        <em class="parameter"><code><span class="type">gboolean</span> recover</code></em>,
                        <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
                        <em class="parameter"><code><span class="type">gboolean</span> uniquify</code></em>,
                        <em class="parameter"><code><a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserverObserveChannelsImpl" title="TpSimpleObserverObserveChannelsImpl ()"><span class="type">TpSimpleObserverObserveChannelsImpl</span></a> callback</code></em>,
                        <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
                        <em class="parameter"><code><span class="type">GDestroyNotify</span> destroy</code></em>);</pre>
<div class="warning">
<p><code class="literal">tp_simple_observer_new</code> is deprecated and should not be used in newly-written code.</p>
<p>New code should use <a class="link" href="telepathy-glib-simple-observer.html#tp-simple-observer-new-with-am" title="tp_simple_observer_new_with_am ()"><code class="function">tp_simple_observer_new_with_am()</code></a> instead.</p>
</div>
<p>Convenient function to create a new <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a> instance.</p>
<p>If <em class="parameter"><code>dbus</code></em>
 is not the result of <a class="link" href="telepathy-glib-dbus.html#tp-dbus-daemon-dup" title="tp_dbus_daemon_dup ()"><code class="function">tp_dbus_daemon_dup()</code></a>, you should call
<a class="link" href="telepathy-glib-simple-observer.html#tp-simple-observer-new-with-am" title="tp_simple_observer_new_with_am ()"><code class="function">tp_simple_observer_new_with_am()</code></a> instead, so that <a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a>,
<a class="link" href="telepathy-glib-connection.html#TpConnection"><span class="type">TpConnection</span></a> and <a class="link" href="telepathy-glib-contact.html#TpContact"><span class="type">TpContact</span></a> instances can be shared between modules.</p>
<div class="refsect3">
<a name="id-1.6.25.11.3.8"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>dbus</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-dbus.html#TpDBusDaemon"><span class="type">TpDBusDaemon</span></a> object, may not be <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>recover</p></td>
<td class="parameter_description"><p>the value of the Observer.Recover D-Bus property</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>the name of the Observer (see <a class="link" href="telepathy-glib-base-client.html#TpBaseClient--name" title="The “name” property"><span class="type">“name”</span></a>: for details)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>uniquify</p></td>
<td class="parameter_description"><p>the value of the <a class="link" href="telepathy-glib-base-client.html#TpBaseClient--uniquify-name" title="The “uniquify-name” property"><span class="type">“uniquify-name”</span></a>: property</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>the function called when ObserveChannels is called</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>arbitrary user-supplied data passed to <em class="parameter"><code>callback</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>destroy</p></td>
<td class="parameter_description"><p>called with the user_data as argument, when the <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a>
is destroyed</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.6.25.11.3.9"></a><h4>Returns</h4>
<p> a new <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a>. </p>
<p><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> TelepathyGLib.SimpleObserver]</span></p>
</div>
<p class="since">Since 0.11.5</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-simple-observer-new-with-am"></a><h3>tp_simple_observer_new_with_am ()</h3>
<pre class="programlisting"><a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> *
tp_simple_observer_new_with_am (<em class="parameter"><code><a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a> *account_manager</code></em>,
                                <em class="parameter"><code><span class="type">gboolean</span> recover</code></em>,
                                <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
                                <em class="parameter"><code><span class="type">gboolean</span> uniquify</code></em>,
                                <em class="parameter"><code><a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserverObserveChannelsImpl" title="TpSimpleObserverObserveChannelsImpl ()"><span class="type">TpSimpleObserverObserveChannelsImpl</span></a> callback</code></em>,
                                <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
                                <em class="parameter"><code><span class="type">GDestroyNotify</span> destroy</code></em>);</pre>
<p>Convenient function to create a new <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a> instance with a
specified <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>.</p>
<p>It is not necessary to prepare any features on <em class="parameter"><code>account_manager</code></em>
 before
calling this function.</p>
<div class="refsect3">
<a name="id-1.6.25.11.4.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>account_manager</p></td>
<td class="parameter_description"><p>an account manager, which may not be <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>recover</p></td>
<td class="parameter_description"><p>the value of the Observer.Recover D-Bus property</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>the name of the Observer (see <a class="link" href="telepathy-glib-base-client.html#TpBaseClient--name" title="The “name” property"><span class="type">“name”</span></a>: for details)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>uniquify</p></td>
<td class="parameter_description"><p>the value of the <a class="link" href="telepathy-glib-base-client.html#TpBaseClient--uniquify-name" title="The “uniquify-name” property"><span class="type">“uniquify-name”</span></a>: property</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>the function called when ObserveChannels is called</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>arbitrary user-supplied data passed to <em class="parameter"><code>callback</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>destroy</p></td>
<td class="parameter_description"><p>called with the user_data as argument, when the <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a>
is destroyed</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.6.25.11.4.7"></a><h4>Returns</h4>
<p> a new <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a>. </p>
<p><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> TelepathyGLib.SimpleObserver]</span></p>
</div>
<p class="since">Since 0.11.14</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-simple-observer-new-with-factory"></a><h3>tp_simple_observer_new_with_factory ()</h3>
<pre class="programlisting"><a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> *
tp_simple_observer_new_with_factory (<em class="parameter"><code><a class="link" href="telepathy-glib-simple-client-factory.html#TpSimpleClientFactory"><span class="type">TpSimpleClientFactory</span></a> *factory</code></em>,
                                     <em class="parameter"><code><span class="type">gboolean</span> recover</code></em>,
                                     <em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
                                     <em class="parameter"><code><span class="type">gboolean</span> uniquify</code></em>,
                                     <em class="parameter"><code><a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserverObserveChannelsImpl" title="TpSimpleObserverObserveChannelsImpl ()"><span class="type">TpSimpleObserverObserveChannelsImpl</span></a> callback</code></em>,
                                     <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
                                     <em class="parameter"><code><span class="type">GDestroyNotify</span> destroy</code></em>);</pre>
<p>Convenient function to create a new <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a> instance with a
specified <a class="link" href="telepathy-glib-simple-client-factory.html#TpSimpleClientFactory"><span class="type">TpSimpleClientFactory</span></a>.</p>
<div class="refsect3">
<a name="id-1.6.25.11.5.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>factory</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-simple-client-factory.html#TpSimpleClientFactory"><span class="type">TpSimpleClientFactory</span></a>, which may not be <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>recover</p></td>
<td class="parameter_description"><p>the value of the Observer.Recover D-Bus property</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>the name of the Observer (see <a class="link" href="telepathy-glib-base-client.html#TpBaseClient--name" title="The “name” property"><span class="type">“name”</span></a>: for details)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>uniquify</p></td>
<td class="parameter_description"><p>the value of the <a class="link" href="telepathy-glib-base-client.html#TpBaseClient--uniquify-name" title="The “uniquify-name” property"><span class="type">“uniquify-name”</span></a>: property</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>the function called when ObserveChannels is called</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>arbitrary user-supplied data passed to <em class="parameter"><code>callback</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>destroy</p></td>
<td class="parameter_description"><p>called with the user_data as argument, when the <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a>
is destroyed</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.6.25.11.5.6"></a><h4>Returns</h4>
<p> a new <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a>. </p>
<p><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> TelepathyGLib.SimpleObserver]</span></p>
</div>
<p class="since">Since 0.15.5</p>
</div>
</div>
<div class="refsect1">
<a name="telepathy-glib-simple-observer.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="TpSimpleObserver-struct"></a><h3>struct TpSimpleObserver</h3>
<pre class="programlisting">struct TpSimpleObserver;</pre>
<p>Data structure representing a simple Observer implementation.</p>
<p class="since">Since 0.11.5</p>
</div>
</div>
<div class="refsect1">
<a name="telepathy-glib-simple-observer.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="TpSimpleObserver--callback"></a><h3>The <code class="literal">“callback”</code> property</h3>
<pre class="programlisting">  “callback”                 <span class="type">gpointer</span></pre>
<p>The TpSimpleObserverObserveChannelsImpl callback implementing the
ObserveChannels D-Bus method.</p>
<p>This property can't be <code class="literal">NULL</code>.</p>
<p>Flags: Write / Construct Only</p>
<p class="since">Since 0.11.5</p>
</div>
<hr>
<div class="refsect2">
<a name="TpSimpleObserver--destroy"></a><h3>The <code class="literal">“destroy”</code> property</h3>
<pre class="programlisting">  “destroy”                  <span class="type">gpointer</span></pre>
<p>The <span class="type">GDestroyNotify</span> function called to free the user-data pointer when
the <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a> is destroyed.</p>
<p>Flags: Write / Construct Only</p>
<p class="since">Since 0.11.5</p>
</div>
<hr>
<div class="refsect2">
<a name="TpSimpleObserver--recover"></a><h3>The <code class="literal">“recover”</code> property</h3>
<pre class="programlisting">  “recover”                  <span class="type">gboolean</span></pre>
<p>The value of the Observer.Recover D-Bus property.</p>
<p>Flags: Write / Construct Only</p>
<p>Default value: FALSE</p>
<p class="since">Since 0.11.5</p>
</div>
<hr>
<div class="refsect2">
<a name="TpSimpleObserver--user-data"></a><h3>The <code class="literal">“user-data”</code> property</h3>
<pre class="programlisting">  “user-data”                <span class="type">gpointer</span></pre>
<p>The user-data pointer passed to the callback implementing the
ObserveChannels D-Bus method.</p>
<p>Flags: Write / Construct Only</p>
<p class="since">Since 0.11.5</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.21</div>
</body>
</html>