File: telepathy-glib-proxy.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 (1432 lines) | stat: -rw-r--r-- 76,365 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
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TpProxy: 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-dbus.html" title="General D-Bus support">
<link rel="prev" href="ch-dbus.html" title="General D-Bus support">
<link rel="next" href="telepathy-glib-proxy-dbus-core.html" title="TpProxy D-Bus core methods">
<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-proxy.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#telepathy-glib-proxy.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#telepathy-glib-proxy.properties" class="shortcut">Properties</a></span><span id="nav_signals">  <span class="dim">|</span> 
                  <a href="#telepathy-glib-proxy.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-dbus.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="ch-dbus.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="telepathy-glib-proxy-dbus-core.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="telepathy-glib-proxy"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="telepathy-glib-proxy.top_of_page"></a>TpProxy</span></h2>
<p>TpProxy — base class for Telepathy client proxy objects</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="telepathy-glib-proxy.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="telepathy-glib-proxy.html#TpProxyPrepareAsync" title="TpProxyPrepareAsync ()">*TpProxyPrepareAsync</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a class="link" href="telepathy-glib-proxy.html#TpProxyFeature" title="struct TpProxyFeature"><span class="returnvalue">TpProxyFeature</span></a> *
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="telepathy-glib-proxy.html#TpProxyClassFeatureListFunc" title="TpProxyClassFeatureListFunc ()">*TpProxyClassFeatureListFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-has-interface" title="tp_proxy_has_interface ()">tp_proxy_has_interface</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-has-interface-by-id" title="tp_proxy_has_interface_by_id ()">tp_proxy_has_interface_by_id</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-is-prepared" title="tp_proxy_is_prepared ()">tp_proxy_is_prepared</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-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()">tp_proxy_prepare_async</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-finish" title="tp_proxy_prepare_finish ()">tp_proxy_prepare_finish</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-proxy.html#tp-proxy-pending-call-cancel" title="tp_proxy_pending_call_cancel ()">tp_proxy_pending_call_cancel</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-proxy.html#tp-proxy-signal-connection-disconnect" title="tp_proxy_signal_connection_disconnect ()">tp_proxy_signal_connection_disconnect</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="telepathy-glib-simple-client-factory.html#TpSimpleClientFactory"><span class="returnvalue">TpSimpleClientFactory</span></a> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-get-factory" title="tp_proxy_get_factory ()">tp_proxy_get_factory</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="telepathy-glib-dbus.html#TpDBusDaemon"><span class="returnvalue">TpDBusDaemon</span></a> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-get-dbus-daemon" title="tp_proxy_get_dbus_daemon ()">tp_proxy_get_dbus_daemon</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGConnection.html#DBusGConnection"><span class="returnvalue">DBusGConnection</span></a> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-get-dbus-connection" title="tp_proxy_get_dbus_connection ()">tp_proxy_get_dbus_connection</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-get-bus-name" title="tp_proxy_get_bus_name ()">tp_proxy_get_bus_name</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-get-object-path" title="tp_proxy_get_object_path ()">tp_proxy_get_object_path</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">GError</span> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-get-invalidated" title="tp_proxy_get_invalidated ()">tp_proxy_get_invalidated</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-proxy.html#tp-proxy-dbus-error-to-gerror" title="tp_proxy_dbus_error_to_gerror ()">tp_proxy_dbus_error_to_gerror</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="telepathy-glib-proxy.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type">
<span class="type">gchar</span> *</td>
<td class="property_name"><a class="link" href="telepathy-glib-proxy.html#TpProxy--bus-name" title="The “bus-name” property">bus-name</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type">
<a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGConnection.html#DBusGConnection"><span class="type">DBusGConnection</span></a> *</td>
<td class="property_name"><a class="link" href="telepathy-glib-proxy.html#TpProxy--dbus-connection" title="The “dbus-connection” property">dbus-connection</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type">
<a class="link" href="telepathy-glib-dbus.html#TpDBusDaemon"><span class="type">TpDBusDaemon</span></a> *</td>
<td class="property_name"><a class="link" href="telepathy-glib-proxy.html#TpProxy--dbus-daemon" title="The “dbus-daemon” property">dbus-daemon</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type">
<a class="link" href="telepathy-glib-simple-client-factory.html#TpSimpleClientFactory"><span class="type">TpSimpleClientFactory</span></a> *</td>
<td class="property_name"><a class="link" href="telepathy-glib-proxy.html#TpProxy--factory" title="The “factory” property">factory</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type"><span class="type">GStrv</span></td>
<td class="property_name"><a class="link" href="telepathy-glib-proxy.html#TpProxy--interfaces" title="The “interfaces” property">interfaces</a></td>
<td class="property_flags">Read</td>
</tr>
<tr>
<td class="property_type">
<span class="type">gchar</span> *</td>
<td class="property_name"><a class="link" href="telepathy-glib-proxy.html#TpProxy--object-path" title="The “object-path” property">object-path</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="telepathy-glib-proxy.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="telepathy-glib-proxy.html#TpProxy-interface-added" title="The “interface-added” signal">interface-added</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="telepathy-glib-proxy.html#TpProxy-invalidated" title="The “invalidated” signal">invalidated</a></td>
<td class="signal_flags">Has Details</td>
</tr>
</tbody>
</table></div>
</div>
<a name="TpProxy"></a><div class="refsect1">
<a name="telepathy-glib-proxy.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-proxy.html#TpProxy-struct" title="struct TpProxy">TpProxy</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="telepathy-glib-proxy.html#TpProxyFeature" title="struct TpProxyFeature">TpProxyFeature</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="telepathy-glib-proxy.html#TpProxyClass" title="struct TpProxyClass">TpProxyClass</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall">TpProxyPendingCall</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection">TpProxySignalConnection</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="telepathy-glib-proxy.html#TP-DBUS-ERRORS:CAPS" title="TP_DBUS_ERRORS">TP_DBUS_ERRORS</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="telepathy-glib-proxy.html#TpDBusError" title="enum TpDBusError">TpDBusError</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="telepathy-glib-proxy.html#NUM-TP-DBUS-ERRORS:CAPS" title="NUM_TP_DBUS_ERRORS">NUM_TP_DBUS_ERRORS</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="telepathy-glib-proxy.html#TP-NUM-DBUS-ERRORS:CAPS" title="TP_NUM_DBUS_ERRORS">TP_NUM_DBUS_ERRORS</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="telepathy-glib-proxy.html#TP-TYPE-DBUS-ERROR:CAPS" title="TP_TYPE_DBUS_ERROR">TP_TYPE_DBUS_ERROR</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="telepathy-glib-proxy.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GEnum</a>
    <span class="lineart">╰──</span> TpDBusError
    GObject
    <span class="lineart">╰──</span> TpProxy
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-account.html#TpAccount">TpAccount</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager">TpAccountManager</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-channel.html#TpChannel">TpChannel</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-call-content.html#TpCallContent">TpCallContent</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-call-stream.html#TpCallStream">TpCallStream</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-channel-dispatch-operation.html#TpChannelDispatchOperation">TpChannelDispatchOperation</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-channel-dispatcher.html#TpChannelDispatcher">TpChannelDispatcher</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-channel-request.html#TpChannelRequest">TpChannelRequest</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-client.html#TpClient">TpClient</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-connection.html#TpConnection">TpConnection</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-connection-manager.html#TpConnectionManager">TpConnectionManager</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-dbus.html#TpDBusDaemon">TpDBusDaemon</a>
        <span class="lineart">├──</span> <a class="link" href="TpDebugClient.html" title="TpDebugClient">TpDebugClient</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-media-interfaces.html#TpMediaSessionHandler">TpMediaSessionHandler</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-media-interfaces.html#TpMediaStreamHandler">TpMediaStreamHandler</a>
        <span class="lineart">├──</span> <a class="link" href="telepathy-glib-protocol.html#TpProtocol">TpProtocol</a>
        <span class="lineart">╰──</span> <a class="link" href="TpTLSCertificate.html" title="TpTLSCertificate">TpTLSCertificate</a>
