File: TpChannelFactoryIface.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 (944 lines) | stat: -rw-r--r-- 54,081 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
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TpChannelFactoryIface: 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-obsolete.html" title="Obsolete modules">
<link rel="prev" href="ch-obsolete.html" title="Obsolete modules">
<link rel="next" href="telepathy-glib-debug-ansi.html" title="ANSI codes for debug messages">
<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="#TpChannelFactoryIface.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#TpChannelFactoryIface.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_signals">  <span class="dim">|</span> 
                  <a href="#TpChannelFactoryIface.signals" class="shortcut">Signals</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-obsolete.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="ch-obsolete.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="telepathy-glib-debug-ansi.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="TpChannelFactoryIface"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="TpChannelFactoryIface.top_of_page"></a>TpChannelFactoryIface</span></h2>
<p>TpChannelFactoryIface — interface for channel allocation/tracking</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="TpChannelFactoryIface.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">
<span class="c_punctuation">(</span><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIfaceForeachImpl" title="TpChannelFactoryIfaceForeachImpl ()">*TpChannelFactoryIfaceForeachImpl</a><span class="c_punctuation">)</span> <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="TpChannelFactoryIface.html#TpChannelFactoryIfaceProc" title="TpChannelFactoryIfaceProc ()">*TpChannelFactoryIfaceProc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryRequestStatus" title="enum TpChannelFactoryRequestStatus"><span class="returnvalue">TpChannelFactoryRequestStatus</span></a>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIfaceRequestImpl" title="TpChannelFactoryIfaceRequestImpl ()">*TpChannelFactoryIfaceRequestImpl</a><span class="c_punctuation">)</span> <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="TpChannelFactoryIface.html#tp-channel-factory-iface-close-all" title="tp_channel_factory_iface_close_all ()">tp_channel_factory_iface_close_all</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="TpChannelFactoryIface.html#tp-channel-factory-iface-connecting" title="tp_channel_factory_iface_connecting ()">tp_channel_factory_iface_connecting</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="TpChannelFactoryIface.html#tp-channel-factory-iface-connected" title="tp_channel_factory_iface_connected ()">tp_channel_factory_iface_connected</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="TpChannelFactoryIface.html#tp-channel-factory-iface-disconnected" title="tp_channel_factory_iface_disconnected ()">tp_channel_factory_iface_disconnected</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="TpChannelFactoryIface.html#tp-channel-factory-iface-foreach" title="tp_channel_factory_iface_foreach ()">tp_channel_factory_iface_foreach</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryRequestStatus" title="enum TpChannelFactoryRequestStatus"><span class="returnvalue">TpChannelFactoryRequestStatus</span></a>
</td>
<td class="function_name">
<a class="link" href="TpChannelFactoryIface.html#tp-channel-factory-iface-request" title="tp_channel_factory_iface_request ()">tp_channel_factory_iface_request</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="TpChannelFactoryIface.html#tp-channel-factory-iface-emit-new-channel" title="tp_channel_factory_iface_emit_new_channel ()">tp_channel_factory_iface_emit_new_channel</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="TpChannelFactoryIface.html#tp-channel-factory-iface-emit-channel-error" title="tp_channel_factory_iface_emit_channel_error ()">tp_channel_factory_iface_emit_channel_error</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="TpChannelFactoryIface.signals"></a><h2>Signals</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="signal_proto_type">
<col width="300px" class="signal_proto_name">
<col width="200px" class="signal_proto_flags">
</colgroup>
<tbody>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIface-channel-error" title="The “channel-error” signal">channel-error</a></td>
<td class="signal_flags">Has Details</td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIface-new-channel" title="The “new-channel” signal">new-channel</a></td>
<td class="signal_flags">Has Details</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="TpChannelFactoryIface.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">enum</td>
<td class="function_name"><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryRequestStatus" title="enum TpChannelFactoryRequestStatus">TpChannelFactoryRequestStatus</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIface-struct" title="TpChannelFactoryIface">TpChannelFactoryIface</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIfaceClass" title="struct TpChannelFactoryIfaceClass">TpChannelFactoryIfaceClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="TpChannelFactoryIface.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/GTypeModule.html">GInterface</a>
    <span class="lineart">╰──</span> TpChannelFactoryIface
</pre>
</div>
<div class="refsect1">
<a name="TpChannelFactoryIface.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include &lt;telepathy-glib/channel-factory-iface.h&gt;
</pre>
</div>
<div class="refsect1">
<a name="TpChannelFactoryIface.description"></a><h2>Description</h2>
<p>A channel factory is attached to a connection. It carries out channel
requests from the connection, and responds to channel-related events
on the underlying network connection (e.g. incoming calls).</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a>, a newer
interface which can be used to implement modern D-Bus APIs, instead.</p>
</div>
<div class="refsect1">
<a name="TpChannelFactoryIface.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="TpChannelFactoryIfaceForeachImpl"></a><h3>TpChannelFactoryIfaceForeachImpl ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
<span class="c_punctuation">(</span>*TpChannelFactoryIfaceForeachImpl<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a> *self</code></em>,
                                     <em class="parameter"><code><a class="link" href="TpChannelIface.html#TpChannelFunc" title="TpChannelFunc ()"><span class="type">TpChannelFunc</span></a> func</code></em>,
                                     <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<div class="warning"><p><code class="literal">TpChannelFactoryIfaceForeachImpl</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>Signature of an implementation of foreach, which must call
func(channel, data) for each channel managed by this factory.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
<div class="refsect3">
<a name="TpChannelFactoryIfaceForeachImpl.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>self</p></td>
<td class="parameter_description"><p>An object implementing <a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>func</p></td>
<td class="parameter_description"><p>A function</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>data</p></td>
<td class="parameter_description"><p>Arbitrary data to pass to <em class="parameter"><code>func</code></em>
as the second argument</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="TpChannelFactoryIfaceProc"></a><h3>TpChannelFactoryIfaceProc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
<span class="c_punctuation">(</span>*TpChannelFactoryIfaceProc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a> *self</code></em>);</pre>
<div class="warning"><p><code class="literal">TpChannelFactoryIfaceProc</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>A virtual method on a channel factory that takes no extra parameters
and returns nothing.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
<div class="refsect3">
<a name="TpChannelFactoryIfaceProc.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>self</p></td>
<td class="parameter_description"><p>An object implementing <a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="TpChannelFactoryIfaceRequestImpl"></a><h3>TpChannelFactoryIfaceRequestImpl ()</h3>
<pre class="programlisting"><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryRequestStatus" title="enum TpChannelFactoryRequestStatus"><span class="returnvalue">TpChannelFactoryRequestStatus</span></a>
<span class="c_punctuation">(</span>*TpChannelFactoryIfaceRequestImpl<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a> *self</code></em>,
                                     <em class="parameter"><code>const <span class="type">gchar</span> *chan_type</code></em>,
                                     <em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>,
                                     <em class="parameter"><code><span class="type">guint</span> handle</code></em>,
                                     <em class="parameter"><code><span class="type">gpointer</span> request</code></em>,
                                     <em class="parameter"><code><a class="link" href="TpChannelIface.html" title="TpChannelIface"><span class="type">TpChannelIface</span></a> **ret</code></em>,
                                     <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<div class="warning"><p><code class="literal">TpChannelFactoryIfaceRequestImpl</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>Signature of an implementation of RequestChannel.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
<div class="refsect3">
<a name="TpChannelFactoryIfaceRequestImpl.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>self</p></td>
<td class="parameter_description"><p>An object implementing <a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>chan_type</p></td>
<td class="parameter_description"><p>The channel type, e.g. <a class="link" href="telepathy-glib-interfaces.html#TP-IFACE-CHANNEL-TYPE-TEXT:CAPS" title="TP_IFACE_CHANNEL_TYPE_TEXT"><code class="literal">TP_IFACE_CHANNEL_TYPE_TEXT</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>handle_type</p></td>
<td class="parameter_description"><p>The handle type of the channel's associated handle,
or 0 if the channel has no associated handle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>handle</p></td>
<td class="parameter_description"><p>The channel's associated handle, of type <em class="parameter"><code>handle_type</code></em>
,
or 0 if the channel has no associated handle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>request</p></td>
<td class="parameter_description"><p>An opaque data structure representing the channel request;
if this request is satisfied by a newly created channel,
this structure MUST be included in the new-channel signal
if the newly created channel has handle 0, and MAY be
included in the signal if the newly created channel has
nonzero handle.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>ret</p></td>
<td class="parameter_description"><p>Set to the new channel if it is available immediately, as
documented in the description of <a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryRequestStatus" title="enum TpChannelFactoryRequestStatus"><span class="type">TpChannelFactoryRequestStatus</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>Set to the error if the return is
<a class="link" href="TpChannelFactoryIface.html#TP-CHANNEL-FACTORY-REQUEST-STATUS-ERROR:CAPS"><code class="literal">TP_CHANNEL_FACTORY_REQUEST_STATUS_ERROR</code></a>, unset otherwise</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="TpChannelFactoryIfaceRequestImpl.returns"></a><h4>Returns</h4>
<p> one of the values of <a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryRequestStatus" title="enum TpChannelFactoryRequestStatus"><span class="type">TpChannelFactoryRequestStatus</span></a>, and
behaves as documented for that return value</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-channel-factory-iface-close-all"></a><h3>tp_channel_factory_iface_close_all ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_channel_factory_iface_close_all (<em class="parameter"><code><a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a> *self</code></em>);</pre>
<div class="warning"><p><code class="literal">tp_channel_factory_iface_close_all</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>Close all channels and shut down the channel factory. It is not expected
to be usable afterwards. This is called when the connection goes to
disconnected state, before either emitting the StatusChanged signal or
calling <code class="function">disconnected()</code>.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
<div class="refsect3">
<a name="tp-channel-factory-iface-close-all.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>self</p></td>
<td class="parameter_description"><p>An object implementing <a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-channel-factory-iface-connecting"></a><h3>tp_channel_factory_iface_connecting ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_channel_factory_iface_connecting (<em class="parameter"><code><a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a> *self</code></em>);</pre>
<div class="warning"><p><code class="literal">tp_channel_factory_iface_connecting</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>Indicate that the connection has gone from disconnected to connecting
state.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
<div class="refsect3">
<a name="tp-channel-factory-iface-connecting.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>self</p></td>
<td class="parameter_description"><p>An implementation of the channel factory interface</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-channel-factory-iface-connected"></a><h3>tp_channel_factory_iface_connected ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_channel_factory_iface_connected (<em class="parameter"><code><a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a> *self</code></em>);</pre>
<div class="warning"><p><code class="literal">tp_channel_factory_iface_connected</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>Indicate that the connection has gone from connecting to connected state.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
<div class="refsect3">
<a name="tp-channel-factory-iface-connected.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>self</p></td>
<td class="parameter_description"><p>An implementation of the channel factory interface</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-channel-factory-iface-disconnected"></a><h3>tp_channel_factory_iface_disconnected ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_channel_factory_iface_disconnected (<em class="parameter"><code><a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a> *self</code></em>);</pre>
<div class="warning"><p><code class="literal">tp_channel_factory_iface_disconnected</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>Indicate that the connection has become disconnected.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
<div class="refsect3">
<a name="tp-channel-factory-iface-disconnected.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>self</p></td>
<td class="parameter_description"><p>An implementation of the channel factory interface</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-channel-factory-iface-foreach"></a><h3>tp_channel_factory_iface_foreach ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_channel_factory_iface_foreach (<em class="parameter"><code><a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a> *self</code></em>,
                                  <em class="parameter"><code><a class="link" href="TpChannelIface.html#TpChannelFunc" title="TpChannelFunc ()"><span class="type">TpChannelFunc</span></a> func</code></em>,
                                  <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<div class="warning"><p><code class="literal">tp_channel_factory_iface_foreach</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>Call func(channel, data) for each channel managed by this factory.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
<div class="refsect3">
<a name="tp-channel-factory-iface-foreach.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>self</p></td>
<td class="parameter_description"><p>An implementation of the channel factory interface</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>func</p></td>
<td class="parameter_description"><p>A callback to be called once per channel</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>data</p></td>
<td class="parameter_description"><p>Extra data to be passed to <em class="parameter"><code>func</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-channel-factory-iface-request"></a><h3>tp_channel_factory_iface_request ()</h3>
<pre class="programlisting"><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryRequestStatus" title="enum TpChannelFactoryRequestStatus"><span class="returnvalue">TpChannelFactoryRequestStatus</span></a>
tp_channel_factory_iface_request (<em class="parameter"><code><a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a> *self</code></em>,
                                  <em class="parameter"><code>const <span class="type">gchar</span> *chan_type</code></em>,
                                  <em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>,
                                  <em class="parameter"><code><span class="type">guint</span> handle</code></em>,
                                  <em class="parameter"><code><span class="type">gpointer</span> request</code></em>,
                                  <em class="parameter"><code><a class="link" href="TpChannelIface.html" title="TpChannelIface"><span class="type">TpChannelIface</span></a> **ret</code></em>,
                                  <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<div class="warning"><p><code class="literal">tp_channel_factory_iface_request</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>Request a channel.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
<div class="refsect3">
<a name="tp-channel-factory-iface-request.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>self</p></td>
<td class="parameter_description"><p>An object implementing <a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>chan_type</p></td>
<td class="parameter_description"><p>The channel type, e.g. <a class="link" href="telepathy-glib-interfaces.html#TP-IFACE-CHANNEL-TYPE-TEXT:CAPS" title="TP_IFACE_CHANNEL_TYPE_TEXT"><code class="literal">TP_IFACE_CHANNEL_TYPE_TEXT</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>handle_type</p></td>
<td class="parameter_description"><p>The handle type of the channel's associated handle,
or 0 if the channel has no associated handle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>handle</p></td>
<td class="parameter_description"><p>The channel's associated handle, of type <em class="parameter"><code>handle_type</code></em>
,
or 0 if the channel has no associated handle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>request</p></td>
<td class="parameter_description"><p>An opaque data structure representing the channel request;
if this request is satisfied by a newly created channel,
this structure MUST be included in the new-channel signal
if the newly created channel has handle 0, and MAY be
included in the signal if the newly created channel has
nonzero handle.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>ret</p></td>
<td class="parameter_description"><p>Set to the new channel if it is available immediately, as
documented in the description of <a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryRequestStatus" title="enum TpChannelFactoryRequestStatus"><span class="type">TpChannelFactoryRequestStatus</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>Set to the error if the return is
<a class="link" href="TpChannelFactoryIface.html#TP-CHANNEL-FACTORY-REQUEST-STATUS-ERROR:CAPS"><code class="literal">TP_CHANNEL_FACTORY_REQUEST_STATUS_ERROR</code></a>, unset otherwise</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-channel-factory-iface-request.returns"></a><h4>Returns</h4>
<p> one of the values of <a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryRequestStatus" title="enum TpChannelFactoryRequestStatus"><span class="type">TpChannelFactoryRequestStatus</span></a>, and
behaves as documented for that return value</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-channel-factory-iface-emit-new-channel"></a><h3>tp_channel_factory_iface_emit_new_channel ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_channel_factory_iface_emit_new_channel
                               (<em class="parameter"><code><span class="type">gpointer</span> instance</code></em>,
                                <em class="parameter"><code><a class="link" href="TpChannelIface.html" title="TpChannelIface"><span class="type">TpChannelIface</span></a> *channel</code></em>,
                                <em class="parameter"><code><span class="type">gpointer</span> request</code></em>);</pre>
<div class="warning"><p><code class="literal">tp_channel_factory_iface_emit_new_channel</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>Signal that a new channel has been created (new-channel signal).</p>
<p>If the channel was created in response to a channel request, the request
was for a nonzero handle type, and the channel has zero handle type,
request will be the request context passed to
<a class="link" href="TpChannelFactoryIface.html#tp-channel-factory-iface-request" title="tp_channel_factory_iface_request ()"><code class="function">tp_channel_factory_iface_request()</code></a>.</p>
<p>Otherwise, request may either be
<code class="literal">NULL</code> or a request that led to the channel's creation; callers are expected
to determine which channels satisfy which requests based on the handle
and handle-type.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
<div class="refsect3">
<a name="tp-channel-factory-iface-emit-new-channel.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>instance</p></td>
<td class="parameter_description"><p>An object implementing <a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>channel</p></td>
<td class="parameter_description"><p>The new channel</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>request</p></td>
<td class="parameter_description"><p>A request context as passed to <a class="link" href="TpChannelFactoryIface.html#tp-channel-factory-iface-request" title="tp_channel_factory_iface_request ()"><code class="function">tp_channel_factory_iface_request()</code></a>,
or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-channel-factory-iface-emit-channel-error"></a><h3>tp_channel_factory_iface_emit_channel_error ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_channel_factory_iface_emit_channel_error
                               (<em class="parameter"><code><span class="type">gpointer</span> instance</code></em>,
                                <em class="parameter"><code><a class="link" href="TpChannelIface.html" title="TpChannelIface"><span class="type">TpChannelIface</span></a> *channel</code></em>,
                                <em class="parameter"><code><span class="type">GError</span> *error</code></em>,
                                <em class="parameter"><code><span class="type">gpointer</span> request</code></em>);</pre>
<div class="warning"><p><code class="literal">tp_channel_factory_iface_emit_channel_error</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>Signal that a new channel was created, but an error occurred before it
could become useful.</p>
<p>request is as for <a class="link" href="TpChannelFactoryIface.html#tp-channel-factory-iface-emit-new-channel" title="tp_channel_factory_iface_emit_new_channel ()"><code class="function">tp_channel_factory_iface_emit_new_channel()</code></a>.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
<div class="refsect3">
<a name="tp-channel-factory-iface-emit-channel-error.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>instance</p></td>
<td class="parameter_description"><p>An object implementing <a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>channel</p></td>
<td class="parameter_description"><p>The new channel</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>The error that made the channel request fail</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>request</p></td>
<td class="parameter_description"><p>A request context as passed to <a class="link" href="TpChannelFactoryIface.html#tp-channel-factory-iface-request" title="tp_channel_factory_iface_request ()"><code class="function">tp_channel_factory_iface_request()</code></a>,
or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="TpChannelFactoryIface.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="TpChannelFactoryRequestStatus"></a><h3>enum TpChannelFactoryRequestStatus</h3>
<div class="warning"><p><code class="literal">TpChannelFactoryRequestStatus</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>Indicates the result of a channel request.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
<div class="refsect3">
<a name="TpChannelFactoryRequestStatus.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="TP-CHANNEL-FACTORY-REQUEST-STATUS-NOT-IMPLEMENTED:CAPS"></a>TP_CHANNEL_FACTORY_REQUEST_STATUS_NOT_IMPLEMENTED</p></td>
<td class="enum_member_description">
<p>Same as the Telepathy
error NotImplemented. The connection will try the next factory in its
list; if all return this, the overall result of the request will be
NotImplemented. *<em class="parameter"><code>ret</code></em>
 and *<em class="parameter"><code>error</code></em>
 are not set</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-CHANNEL-FACTORY-REQUEST-STATUS-NOT-AVAILABLE:CAPS"></a>TP_CHANNEL_FACTORY_REQUEST_STATUS_NOT_AVAILABLE</p></td>
<td class="enum_member_description">
<p>Same as the Telepathy
error NotAvailable. *<em class="parameter"><code>ret</code></em>
 and *<em class="parameter"><code>error</code></em>
 are not set</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-CHANNEL-FACTORY-REQUEST-STATUS-INVALID-HANDLE:CAPS"></a>TP_CHANNEL_FACTORY_REQUEST_STATUS_INVALID_HANDLE</p></td>
<td class="enum_member_description">
<p>Same as the Telepathy
error InvalidHandle. *<em class="parameter"><code>ret</code></em>
 and *<em class="parameter"><code>error</code></em>
 are not set</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-CHANNEL-FACTORY-REQUEST-STATUS-ERROR:CAPS"></a>TP_CHANNEL_FACTORY_REQUEST_STATUS_ERROR</p></td>
<td class="enum_member_description">
<p>An error other than the above.
*<em class="parameter"><code>ret</code></em>
 is not set, *<em class="parameter"><code>error</code></em>
 is set</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-CHANNEL-FACTORY-REQUEST-STATUS-CREATED:CAPS"></a>TP_CHANNEL_FACTORY_REQUEST_STATUS_CREATED</p></td>
<td class="enum_member_description">
<p>A new channel was created
(possibly in response to more than one request). new-channel has already
been emitted and *<em class="parameter"><code>ret</code></em>
 is set to the new channel.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-CHANNEL-FACTORY-REQUEST-STATUS-QUEUED:CAPS"></a>TP_CHANNEL_FACTORY_REQUEST_STATUS_QUEUED</p></td>
<td class="enum_member_description">
<p>A new channel will be created,
or was created but is not ready yet. Either new-channel or channel-error
will be emitted later. *<em class="parameter"><code>ret</code></em>
 and *<em class="parameter"><code>error</code></em>
 are not set.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-CHANNEL-FACTORY-REQUEST-STATUS-EXISTING:CAPS"></a>TP_CHANNEL_FACTORY_REQUEST_STATUS_EXISTING</p></td>
<td class="enum_member_description">
<p>An existing channel
satisfies the request: new-channel was not emitted. *<em class="parameter"><code>ret</code></em>
 is set to the
existing channel.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="TpChannelFactoryIface-struct"></a><h3>TpChannelFactoryIface</h3>
<pre class="programlisting">typedef struct _TpChannelFactoryIface TpChannelFactoryIface;</pre>
<div class="warning"><p><code class="literal">TpChannelFactoryIface</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>Opaque typedef representing any channel factory implementation.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
</div>
<hr>
<div class="refsect2">
<a name="TpChannelFactoryIfaceClass"></a><h3>struct TpChannelFactoryIfaceClass</h3>
<pre class="programlisting">struct TpChannelFactoryIfaceClass {
  GTypeInterface parent_class;

  TpChannelFactoryIfaceProc close_all;
  TpChannelFactoryIfaceProc connecting;
  TpChannelFactoryIfaceProc connected;
  TpChannelFactoryIfaceProc disconnected;
  TpChannelFactoryIfaceForeachImpl foreach;
  TpChannelFactoryIfaceRequestImpl request;
};
</pre>
<div class="warning"><p><code class="literal">TpChannelFactoryIfaceClass</code> has been deprecated since version 0.11.7 and should not be used in newly-written code.</p></div>
<p>The class structure and vtable for a channel factory implementation.</p>
<p>Deprecated since version 0.11.7. Use <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a> instead.</p>
<div class="refsect3">
<a name="TpChannelFactoryIfaceClass.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIfaceProc" title="TpChannelFactoryIfaceProc ()"><span class="type">TpChannelFactoryIfaceProc</span></a> <em class="structfield"><code><a name="TpChannelFactoryIfaceClass.close-all"></a>close_all</code></em>;</p></td>
<td class="struct_member_description"><p>Close all channels and shut down the channel factory. It is not
expected to be usable afterwards. This is called when the connection goes
to disconnected state, before emitting the StatusChanged signal or calling
<code class="function">disconnected()</code>. Must be filled in by implementations.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIfaceProc" title="TpChannelFactoryIfaceProc ()"><span class="type">TpChannelFactoryIfaceProc</span></a> <em class="structfield"><code><a name="TpChannelFactoryIfaceClass.connecting"></a>connecting</code></em>;</p></td>
<td class="struct_member_description"><p>Called just after the connection goes from disconnected to
connecting state. May be NULL if nothing special needs to happen.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIfaceProc" title="TpChannelFactoryIfaceProc ()"><span class="type">TpChannelFactoryIfaceProc</span></a> <em class="structfield"><code><a name="TpChannelFactoryIfaceClass.connected"></a>connected</code></em>;</p></td>
<td class="struct_member_description"><p>Called just after the connection goes from connecting to
connected state. May be NULL if nothing special needs to happen.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIfaceProc" title="TpChannelFactoryIfaceProc ()"><span class="type">TpChannelFactoryIfaceProc</span></a> <em class="structfield"><code><a name="TpChannelFactoryIfaceClass.disconnected"></a>disconnected</code></em>;</p></td>
<td class="struct_member_description"><p>Called just after the connection goes to disconnected state.
This is always called after <em class="parameter"><code>close_all</code></em>
. May be NULL if nothing special
needs to happen.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIfaceForeachImpl" title="TpChannelFactoryIfaceForeachImpl ()"><span class="type">TpChannelFactoryIfaceForeachImpl</span></a> <em class="structfield"><code><a name="TpChannelFactoryIfaceClass.foreach"></a>foreach</code></em>;</p></td>
<td class="struct_member_description"><p>Call func(channel, data) for each channel managed by this
factory. Must be filled in by implementations.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIfaceRequestImpl" title="TpChannelFactoryIfaceRequestImpl ()"><span class="type">TpChannelFactoryIfaceRequestImpl</span></a> <em class="structfield"><code><a name="TpChannelFactoryIfaceClass.request"></a>request</code></em>;</p></td>
<td class="struct_member_description"><p>Respond to a request for a channel. Must be filled in by
implementations. See <a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIfaceRequestImpl" title="TpChannelFactoryIfaceRequestImpl ()"><span class="type">TpChannelFactoryIfaceRequestImpl</span></a> for details.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="TpChannelFactoryIface.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="TpChannelFactoryIface-channel-error"></a><h3>The <code class="literal">“channel-error”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a> *self,
               <span class="type">GObject</span>               *channel,
               <span class="type">gpointer</span>               error,
               <span class="type">gpointer</span>               request_context,
               <span class="type">gpointer</span>               user_data)</pre>
<p>Emitted when a new channel has been created, but an error occurred
before it could become useful.</p>
<p><em class="parameter"><code>request</code></em>
 is the same as for <a class="link" href="TpChannelFactoryIface.html#TpChannelFactoryIface-new-channel" title="The “new-channel” signal"><span class="type">“new-channel”</span></a>.</p>
<div class="refsect3">
<a name="TpChannelFactoryIface-channel-error.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>self</p></td>
<td class="parameter_description"><p>an object implementing <a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>channel</p></td>
<td class="parameter_description"><p>an object implementing <a class="link" href="TpChannelIface.html" title="TpChannelIface"><span class="type">TpChannelIface</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>the <span class="type">GError</span> that made the channel request fail</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>request_context</p></td>
<td class="parameter_description"><p>a request context as passed to
<a class="link" href="TpChannelFactoryIface.html#tp-channel-factory-iface-request" title="tp_channel_factory_iface_request ()"><code class="function">tp_channel_factory_iface_request()</code></a>, or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: Has Details</p>
</div>
<hr>
<div class="refsect2">
<a name="TpChannelFactoryIface-new-channel"></a><h3>The <code class="literal">“new-channel”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a> *self,
               <span class="type">GObject</span>               *channel,
               <span class="type">gpointer</span>               request_context,
               <span class="type">gpointer</span>               user_data)</pre>
<p>Emitted when a new channel has been created.</p>
<p>If the <em class="parameter"><code>channel</code></em>
 was created in response to a channel request, the
request was for a nonzero handle type, and the channel has zero handle
type, <em class="parameter"><code>request_context</code></em>
 will be the request context passed to
<a class="link" href="TpChannelFactoryIface.html#tp-channel-factory-iface-request" title="tp_channel_factory_iface_request ()"><code class="function">tp_channel_factory_iface_request()</code></a>.</p>
<p>Otherwise, request may either be <code class="literal">NULL</code> or a request that led to
<em class="parameter"><code>channel</code></em>
's creation; callers are expected to determine which channels
satisfy which requests based on the handle and handle-type.</p>
<div class="refsect3">
<a name="TpChannelFactoryIface-new-channel.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>self</p></td>
<td class="parameter_description"><p>an object implementing <a class="link" href="TpChannelFactoryIface.html" title="TpChannelFactoryIface"><span class="type">TpChannelFactoryIface</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>channel</p></td>
<td class="parameter_description"><p>a new channel (an object implementing <a class="link" href="TpChannelIface.html" title="TpChannelIface"><span class="type">TpChannelIface</span></a>)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>request_context</p></td>
<td class="parameter_description"><p>a request context as passed to
<a class="link" href="TpChannelFactoryIface.html#tp-channel-factory-iface-request" title="tp_channel_factory_iface_request ()"><code class="function">tp_channel_factory_iface_request()</code></a>, or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: Has Details</p>
</div>
</div>
<div class="refsect1">
<a name="TpChannelFactoryIface.see-also"></a><h2>See Also</h2>
<p><a class="link" href="telepathy-glib-svc-connection.html#TpSvcConnection"><span class="type">TpSvcConnection</span></a>, <a class="link" href="TpChannelManager.html" title="TpChannelManager"><span class="type">TpChannelManager</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>