File: telepathy-glib-TpContactsMixin.html

package info (click to toggle)
telepathy-glib 0.24.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,756 kB
  • sloc: ansic: 124,638; xml: 34,410; sh: 4,531; python: 3,528; makefile: 1,722; javascript: 211; cpp: 16
file content (531 lines) | stat: -rw-r--r-- 27,289 bytes parent folder | download | duplicates (3)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TpContactsMixin: telepathy-glib API Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.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-base-contact-list.html" title="TpBaseContactList">
<link rel="next" href="telepathy-glib-dbus-properties-mixin.html" title="TpDBusPropertiesMixin">
<meta name="generator" content="GTK-Doc V1.32 (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-TpContactsMixin.description" class="shortcut">Description</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-base-contact-list.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="telepathy-glib-dbus-properties-mixin.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="telepathy-glib-TpContactsMixin"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="telepathy-glib-TpContactsMixin.top_of_page"></a>TpContactsMixin</span></h2>
<p>TpContactsMixin — a mixin implementation of the contacts connection
interface</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="telepathy-glib-TpContactsMixin.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-TpContactsMixin.html#tp-contacts-mixin-add-contact-attributes-iface" title="tp_contacts_mixin_add_contact_attributes_iface ()">tp_contacts_mixin_add_contact_attributes_iface</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-TpContactsMixin.html#tp-contacts-mixin-class-init" title="tp_contacts_mixin_class_init ()">tp_contacts_mixin_class_init</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-TpContactsMixin.html#tp-contacts-mixin-finalize" title="tp_contacts_mixin_finalize ()">tp_contacts_mixin_finalize</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-TpContactsMixin.html#tp-contacts-mixin-iface-init" title="tp_contacts_mixin_iface_init ()">tp_contacts_mixin_iface_init</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-TpContactsMixin.html#tp-contacts-mixin-init" title="tp_contacts_mixin_init ()">tp_contacts_mixin_init</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-TpContactsMixin.html#tp-contacts-mixin-set-contact-attribute" title="tp_contacts_mixin_set_contact_attribute ()">tp_contacts_mixin_set_contact_attribute</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GHashTable</span> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-TpContactsMixin.html#tp-contacts-mixin-get-contact-attributes" title="tp_contacts_mixin_get_contact_attributes ()">tp_contacts_mixin_get_contact_attributes</a> <span class="c_punctuation">()</span>
</td>
</tr>
<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-TpContactsMixin.html#TpContactsMixinFillContactAttributesFunc" title="TpContactsMixinFillContactAttributesFunc ()">*TpContactsMixinFillContactAttributesFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="telepathy-glib-TpContactsMixin.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="telepathy-glib-TpContactsMixin.html#TpContactsMixin" title="struct TpContactsMixin">TpContactsMixin</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="telepathy-glib-TpContactsMixin.html#TpContactsMixinClass" title="struct TpContactsMixinClass">TpContactsMixinClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="telepathy-glib-TpContactsMixin.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-TpContactsMixin.description"></a><h2>Description</h2>
<p>This mixin can be added to a <a class="link" href="TpBaseConnection.html" title="TpBaseConnection"><span class="type">TpBaseConnection</span></a> subclass to implement the
Contacts interface in a generic way.</p>
<p>To use the contacts mixin, include a <a class="link" href="telepathy-glib-TpContactsMixin.html#TpContactsMixinClass" title="struct TpContactsMixinClass"><span class="type">TpContactsMixinClass</span></a> somewhere in
your class structure and a <a class="link" href="telepathy-glib-TpContactsMixin.html#TpContactsMixin" title="struct TpContactsMixin"><span class="type">TpContactsMixin</span></a> somewhere in your instance
structure, and call <a class="link" href="telepathy-glib-TpContactsMixin.html#tp-contacts-mixin-class-init" title="tp_contacts_mixin_class_init ()"><code class="function">tp_contacts_mixin_class_init()</code></a> from your class_init
function, <a class="link" href="telepathy-glib-TpContactsMixin.html#tp-contacts-mixin-init" title="tp_contacts_mixin_init ()"><code class="function">tp_contacts_mixin_init()</code></a> from your init function or constructor,
and <a class="link" href="telepathy-glib-TpContactsMixin.html#tp-contacts-mixin-finalize" title="tp_contacts_mixin_finalize ()"><code class="function">tp_contacts_mixin_finalize()</code></a> from your dispose or finalize function.</p>
<p>To use the contacts mixin as the implementation of
<a class="link" href="telepathy-glib-svc-connection.html#TpSvcConnectionInterfaceContacts"><span class="type">TpSvcConnectionInterfaceContacts</span></a>, in the function you pass to
G_IMPLEMENT_INTERFACE, you should call tp_contacts_mixin_iface_init.
TpContactsMixin implements all of the D-Bus methods and properties in the
Contacts interface.</p>
<p>To add interfaces with contact attributes to this interface use
tp_contacts_mixin_add_contact_attributes_iface:</p>
</div>
<div class="refsect1">
<a name="telepathy-glib-TpContactsMixin.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="tp-contacts-mixin-add-contact-attributes-iface"></a><h3>tp_contacts_mixin_add_contact_attributes_iface ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_contacts_mixin_add_contact_attributes_iface
                               (<em class="parameter"><code><span class="type">GObject</span> *obj</code></em>,
                                <em class="parameter"><code>const <span class="type">gchar</span> *interface</code></em>,
                                <em class="parameter"><code><a class="link" href="telepathy-glib-TpContactsMixin.html#TpContactsMixinFillContactAttributesFunc" title="TpContactsMixinFillContactAttributesFunc ()"><span class="type">TpContactsMixinFillContactAttributesFunc</span></a> fill_contact_attributes</code></em>);</pre>