</pre>
</div>
<div class="refsect1">
<a name="telepathy-glib-proxy.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-proxy.description"></a><h2>Description</h2>
<p><a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> is a base class for Telepathy client-side proxies, which represent
an object accessed via D-Bus and provide access to its methods and signals.</p>
</div>
<div class="refsect1">
<a name="telepathy-glib-proxy.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="TpProxyPrepareAsync"></a><h3>TpProxyPrepareAsync ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
<span class="c_punctuation">(</span>*TpProxyPrepareAsync<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> *proxy</code></em>,
                        <em class="parameter"><code>const <a class="link" href="telepathy-glib-proxy.html#TpProxyFeature" title="struct TpProxyFeature"><span class="type">TpProxyFeature</span></a> *feature</code></em>,
                        <em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
                        <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>Function called when <em class="parameter"><code>feature</code></em>
 has to be prepared for <em class="parameter"><code>proxy</code></em>
.</p>
<div class="refsect3">
<a name="TpProxyPrepareAsync.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>proxy</p></td>
<td class="parameter_description"><p>the object on which <em class="parameter"><code>feature</code></em>
has to be prepared</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>feature</p></td>
<td class="parameter_description"><p>a <span class="type">GQuark</span> representing the feature to prepare</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>called when the feature has been prepared, or the preparation
failed</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>data to pass to <em class="parameter"><code>callback</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="TpProxyClassFeatureListFunc"></a><h3>TpProxyClassFeatureListFunc ()</h3>
<pre class="programlisting">const <a class="link" href="telepathy-glib-proxy.html#TpProxyFeature" title="struct TpProxyFeature"><span class="returnvalue">TpProxyFeature</span></a> *
<span class="c_punctuation">(</span>*TpProxyClassFeatureListFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="telepathy-glib-proxy.html#TpProxyClass" title="struct TpProxyClass"><span class="type">TpProxyClass</span></a> *cls</code></em>);</pre>
<p>A function called to list the features supported by
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()"><code class="function">tp_proxy_prepare_async()</code></a>. Currently, only code inside telepathy-glib can
implement this.</p>
<div class="refsect3">
<a name="TpProxyClassFeatureListFunc.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>cls</p></td>
<td class="parameter_description"><p>a subclass of <a class="link" href="telepathy-glib-proxy.html#TpProxyClass" title="struct TpProxyClass"><span class="type">TpProxyClass</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="TpProxyClassFeatureListFunc.returns"></a><h4>Returns</h4>
<p> an array of feature descriptions</p>
</div>
<p class="since">Since: 0.11.3</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-has-interface"></a><h3>tp_proxy_has_interface ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_proxy_has_interface (<em class="parameter"><code><span class="type">gpointer</span> self</code></em>,
                        <em class="parameter"><code>const <span class="type">gchar</span> *iface</code></em>);</pre>
