This file is indexed.

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

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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TpSimpleObserver</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.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.18 (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="2">
<tr valign="middle">
<td><a accesskey="p" href="telepathy-glib-handle-channels-context.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch-service-base.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">telepathy-glib API Reference Manual</th>
<td><a accesskey="n" href="telepathy-glib-simple-approver.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#telepathy-glib-simple-observer.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#telepathy-glib-simple-observer.description" class="shortcut">Description</a>
                   | 
                  <a href="#telepathy-glib-simple-observer.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#telepathy-glib-simple-observer.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
                   | 
                  <a href="#telepathy-glib-simple-observer.properties" class="shortcut">Properties</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 valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="telepathy-glib-simple-observer.synopsis"></a><h2>Synopsis</h2>
<a name="TpSimpleObserver"></a><pre class="synopsis">
#include &lt;telepathy-glib/simple-observer.h&gt;

                    <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver-struct" title="TpSimpleObserver">TpSimpleObserver</a>;
<span class="returnvalue">void</span>                (<a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserverObserveChannelsImpl" title="TpSimpleObserverObserveChannelsImpl ()">*TpSimpleObserverObserveChannelsImpl</a>)
                                                        (<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>);
<a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> *      <a class="link" href="telepathy-glib-simple-observer.html#tp-simple-observer-new" title="tp_simple_observer_new ()">tp_simple_observer_new</a>              (<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>);
<a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> *      <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>      (<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>);
<a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> *      <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> (<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>
</div>
<div class="refsect1">
<a name="telepathy-glib-simple-observer.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GObject
   +----<a class="link" href="telepathy-glib-base-client.html#TpBaseClient">TpBaseClient</a>
         +----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.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver--callback" title='The "callback" property'>callback</a>"                 <span class="type">gpointer</span>              : Write / Construct Only
  "<a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver--destroy" title='The "destroy" property'>destroy</a>"                  <span class="type">gpointer</span>              : Write / Construct Only
  "<a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver--recover" title='The "recover" property'>recover</a>"                  <span class="type">gboolean</span>              : Write / Construct Only
  "<a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver--user-data" title='The "user-data" property'>user-data</a>"                <span class="type">gpointer</span>              : Write / Construct Only
</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"><pre class="programlisting">
static void
my_observe_channels (TpSimpleObserver *observer,
   TpAccount *account,
   TpConnection *connection,
   GList *channels,
   TpChannelDispatchOperation *dispatch_operation,
   GList *requests,
   TpObserveChannelsContext *context,
   gpointer user_data)
{
 /* do something useful with the channels here */

 tp_observe_channels_context_accept (context);
}

factory = tp_automatic_client_factory_new (dbus);
client = tp_simple_observer_new_with_factory (factory, TRUE, "MyObserver",
    FALSE, my_observe_channels, user_data);
g_object_unref (factory);

tp_base_client_take_observer_filter (client, tp_asv_new (
     TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING, TP_IFACE_CHANNEL_TYPE_TEXT,
     TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT, TP_HANDLE_TYPE_CONTACT,
     NULL));

tp_base_client_register (client, NULL);
</pre></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.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="TpSimpleObserver-struct"></a><h3>TpSimpleObserver</h3>
<pre class="programlisting">typedef struct _TpSimpleObserver TpSimpleObserver;</pre>
<p>
Data structure representing a simple Observer implementation.
</p>
<p class="since">Since 0.11.5</p>
</div>
<hr>
<div class="refsect2">
<a name="TpSimpleObserverObserveChannelsImpl"></a><h3>TpSimpleObserverObserveChannelsImpl ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                (*TpSimpleObserverObserveChannelsImpl)
                                                        (<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="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>observer</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a> instance</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>account</code></em> :</span></p></td>
<td>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</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>connection</code></em> :</span></p></td>
<td>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</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>channels</code></em> :</span></p></td>
<td>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. <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><p><span class="term"><em class="parameter"><code>dispatch_operation</code></em> :</span></p></td>
<td>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. <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><p><span class="term"><em class="parameter"><code>requests</code></em> :</span></p></td>
<td>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. <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><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>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</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>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>
</td>
</tr>
</tbody>
</table></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" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">tp_simple_observer_new</code> is deprecated and should not be used in newly-written code. 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="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dbus</code></em> :</span></p></td>
<td>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>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>recover</code></em> :</span></p></td>
<td>the value of the Observer.Recover D-Bus property</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>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)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uniquify</code></em> :</span></p></td>
<td>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</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>the function called when ObserveChannels is called</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>arbitrary user-supplied data passed to <em class="parameter"><code>callback</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
<td>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</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a>. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> TelepathyGLib.SimpleObserver]</span>
</td>
</tr>
</tbody>
</table></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="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>account_manager</code></em> :</span></p></td>
<td>an account manager, which may not be <code class="literal">NULL</code>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>recover</code></em> :</span></p></td>
<td>the value of the Observer.Recover D-Bus property</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>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)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uniquify</code></em> :</span></p></td>
<td>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</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>the function called when ObserveChannels is called</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>arbitrary user-supplied data passed to <em class="parameter"><code>callback</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
<td>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</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a>. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> TelepathyGLib.SimpleObserver]</span>
</td>
</tr>
</tbody>
</table></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="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>factory</code></em> :</span></p></td>
<td>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>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>recover</code></em> :</span></p></td>
<td>the value of the Observer.Recover D-Bus property</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>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)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uniquify</code></em> :</span></p></td>
<td>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</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>the function called when ObserveChannels is called</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>arbitrary user-supplied data passed to <em class="parameter"><code>callback</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
<td>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</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="telepathy-glib-simple-observer.html#TpSimpleObserver"><span class="type">TpSimpleObserver</span></a>. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> TelepathyGLib.SimpleObserver]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.15.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>              : Write / Construct Only</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 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>              : Write / Construct Only</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 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>              : Write / Construct Only</pre>
<p>
The value of the Observer.Recover D-Bus property.
</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>              : Write / Construct Only</pre>
<p>
The user-data pointer passed to the callback implementing the
ObserveChannels D-Bus method.
</p>
<p class="since">Since 0.11.5</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>