<p>Declare that the given interface has contact attributes which can be added
to the attributes hash using the filler function. All the handles in the
handle array passed to the filler function are guaranteed to be valid and
referenced.</p>
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
<div class="refsect3">
<a name="tp-contacts-mixin-add-contact-attributes-iface.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>obj</p></td>
<td class="parameter_description"><p>An instance of the implementation that uses this mixin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>interface</p></td>
<td class="parameter_description"><p>Name of the interface that has ContactAttributes</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>fill_contact_attributes</p></td>
<td class="parameter_description"><p>Contact attribute filler function</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.14</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-contacts-mixin-class-init"></a><h3>tp_contacts_mixin_class_init ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_contacts_mixin_class_init (<em class="parameter"><code><span class="type">GObjectClass</span> *obj_cls</code></em>,
                              <em class="parameter"><code><span class="type">glong</span> offset</code></em>);</pre>
<p>Initialize the contacts mixin. Should be called from the implementation's
class_init function like so:</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</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="n">tp_contacts_mixin_class_init</span> <span class="p">((</span><span class="n">GObjectClass</span> <span class="o">*</span><span class="p">)</span> <span class="n">klass</span><span class="p">,</span>
                         <span class="n">G_STRUCT_OFFSET</span> <span class="p">(</span><span class="n">SomeObjectClass</span><span class="p">,</span> <span class="n">contacts_mixin</span><span class="p">));</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
<div class="refsect3">
<a name="tp-contacts-mixin-class-init.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>obj_cls</p></td>
<td class="parameter_description"><p>The class of the implementation that uses this mixin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>offset</p></td>
<td class="parameter_description"><p>The byte offset of the TpContactsMixinClass within the class
structure</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.14</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-contacts-mixin-finalize"></a><h3>tp_contacts_mixin_finalize ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_contacts_mixin_finalize (<em class="parameter"><code><span class="type">GObject</span> *obj</code></em>);</pre>
<p>Free resources held by the contacts mixin.</p>
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
<div class="refsect3">
<a name="tp-contacts-mixin-finalize.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>obj</p></td>
<td class="parameter_description"><p>An object with this mixin.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: 0.7.14</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-contacts-mixin-iface-init"></a><h3>tp_contacts_mixin_iface_init ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_contacts_mixin_iface_init (<em class="parameter"><code><span class="type">gpointer</span> g_iface</code></em>,
                              <em class="parameter"><code><span class="type">gpointer</span> iface_data</code></em>);</pre>