<p>Return whether this proxy is known to have a particular interface. In
versions older than 0.11.11, this was a macro wrapper around
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-has-interface-by-id" title="tp_proxy_has_interface_by_id ()"><code class="function">tp_proxy_has_interface_by_id()</code></a>.</p>
<p>For objects that discover their interfaces at runtime, this method will
indicate that interfaces are missing until they are known to be present.
In subclasses that define features for use with <a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()"><code class="function">tp_proxy_prepare_async()</code></a>,
successfully preparing the "core" feature for that subclass (such as
<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> or <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>) implies that the
interfaces are known.</p>
<div class="refsect3">
<a name="tp-proxy-has-interface.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>the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> (or subclass)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>iface</p></td>
<td class="parameter_description"><p>the D-Bus interface required, as a string</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-proxy-has-interface.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if this proxy implements the given interface.</p>
</div>
<p class="since">Since: 0.7.1</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-has-interface-by-id"></a><h3>tp_proxy_has_interface_by_id ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_proxy_has_interface_by_id (<em class="parameter"><code><span class="type">gpointer</span> self</code></em>,
                              <em class="parameter"><code><span class="type">GQuark</span> iface</code></em>);</pre>
<p>Return whether this proxy is known to have a particular interface, by its
quark ID. This is equivalent to using <code class="function">g_quark_to_string()</code> followed by
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-has-interface" title="tp_proxy_has_interface ()"><code class="function">tp_proxy_has_interface()</code></a>, but more efficient.</p>
<div class="refsect3">
<a name="tp-proxy-has-interface-by-id.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>the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> (or subclass)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>iface</p></td>
<td class="parameter_description"><p>quark representing the D-Bus interface required</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-proxy-has-interface-by-id.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if this proxy implements the given interface.</p>
</div>
<p class="since">Since: 0.7.1</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-is-prepared"></a><h3>tp_proxy_is_prepared ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_proxy_is_prepared (<em class="parameter"><code><span class="type">gpointer</span> self</code></em>,
                      <em class="parameter"><code><span class="type">GQuark</span> feature</code></em>);</pre>
<p>Return <code class="literal">TRUE</code> if <em class="parameter"><code>feature</code></em>
 has been prepared successfully, or <code class="literal">FALSE</code> if
<em class="parameter"><code>feature</code></em>
 has not been requested, has not been prepared yet, or is not
available on this object at all.</p>
<p>(For instance, if <em class="parameter"><code>feature</code></em>
 is <a class="link" href="telepathy-glib-channel.html#TP-CHANNEL-FEATURE-CHAT-STATES:CAPS" title="TP_CHANNEL_FEATURE_CHAT_STATES"><code class="literal">TP_CHANNEL_FEATURE_CHAT_STATES</code></a> and <em class="parameter"><code>self</code></em>

is a <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> in a protocol that doesn't actually implement chat states,
or is not a <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> at all, then this method will return <code class="literal">FALSE</code>.)</p>
<p>To prepare features, call <a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()"><code class="function">tp_proxy_prepare_async()</code></a>.</p>
<div class="refsect3">
<a name="tp-proxy-is-prepared.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 instance of a <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> subclass</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>feature</p></td>
<td class="parameter_description"><p>a feature that is supported by <em class="parameter"><code>self</code></em>
's class</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-proxy-is-prepared.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>feature</code></em>
has been prepared successfully</p>
</div>
<p class="since">Since: 0.11.3</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-prepare-async"></a><h3>tp_proxy_prepare_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_proxy_prepare_async (<em class="parameter"><code><span class="type">gpointer</span> self</code></em>,
                        <em class="parameter"><code>const <span class="type">GQuark</span> *features</code></em>,
                        <em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
                        <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p><a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> itself does not support any features, but subclasses like
<a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> can support features, which can either be core functionality like
<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>, or extended functionality like
<a class="link" href="telepathy-glib-channel.html#TP-CHANNEL-FEATURE-CHAT-STATES:CAPS" title="TP_CHANNEL_FEATURE_CHAT_STATES"><code class="literal">TP_CHANNEL_FEATURE_CHAT_STATES</code></a>.</p>
<p>Proxy instances start with no features prepared. When features are
requested via <a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()"><code class="function">tp_proxy_prepare_async()</code></a>, the proxy starts to do the
necessary setup to use those features.</p>
<p>tp_proxy_prepare_async() always waits for core functionality of the proxy's
class to be prepared, even if it is not specifically requested: for
instance, because <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> is core functionality of a
<a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a>,</p>
<div class="informalexample">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1
2
3</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="n">TpChannel</span> <span class="o">*</span><span class="n">channel</span> <span class="o">=</span> <span class="p">...;</span>

<span class="n">tp_proxy_prepare_async</span> <span class="p">(</span><span class="n">channel</span><span class="p">,</span> <span class="nb">NULL</span><span class="p">,</span> <span class="n">callback</span><span class="p">,</span> <span class="n">user_data</span><span class="p">);</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

<p></p>
<p>is equivalent to</p>
<div class="informalexample">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1
2
3
4</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="n">TpChannel</span> <span class="o">*</span><span class="n">channel</span> <span class="o">=</span> <span class="p">...;</span>
<span class="n">GQuark</span> <span class="n">features</span><span class="p">[]</span> <span class="o">=</span> <span class="p">{</span> <span class="n">TP_CHANNEL_FEATURE_CORE</span><span class="p">,</span> <span class="mi">0</span> <span class="p">};</span>

<span class="n">tp_proxy_prepare_async</span> <span class="p">(</span><span class="n">channel</span><span class="p">,</span> <span class="n">features</span><span class="p">,</span> <span class="n">callback</span><span class="p">,</span> <span class="n">user_data</span><span class="p">);</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

<p></p>
<p>If a feature represents core functionality (like <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>),
failure to prepare it will result in <a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()"><code class="function">tp_proxy_prepare_async()</code></a> finishing
unsuccessfully: if failure to prepare the feature indicates that the proxy
is no longer useful, it will also emit <a class="link" href="telepathy-glib-proxy.html#TpProxy-invalidated" title="The “invalidated” signal"><span class="type">“invalidated”</span></a>.</p>
<p>If a feature represents non-essential functionality
(like <a class="link" href="telepathy-glib-channel.html#TP-CHANNEL-FEATURE-CHAT-STATES:CAPS" title="TP_CHANNEL_FEATURE_CHAT_STATES"><code class="literal">TP_CHANNEL_FEATURE_CHAT_STATES</code></a>), or is not supported by the object
at all, then failure to prepare it is not fatal:
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()"><code class="function">tp_proxy_prepare_async()</code></a> will complete successfully, but
<a class="link" href="telepathy-glib-proxy.html#tp-proxy-is-prepared" title="tp_proxy_is_prepared ()"><code class="function">tp_proxy_is_prepared()</code></a> will still return <code class="literal">FALSE</code> for the feature, and
accessor methods for the feature will typically return a dummy value.</p>
<p>Some <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> subclasses automatically start to prepare their core
features when instantiated, and features will sometimes become prepared as
a side-effect of other actions, but to ensure that a feature is present you
must generally call <a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()"><code class="function">tp_proxy_prepare_async()</code></a> and wait for the result.</p>
<div class="refsect3">
<a name="tp-proxy-prepare-async.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 instance of a <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> subclass</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>features</p></td>
<td class="parameter_description"><p>an array
of desired features, ending with 0; <code class="literal">NULL</code> is equivalent to an array
containing only 0. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>if not <code class="literal">NULL</code>, called exactly once, when the features have all
been prepared or failed to prepare, or after the proxy is invalidated</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 for <em class="parameter"><code>callback</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.11.3</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-prepare-finish"></a><h3>tp_proxy_prepare_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_proxy_prepare_finish (<em class="parameter"><code><span class="type">gpointer</span> self</code></em>,
                         <em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Check for error in a call to <a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()"><code class="function">tp_proxy_prepare_async()</code></a>. An error here
generally indicates that either the asynchronous call was cancelled,
or <em class="parameter"><code>self</code></em>
 has emitted <a class="link" href="telepathy-glib-proxy.html#TpProxy-invalidated" title="The “invalidated” signal"><span class="type">“invalidated”</span></a>.</p>
<div class="refsect3">
<a name="tp-proxy-prepare-finish.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 instance of a <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> subclass</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>result</p></td>
<td class="parameter_description"><p>the result passed to the callback of <a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()"><code class="function">tp_proxy_prepare_async()</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>used to return an error if <code class="literal">FALSE</code> is returned</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-proxy-prepare-finish.returns"></a><h4>Returns</h4>
<p> <code class="literal">FALSE</code> (setting <em class="parameter"><code>error</code></em>
) if <a class="link" href="telepathy-glib-proxy.html#tp-proxy-prepare-async" title="tp_proxy_prepare_async ()"><code class="function">tp_proxy_prepare_async()</code></a> failed
or was cancelled</p>
</div>
<p class="since">Since: 0.11.3</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-pending-call-cancel"></a><h3>tp_proxy_pending_call_cancel ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_proxy_pending_call_cancel (<em class="parameter"><code><a class="link" href="telepathy-glib-proxy.html#TpProxyPendingCall" title="TpProxyPendingCall"><span class="type">TpProxyPendingCall</span></a> *pc</code></em>);</pre>
<p>Cancel the given pending call. After this function returns, you
must not assume that the pending call remains valid, but you must not
explicitly free it either.</p>
<div class="refsect3">
<a name="tp-proxy-pending-call-cancel.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>pc</p></td>
<td class="parameter_description"><p>a pending call</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: 0.7.1</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-signal-connection-disconnect"></a><h3>tp_proxy_signal_connection_disconnect ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_proxy_signal_connection_disconnect (<em class="parameter"><code><a class="link" href="telepathy-glib-proxy.html#TpProxySignalConnection" title="TpProxySignalConnection"><span class="type">TpProxySignalConnection</span></a> *sc</code></em>);</pre>
<p>Disconnect the given signal connection. After this function returns, you
must not assume that the signal connection remains valid, but you must not
explicitly free it either.</p>
<p>It is not safe to call this function if <em class="parameter"><code>sc</code></em>
 has been disconnected already,
which happens in each of these situations:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">the <em class="parameter"><code>weak_object</code></em> used when <em class="parameter"><code>sc</code></em> was created has been
 destroyed</li>
<li class="listitem">tp_proxy_signal_connection_disconnect has already been
 used</li>