<p>Fill in the vtable entries needed to implement the contacts interface
using this mixin. This function should usually be called via
G_IMPLEMENT_INTERFACE.</p>
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
<div class="refsect3">
<a name="tp-contacts-mixin-iface-init.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>g_iface</p></td>
<td class="parameter_description"><p>A pointer to the <a class="link" href="telepathy-glib-svc-connection.html#TpSvcConnectionInterfaceContacts"><span class="type">TpSvcConnectionInterfaceContacts</span></a> in an object
class</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>iface_data</p></td>
<td class="parameter_description"><p>Ignored</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.14</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-contacts-mixin-init"></a><h3>tp_contacts_mixin_init ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_contacts_mixin_init (<em class="parameter"><code><span class="type">GObject</span> *obj</code></em>,
                        <em class="parameter"><code><span class="type">gsize</span> offset</code></em>);</pre>
<p>Initialize the contacts mixin. Should be called from the implementation's
instance init function like so:</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</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="n">tp_contacts_mixin_init</span> <span class="p">((</span><span class="n">GObject</span> <span class="o">*</span><span class="p">)</span> <span class="n">self</span><span class="p">,</span>
                    <span class="n">G_STRUCT_OFFSET</span> <span class="p">(</span><span class="n">SomeObject</span><span class="p">,</span> <span class="n">contacts_mixin</span><span class="p">));</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
<div class="refsect3">
<a name="tp-contacts-mixin-init.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>obj</p></td>
<td class="parameter_description"><p>An instance of the implementation that uses this mixin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>offset</p></td>
<td class="parameter_description"><p>The byte offset of the TpContactsMixin within the object structure</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.14</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-contacts-mixin-set-contact-attribute"></a><h3>tp_contacts_mixin_set_contact_attribute ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_contacts_mixin_set_contact_attribute
                               (<em class="parameter"><code><span class="type">GHashTable</span> *contact_attributes</code></em>,
                                <em class="parameter"><code><a class="link" href="telepathy-glib-handle.html#TpHandle" title="TpHandle"><span class="type">TpHandle</span></a> handle</code></em>,
                                <em class="parameter"><code>const <span class="type">gchar</span> *attribute</code></em>,
                                <em class="parameter"><code><span class="type">GValue</span> *value</code></em>);</pre>
<p>Utility function to set attribute for handle to value in the attributes hash
as passed to a TpContactsMixinFillContactAttributesFunc.</p>
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
<div class="refsect3">
<a name="tp-contacts-mixin-set-contact-attribute.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>contact_attributes</p></td>
<td class="parameter_description"><p>contacts attribute hash as passed to
TpContactsMixinFillContactAttributesFunc</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>handle</p></td>
<td class="parameter_description"><p>Handle to set the attribute on</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>attribute</p></td>
<td class="parameter_description"><p>attribute name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>slice allocated GValue containing the value of the attribute, for
instance with tp_g_value_slice_new. Ownership of the GValue is taken over by
the mixin</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.14</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-contacts-mixin-get-contact-attributes"></a><h3>tp_contacts_mixin_get_contact_attributes ()</h3>
<pre class="programlisting"><span class="returnvalue">GHashTable</span> *
tp_contacts_mixin_get_contact_attributes
                               (<em class="parameter"><code><span class="type">GObject</span> *obj</code></em>,
                                <em class="parameter"><code>const <span class="type">GArray</span> *handles</code></em>,
                                <em class="parameter"><code>const <span class="type">gchar</span> **interfaces</code></em>,
                                <em class="parameter"><code>const <span class="type">gchar</span> **assumed_interfaces</code></em>,
                                <em class="parameter"><code>const <span class="type">gchar</span> *sender</code></em>);</pre>