<li class="listitem">the proxy has been invalidated</li>
</ul></div>
<div class="refsect3">
<a name="tp-proxy-signal-connection-disconnect.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>sc</p></td>
<td class="parameter_description"><p>a signal connection</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: 0.7.1</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-get-factory"></a><h3>tp_proxy_get_factory ()</h3>
<pre class="programlisting"><a class="link" href="telepathy-glib-simple-client-factory.html#TpSimpleClientFactory"><span class="returnvalue">TpSimpleClientFactory</span></a> *
tp_proxy_get_factory (<em class="parameter"><code><span class="type">gpointer</span> self</code></em>);</pre>
<p></p>
<div class="refsect3">
<a name="tp-proxy-get-factory.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>a <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> or subclass</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-proxy-get-factory.returns"></a><h4>Returns</h4>
<p>the same value as <a class="link" href="telepathy-glib-proxy.html#TpProxy--factory" title="The “factory” property"><span class="type">“factory”</span></a> property. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: 0.15.5</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-get-dbus-daemon"></a><h3>tp_proxy_get_dbus_daemon ()</h3>
<pre class="programlisting"><a class="link" href="telepathy-glib-dbus.html#TpDBusDaemon"><span class="returnvalue">TpDBusDaemon</span></a> *
tp_proxy_get_dbus_daemon (<em class="parameter"><code><span class="type">gpointer</span> self</code></em>);</pre>
<p></p>
<div class="refsect3">
<a name="tp-proxy-get-dbus-daemon.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>a <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> or subclass</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-proxy-get-dbus-daemon.returns"></a><h4>Returns</h4>
<p>a borrowed reference to the <a class="link" href="telepathy-glib-dbus.html#TpDBusDaemon"><span class="type">TpDBusDaemon</span></a> for
this object, if any; always <code class="literal">NULL</code> if this object is itself a
<a class="link" href="telepathy-glib-dbus.html#TpDBusDaemon"><span class="type">TpDBusDaemon</span></a>. The caller must reference the returned object with
<code class="function">g_object_ref()</code> if it will be kept. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: 0.7.17</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-get-dbus-connection"></a><h3>tp_proxy_get_dbus_connection ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGConnection.html#DBusGConnection"><span class="returnvalue">DBusGConnection</span></a> *
tp_proxy_get_dbus_connection (<em class="parameter"><code><span class="type">gpointer</span> self</code></em>);</pre>
<p></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-proxy-get-dbus-connection.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>a <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> or subclass</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-proxy-get-dbus-connection.returns"></a><h4>Returns</h4>
<p> a borrowed reference to the D-Bus connection used by this object.
The caller must reference the returned pointer with
<a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGConnection.html#dbus-g-connection-ref"><code class="function">dbus_g_connection_ref()</code></a> if it will be kept.</p>
</div>
<p class="since">Since: 0.7.17</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-get-bus-name"></a><h3>tp_proxy_get_bus_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
tp_proxy_get_bus_name (<em class="parameter"><code><span class="type">gpointer</span> self</code></em>);</pre>
<p></p>
<div class="refsect3">
<a name="tp-proxy-get-bus-name.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>a <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> or subclass</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-proxy-get-bus-name.returns"></a><h4>Returns</h4>
<p> the bus name of the application exporting the object. The caller
must copy the string with <code class="function">g_strdup()</code> if it will be kept.</p>
</div>
<p class="since">Since: 0.7.17</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-get-object-path"></a><h3>tp_proxy_get_object_path ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
tp_proxy_get_object_path (<em class="parameter"><code><span class="type">gpointer</span> self</code></em>);</pre>
<p></p>
<div class="refsect3">
<a name="tp-proxy-get-object-path.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>a <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> or subclass</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-proxy-get-object-path.returns"></a><h4>Returns</h4>
<p> the object path of the remote object. The caller must copy the
string with <code class="function">g_strdup()</code> if it will be kept.</p>
</div>
<p class="since">Since: 0.7.17</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-get-invalidated"></a><h3>tp_proxy_get_invalidated ()</h3>
<pre class="programlisting">const <span class="returnvalue">GError</span> *
tp_proxy_get_invalidated (<em class="parameter"><code><span class="type">gpointer</span> self</code></em>);</pre>
<p></p>
<div class="refsect3">
<a name="tp-proxy-get-invalidated.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>a <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> or subclass</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-proxy-get-invalidated.returns"></a><h4>Returns</h4>
<p> the reason this proxy was invalidated, or <code class="literal">NULL</code> if has not been
invalidated. The caller must copy the error, for instance with
<code class="function">g_error_copy()</code>, if it will be kept.</p>
</div>
<p class="since">Since: 0.7.17</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-proxy-dbus-error-to-gerror"></a><h3>tp_proxy_dbus_error_to_gerror ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_proxy_dbus_error_to_gerror (<em class="parameter"><code><span class="type">gpointer</span> self</code></em>,
                               <em class="parameter"><code>const <span class="type">char</span> *dbus_error</code></em>,
                               <em class="parameter"><code>const <span class="type">char</span> *debug_message</code></em>,
                               <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Convert a D-Bus error name into a GError as if it was returned by a method
on this proxy. This method is useful when D-Bus error names are emitted in
signals, such as Connection.ConnectionError and
Group.MembersChangedDetailed.</p>
<div class="refsect3">
<a name="tp-proxy-dbus-error-to-gerror.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>a <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> or subclass</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>dbus_error</p></td>
<td class="parameter_description"><p>a D-Bus error name, for instance from the callback for
<a class="link" href="telepathy-glib-connection.html#tp-cli-connection-connect-to-connection-error" title="tp_cli_connection_connect_to_connection_error ()"><code class="function">tp_cli_connection_connect_to_connection_error()</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>debug_message</p></td>
<td class="parameter_description"><p>a debug message that accompanied the error name, or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>used to return the corresponding <span class="type">GError</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.24</p>
</div>
</div>
<div class="refsect1">
<a name="telepathy-glib-proxy.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="TpProxy-struct"></a><h3>struct TpProxy</h3>
<pre class="programlisting">struct TpProxy;</pre>
<p>Structure representing a Telepathy client-side proxy.</p>
<p class="since">Since: 0.7.1</p>
</div>
<hr>
<div class="refsect2">
<a name="TpProxyFeature"></a><h3>struct TpProxyFeature</h3>
<pre class="programlisting">struct TpProxyFeature {
    GQuark name;
    gboolean core;

    TpProxyPrepareAsync prepare_async;
    TpProxyPrepareAsync prepare_before_signalling_connected_async;

    const GQuark *interfaces_needed;
    /* Features we depend on */
    const GQuark *depends_on;

    gboolean can_retry;
};
</pre>
<p>Structure representing a feature.</p>
<div class="refsect3">
<a name="TpProxyFeature.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><span class="type">GQuark</span> <em class="structfield"><code><a name="TpProxyFeature.name"></a>name</code></em>;</p></td>
<td class="struct_member_description"><p>a <span class="type">GQuark</span> representing the name of the feature</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">gboolean</span> <em class="structfield"><code><a name="TpProxyFeature.core"></a>core</code></em>;</p></td>
<td class="struct_member_description"><p>if <code class="literal">TRUE</code>, every non-core feature of the class depends on this one,
and every feature (core or not) in subclasses depends on this one</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><a class="link" href="telepathy-glib-proxy.html#TpProxyPrepareAsync" title="TpProxyPrepareAsync ()"><span class="type">TpProxyPrepareAsync</span></a> <em class="structfield"><code><a name="TpProxyFeature.prepare-async"></a>prepare_async</code></em>;</p></td>
<td class="struct_member_description"><p>called when the feature has to be prepared</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><a class="link" href="telepathy-glib-proxy.html#TpProxyPrepareAsync" title="TpProxyPrepareAsync ()"><span class="type">TpProxyPrepareAsync</span></a> <em class="structfield"><code><a name="TpProxyFeature.prepare-before-signalling-connected-async"></a>prepare_before_signalling_connected_async</code></em>;</p></td>
<td class="struct_member_description"><p>only relevant for
TpConnection sub-classes; same as <em class="parameter"><code>prepare_async</code></em>
but for
features wanting to have a chance to prepare themself before the
TpConnection object announce its <a class="link" href="telepathy-glib-enums.html#TP-CONNECTION-STATUS-CONNECTED:CAPS"><code class="literal">TP_CONNECTION_STATUS_CONNECTED</code></a> status</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p>const <span class="type">GQuark</span> *<em class="structfield"><code><a name="TpProxyFeature.interfaces-needed"></a>interfaces_needed</code></em>;</p></td>
<td class="struct_member_description"><p>an array of <span class="type">GQuark</span> representing interfaces which have
to be implemented on the object in order to be able to prepare the feature</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p>const <span class="type">GQuark</span> *<em class="structfield"><code><a name="TpProxyFeature.depends-on"></a>depends_on</code></em>;</p></td>
<td class="struct_member_description"><p>an array of <span class="type">GQuark</span> representing other features which have to
be prepared before trying to prepare this feature</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">gboolean</span> <em class="structfield"><code><a name="TpProxyFeature.can-retry"></a>can_retry</code></em>;</p></td>
<td class="struct_member_description"><p>If <code class="literal">TRUE</code>, allow retrying preparation of this feature even if it
failed once already; if <code class="literal">FALSE</code> any attempt of preparing the feature after
the preparation already failed once will immediately fail with re-calling
<em class="parameter"><code>prepare_async</code></em>
</p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.11.3</p>
</div>
<hr>
<div class="refsect2">
<a name="TpProxyClass"></a><h3>struct TpProxyClass</h3>
<pre class="programlisting">struct TpProxyClass {
    GObjectClass parent_class;

    GQuark interface;

    unsigned int must_have_unique_name:1;
};
</pre>
<p>The class of a <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a>. The struct fields not documented here are reserved.</p>
<div class="refsect3">
<a name="TpProxyClass.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><span class="type">GObjectClass</span> <em class="structfield"><code><a name="TpProxyClass.parent-class"></a>parent_class</code></em>;</p></td>
<td class="struct_member_description"><p>The parent class structure</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">GQuark</span> <em class="structfield"><code><a name="TpProxyClass.interface"></a>interface</code></em>;</p></td>
<td class="struct_member_description"><p>If set non-zero by a subclass, <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> will
automatically add this interface in its constructor</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p>unsigned <span class="type">int</span> <em class="structfield"><code><a name="TpProxyClass.must-have-unique-name"></a>must_have_unique_name</code></em> :1;</p></td>
<td class="struct_member_description"><p>If set <code class="literal">TRUE</code> by a subclass, the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a>
constructor will fail if a well-known bus name is given</p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.1</p>
</div>
<hr>
<div class="refsect2">
<a name="TpProxyPendingCall"></a><h3>TpProxyPendingCall</h3>
<pre class="programlisting">typedef struct _TpProxyPendingCall TpProxyPendingCall;</pre>
<p>Opaque structure representing a pending D-Bus call.</p>
<p class="since">Since: 0.7.1</p>
</div>
<hr>
<div class="refsect2">
<a name="TpProxySignalConnection"></a><h3>TpProxySignalConnection</h3>
<pre class="programlisting">typedef struct _TpProxySignalConnection TpProxySignalConnection;</pre>
<p>Opaque structure representing a D-Bus signal connection.</p>
<p class="since">Since: 0.7.1</p>
</div>
<hr>
<div class="refsect2">
<a name="TP-DBUS-ERRORS:CAPS"></a><h3>TP_DBUS_ERRORS</h3>
<pre class="programlisting">#define TP_DBUS_ERRORS (tp_dbus_errors_quark ())
</pre>
<p><span class="type">GError</span> domain representing D-Bus errors not directly related to
Telepathy, for use by <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a>. The <em class="parameter"><code>code</code></em>
 in a <span class="type">GError</span> with this