<p>Get contact attributes for the given contacts. Provide attributes for all requested
interfaces. If contact attributes are not immediately known, the behaviour is defined
by the interface; the attribute should either be omitted from the result or replaced
with a default value.</p>
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
<div class="refsect3">
<a name="tp-contacts-mixin-get-contact-attributes.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>obj</p></td>
<td class="parameter_description"><p>A connection instance that uses this mixin. The connection must be connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>handles</p></td>
<td class="parameter_description"><p>List of handles to retrieve contacts for. Any invalid handles will be
dropped from the returned mapping.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>interfaces</p></td>
<td class="parameter_description"><p>A list of interfaces to retrieve attributes from.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>assumed_interfaces</p></td>
<td class="parameter_description"><p>A list of additional interfaces to retrieve attributes
from. This can be used for interfaces documented as automatically included,
like <a class="link" href="telepathy-glib-interfaces.html#TP-IFACE-CONNECTION:CAPS" title="TP_IFACE_CONNECTION"><code class="literal">TP_IFACE_CONNECTION</code></a> for GetContactAttributes,
or <a class="link" href="telepathy-glib-interfaces.html#TP-IFACE-CONNECTION:CAPS" title="TP_IFACE_CONNECTION"><code class="literal">TP_IFACE_CONNECTION</code></a> and <a class="link" href="telepathy-glib-interfaces.html#TP-IFACE-CONNECTION-INTERFACE-CONTACT-LIST:CAPS" title="TP_IFACE_CONNECTION_INTERFACE_CONTACT_LIST"><code class="literal">TP_IFACE_CONNECTION_INTERFACE_CONTACT_LIST</code></a> for
GetContactListAttributes.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sender</p></td>
<td class="parameter_description"><p>The DBus client's unique name. If this is not NULL, the requested handles
will be held on behalf of this client.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-contacts-mixin-get-contact-attributes.returns"></a><h4>Returns</h4>
<p> A dictionary mapping the contact handles to contact attributes.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="TpContactsMixinFillContactAttributesFunc"></a><h3>TpContactsMixinFillContactAttributesFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
<span class="c_punctuation">(</span>*TpContactsMixinFillContactAttributesFunc<span class="c_punctuation">)</span>
                               (<em class="parameter"><code><span class="type">GObject</span> *obj</code></em>,
                                <em class="parameter"><code>const <span class="type">GArray</span> *contacts</code></em>,
                                <em class="parameter"><code><span class="type">GHashTable</span> *attributes_hash</code></em>);</pre>
<p>This function is called to supply contact attributes pertaining to
a particular interface, for a list of contacts.
All the handles in <em class="parameter"><code>contacts</code></em>
 are guaranteed to be valid and
referenced.</p>
<div class="refsect3">
<a name="TpContactsMixinFillContactAttributesFunc.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" 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>obj</p></td>
<td class="parameter_description"><p>An object implementing the Contacts interface with this mixin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>contacts</p></td>
<td class="parameter_description"><p>The contact handles for which attributes are requested</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>attributes_hash</p></td>
<td class="parameter_description"><p>hash of handle =&gt; hash of attributes, containing all the
contacts in the contacts array</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="telepathy-glib-TpContactsMixin.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="TpContactsMixin"></a><h3>struct TpContactsMixin</h3>
<pre class="programlisting">struct TpContactsMixin {
};
</pre>
<p>Structure to be included in the instance structure of objects that
use this mixin. Initialize it with <a class="link" href="telepathy-glib-TpContactsMixin.html#tp-contacts-mixin-init" title="tp_contacts_mixin_init ()"><code class="function">tp_contacts_mixin_init()</code></a>.</p>
<p>There are no public fields.</p>
</div>
<hr>
<div class="refsect2">
<a name="TpContactsMixinClass"></a><h3>struct TpContactsMixinClass</h3>
<pre class="programlisting">struct TpContactsMixinClass {
};
</pre>
<p>Structure to be included in the class structure of objects that
use this mixin. Initialize it with <a class="link" href="telepathy-glib-TpContactsMixin.html#tp-contacts-mixin-class-init" title="tp_contacts_mixin_class_init ()"><code class="function">tp_contacts_mixin_class_init()</code></a>.</p>
<p>There are no public fields.</p>
</div>
</div>
<div class="refsect1">
<a name="telepathy-glib-TpContactsMixin.see-also"></a><h2>See Also</h2>
<p><a class="link" href="telepathy-glib-svc-connection.html#TpSvcConnectionInterfaceContacts"><span class="type">TpSvcConnectionInterfaceContacts</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>