domain must be a member of <a class="link" href="telepathy-glib-proxy.html#TpDBusError" title="enum TpDBusError"><span class="type">TpDBusError</span></a>.</p>
<p>This macro expands to a function call returning a <span class="type">GQuark</span>.</p>
<p class="since">Since: 0.7.1</p>
</div>
<hr>
<div class="refsect2">
<a name="TpDBusError"></a><h3>enum TpDBusError</h3>
<p><span class="type">GError</span> codes for use with the <a class="link" href="telepathy-glib-proxy.html#TP-DBUS-ERRORS:CAPS" title="TP_DBUS_ERRORS"><code class="literal">TP_DBUS_ERRORS</code></a> domain.</p>
<p>Since 0.11.5, there is a corresponding <span class="type">GEnumClass</span> type,
<a class="link" href="telepathy-glib-proxy.html#TP-TYPE-DBUS-ERROR:CAPS" title="TP_TYPE_DBUS_ERROR"><code class="literal">TP_TYPE_DBUS_ERROR</code></a>.</p>
<div class="refsect3">
<a name="TpDBusError.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-DBUS-ERROR-UNKNOWN-REMOTE-ERROR:CAPS"></a>TP_DBUS_ERROR_UNKNOWN_REMOTE_ERROR</p></td>
<td class="enum_member_description">
<p>Raised if the error raised by
a remote D-Bus object is not recognised</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-ERROR-PROXY-UNREFERENCED:CAPS"></a>TP_DBUS_ERROR_PROXY_UNREFERENCED</p></td>
<td class="enum_member_description">
<p>Emitted in <a class="link" href="telepathy-glib-proxy.html#TpProxy-invalidated" title="The “invalidated” signal"><span class="type">“invalidated”</span></a>
when the <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> has lost its last reference</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-ERROR-NO-INTERFACE:CAPS"></a>TP_DBUS_ERROR_NO_INTERFACE</p></td>
<td class="enum_member_description">
<p>Raised by <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> methods if the remote
object does not appear to have the required interface</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-ERROR-NAME-OWNER-LOST:CAPS"></a>TP_DBUS_ERROR_NAME_OWNER_LOST</p></td>
<td class="enum_member_description">
<p>Emitted in <a class="link" href="telepathy-glib-proxy.html#TpProxy-invalidated" title="The “invalidated” signal"><span class="type">“invalidated”</span></a> if the
remote process loses ownership of its bus name, and raised by
any <a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> methods that have not had a reply at that time or are called
after the proxy becomes invalid in this way (usually meaning it crashed)</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-ERROR-INVALID-BUS-NAME:CAPS"></a>TP_DBUS_ERROR_INVALID_BUS_NAME</p></td>
<td class="enum_member_description">
<p>Raised if a D-Bus bus name given is not
valid, or is of an unacceptable type (e.g. well-known vs. unique)</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-ERROR-INVALID-INTERFACE-NAME:CAPS"></a>TP_DBUS_ERROR_INVALID_INTERFACE_NAME</p></td>
<td class="enum_member_description">
<p>Raised if a D-Bus interface or
error name given is not valid</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-ERROR-INVALID-OBJECT-PATH:CAPS"></a>TP_DBUS_ERROR_INVALID_OBJECT_PATH</p></td>
<td class="enum_member_description">
<p>Raised if a D-Bus object path
given is not valid</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-ERROR-INVALID-MEMBER-NAME:CAPS"></a>TP_DBUS_ERROR_INVALID_MEMBER_NAME</p></td>
<td class="enum_member_description">
<p>Raised if a D-Bus method or signal
name given is not valid</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-ERROR-OBJECT-REMOVED:CAPS"></a>TP_DBUS_ERROR_OBJECT_REMOVED</p></td>
<td class="enum_member_description">
<p>A generic error which can be used with
<a class="link" href="telepathy-glib-proxy.html#TpProxy-invalidated" title="The “invalidated” signal"><span class="type">“invalidated”</span></a> to indicate an application-specific indication
that the remote object no longer exists, if no more specific error
is available.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-ERROR-CANCELLED:CAPS"></a>TP_DBUS_ERROR_CANCELLED</p></td>
<td class="enum_member_description">
<p>Raised from calls that re-enter the main
loop (*_run_*) if they are cancelled</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-ERROR-INCONSISTENT:CAPS"></a>TP_DBUS_ERROR_INCONSISTENT</p></td>
<td class="enum_member_description">
<p>Raised if information received from a remote
object is inconsistent or otherwise obviously wrong (added in 0.7.17).
See also <a class="link" href="telepathy-glib-errors.html#TP-ERROR-CONFUSED:CAPS"><code class="literal">TP_ERROR_CONFUSED</code></a>.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.1</p>
</div>
<hr>
<div class="refsect2">
<a name="NUM-TP-DBUS-ERRORS:CAPS"></a><h3>NUM_TP_DBUS_ERRORS</h3>
<pre class="programlisting">#define NUM_TP_DBUS_ERRORS TP_NUM_DBUS_ERRORS
</pre>
<p>1 more than the highest valid <a class="link" href="telepathy-glib-proxy.html#TpDBusError" title="enum TpDBusError"><span class="type">TpDBusError</span></a> at the time of compilation.
In new code, use <a class="link" href="telepathy-glib-proxy.html#TP-NUM-DBUS-ERRORS:CAPS" title="TP_NUM_DBUS_ERRORS"><code class="literal">TP_NUM_DBUS_ERRORS</code></a> instead.</p>
<p class="since">Since: 0.7.1</p>
</div>
<hr>
<div class="refsect2">
<a name="TP-NUM-DBUS-ERRORS:CAPS"></a><h3>TP_NUM_DBUS_ERRORS</h3>
<pre class="programlisting">#define TP_NUM_DBUS_ERRORS (TP_DBUS_ERROR_INCONSISTENT + 1)
</pre>
<p>1 more than the highest valid <a class="link" href="telepathy-glib-proxy.html#TpDBusError" title="enum TpDBusError"><span class="type">TpDBusError</span></a> at the time of compilation</p>
<p class="since">Since: 0.19.0</p>
</div>
<hr>
<div class="refsect2">
<a name="TP-TYPE-DBUS-ERROR:CAPS"></a><h3>TP_TYPE_DBUS_ERROR</h3>
<pre class="programlisting">#define TP_TYPE_DBUS_ERROR (tp_dbus_error_get_type ())
</pre>
<p>The <span class="type">GEnumClass</span> type of a <a class="link" href="telepathy-glib-proxy.html#TpDBusError" title="enum TpDBusError"><span class="type">TpDBusError</span></a>.</p>
<p class="since">Since: 0.11.5</p>
</div>
</div>
<div class="refsect1">
<a name="telepathy-glib-proxy.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="TpProxy--bus-name"></a><h3>The <code class="literal">“bus-name”</code> property</h3>
<pre class="programlisting">  “bus-name”                 <span class="type">gchar</span> *</pre>
<p>The D-Bus bus name for this object. Read-only except during construction.</p>
<p>Owner: TpProxy</p>
<p>Flags: Read / Write / Construct Only</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="TpProxy--dbus-connection"></a><h3>The <code class="literal">“dbus-connection”</code> property</h3>
<pre class="programlisting">  “dbus-connection”          <a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGConnection.html#DBusGConnection"><span class="type">DBusGConnection</span></a> *</pre>
<p>The D-Bus connection for this object. Read-only except during
construction.</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>
<p>Owner: TpProxy</p>
<p>Flags: Read / Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
<a name="TpProxy--dbus-daemon"></a><h3>The <code class="literal">“dbus-daemon”</code> property</h3>
<pre class="programlisting">  “dbus-daemon”              <a class="link" href="telepathy-glib-dbus.html#TpDBusDaemon"><span class="type">TpDBusDaemon</span></a> *</pre>
<p>The D-Bus daemon for this object (this object itself, if it is a
TpDBusDaemon). Read-only except during construction.</p>
<p>Owner: TpProxy</p>
<p>Flags: Read / Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
<a name="TpProxy--factory"></a><h3>The <code class="literal">“factory”</code> property</h3>
<pre class="programlisting">  “factory”                  <a class="link" href="telepathy-glib-simple-client-factory.html#TpSimpleClientFactory"><span class="type">TpSimpleClientFactory</span></a> *</pre>
<p>The <a class="link" href="telepathy-glib-simple-client-factory.html#TpSimpleClientFactory"><span class="type">TpSimpleClientFactory</span></a> used to create this proxy,
or <code class="literal">NULL</code> if this proxy was not created through a factory.</p>
<p>Owner: TpProxy</p>
<p>Flags: Read / Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
<a name="TpProxy--interfaces"></a><h3>The <code class="literal">“interfaces”</code> property</h3>
<pre class="programlisting">  “interfaces”               <span class="type">GStrv</span></pre>
<p>Known D-Bus interface names for this object.</p>
<p>Owner: TpProxy</p>
<p>Flags: Read</p>
</div>
<hr>
<div class="refsect2">
<a name="TpProxy--object-path"></a><h3>The <code class="literal">“object-path”</code> property</h3>
<pre class="programlisting">  “object-path”              <span class="type">gchar</span> *</pre>
<p>The D-Bus object path for this object. Read-only except during
construction.</p>
<p>Owner: TpProxy</p>
<p>Flags: Read / Write / Construct Only</p>
<p>Default value: NULL</p>
</div>
</div>
<div class="refsect1">
<a name="telepathy-glib-proxy.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="TpProxy-interface-added"></a><h3>The <code class="literal">“interface-added”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a>    *self,
               <span class="type">guint</span>       id,
               <a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGProxy.html#DBusGProxy"><span class="type">DBusGProxy</span></a> *proxy,
               <span class="type">gpointer</span>    user_data)</pre>
<p>Emitted when this proxy has gained an interface. It is not guaranteed
to be emitted immediately, but will be emitted before the interface is
first used (at the latest: before it's returned from
<a class="link" href="telepathy-glib-proxy-subclass.html#tp-proxy-get-interface-by-id" title="tp_proxy_get_interface_by_id ()"><code class="function">tp_proxy_get_interface_by_id()</code></a>, any signal is connected, or any
method is called).</p>
<p>The intended use is to call <a href="/usr/share/gtk-doc/html/dbus-glib/dbus-glib-DBusGProxy.html#dbus-g-proxy-add-signal"><code class="function">dbus_g_proxy_add_signals()</code></a>. This signal
should only be used by TpProy implementations</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="TpProxy-interface-added.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>the proxy object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>the GQuark representing the interface</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>proxy</p></td>
<td class="parameter_description"><p>the dbus-glib proxy representing the interface</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="TpProxy-invalidated"></a><h3>The <code class="literal">“invalidated”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="telepathy-glib-proxy.html#TpProxy"><span class="type">TpProxy</span></a> *self,
               <span class="type">guint</span>    domain,
               <span class="type">gint</span>     code,
               <span class="type">gchar</span>   *message,
               <span class="type">gpointer</span> user_data)</pre>
<p>Emitted when this proxy has been become invalid for
whatever reason. Any more specific signal should be emitted first.</p>
<p>An invalidated proxy is one which can make no more method calls and will
emit no more D-Bus signals. This is typically because the D-Bus object
represented by the proxy ceased to exist, or there was some error
obtaining the initial state.</p>
<p>Any pending or future method calls made on this proxy will fail gracefully
with the same error as returned by <a class="link" href="telepathy-glib-proxy.html#tp-proxy-get-invalidated" title="tp_proxy_get_invalidated ()"><code class="function">tp_proxy_get_invalidated()</code></a>.</p>
<div class="refsect3">
<a name="TpProxy-invalidated.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>the proxy object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>domain</p></td>
<td class="parameter_description"><p>domain of a GError indicating why this proxy was invalidated</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>code</p></td>
<td class="parameter_description"><p>error code of a GError indicating why this proxy was invalidated</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>message</p></td>
<td class="parameter_description"><p>a message associated with the error</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="telepathy-glib-proxy.see-also"></a><h2>See Also</h2>
<p><a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a>, <a class="link" href="telepathy-glib-connection.html#TpConnection"><span class="type">TpConnection</span></a>, <a class="link" href="telepathy-glib-connection-manager.html#TpConnectionManager"><span class="type">TpConnectionManager</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>