/usr/share/doc/libtelepathy-glib-doc/telepathy-glib/telepathy-glib-text-channel.html is in libtelepathy-glib-doc 0.22.1-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TpTextChannel</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="telepathy-glib API Reference Manual">
<link rel="up" href="ch-client.html" title="Client-side proxies">
<link rel="prev" href="TpSignalledMessage.html" title="TpSignalledMessage">
<link rel="next" href="telepathy-glib-file-transfer-channel.html" title="TpFileTransferChannel">
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="TpSignalledMessage.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch-client.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">telepathy-glib API Reference Manual</th>
<td><a accesskey="n" href="telepathy-glib-file-transfer-channel.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#telepathy-glib-text-channel.synopsis" class="shortcut">Top</a>
|
<a href="#telepathy-glib-text-channel.description" class="shortcut">Description</a>
|
<a href="#telepathy-glib-text-channel.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#telepathy-glib-text-channel.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
<a href="#telepathy-glib-text-channel.properties" class="shortcut">Properties</a>
|
<a href="#telepathy-glib-text-channel.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="telepathy-glib-text-channel"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="telepathy-glib-text-channel.top_of_page"></a>TpTextChannel</span></h2>
<p>TpTextChannel — proxy object for a text channel</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="telepathy-glib-text-channel.synopsis"></a><h2>Synopsis</h2>
<a name="TpTextChannel"></a><pre class="synopsis">
#include <telepathy-glib/telepathy-glib.h>
struct <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel-struct" title="struct TpTextChannel">TpTextChannel</a>;
struct <a class="link" href="telepathy-glib-text-channel.html#TpTextChannelClass" title="struct TpTextChannelClass">TpTextChannelClass</a>;
<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="returnvalue">TpTextChannel</span></a> * <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-new" title="tp_text_channel_new ()">tp_text_channel_new</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-connection.html#TpConnection"><span class="type">TpConnection</span></a> *conn</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *object_path</code></em>,
<em class="parameter"><code>const <span class="type">GHashTable</span> *immutable_properties</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
const <span class="returnvalue">gchar</span> * const * <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-get-supported-content-types" title="tp_text_channel_get_supported_content_types ()">tp_text_channel_get_supported_content_types</a>
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);
<a class="link" href="telepathy-glib-enums.html#TpMessagePartSupportFlags" title="enum TpMessagePartSupportFlags"><span class="returnvalue">TpMessagePartSupportFlags</span></a> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-get-message-part-support-flags" title="tp_text_channel_get_message_part_support_flags ()">tp_text_channel_get_message_part_support_flags</a>
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);
<a class="link" href="telepathy-glib-enums.html#TpDeliveryReportingSupportFlags" title="enum TpDeliveryReportingSupportFlags"><span class="returnvalue">TpDeliveryReportingSupportFlags</span></a> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-get-delivery-reporting-support" title="tp_text_channel_get_delivery_reporting_support ()">tp_text_channel_get_delivery_reporting_support</a>
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);
<span class="returnvalue">GList</span> * <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-get-pending-messages" title="tp_text_channel_get_pending_messages ()">tp_text_channel_get_pending_messages</a>
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);
<span class="returnvalue">GList</span> * <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-dup-pending-messages" title="tp_text_channel_dup_pending_messages ()">tp_text_channel_dup_pending_messages</a>
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);
<span class="returnvalue">GArray</span> * <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-get-message-types" title="tp_text_channel_get_message_types ()">tp_text_channel_get_message_types</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);
#define <a class="link" href="telepathy-glib-text-channel.html#TP-TEXT-CHANNEL-FEATURE-INCOMING-MESSAGES:CAPS" title="TP_TEXT_CHANNEL_FEATURE_INCOMING_MESSAGES">TP_TEXT_CHANNEL_FEATURE_INCOMING_MESSAGES</a>
<span class="returnvalue">void</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-send-message-async" title="tp_text_channel_send_message_async ()">tp_text_channel_send_message_async</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="TpMessage.html" title="TpMessage"><span class="type">TpMessage</span></a> *message</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpMessageSendingFlags" title="enum TpMessageSendingFlags"><span class="type">TpMessageSendingFlags</span></a> flags</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>);
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-send-message-finish" title="tp_text_channel_send_message_finish ()">tp_text_channel_send_message_finish</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
<em class="parameter"><code><span class="type">gchar</span> **token</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<span class="returnvalue">void</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-messages-async" title="tp_text_channel_ack_messages_async ()">tp_text_channel_ack_messages_async</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code>const <span class="type">GList</span> *messages</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>);
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-messages-finish" title="tp_text_channel_ack_messages_finish ()">tp_text_channel_ack_messages_finish</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *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>);
<span class="returnvalue">void</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-message-async" title="tp_text_channel_ack_message_async ()">tp_text_channel_ack_message_async</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="TpMessage.html" title="TpMessage"><span class="type">TpMessage</span></a> *message</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>);
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-message-finish" title="tp_text_channel_ack_message_finish ()">tp_text_channel_ack_message_finish</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *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>);
<span class="returnvalue">void</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-all-pending-messages-async" title="tp_text_channel_ack_all_pending_messages_async ()">tp_text_channel_ack_all_pending_messages_async</a>
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</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>);
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-all-pending-messages-finish" title="tp_text_channel_ack_all_pending_messages_finish ()">tp_text_channel_ack_all_pending_messages_finish</a>
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *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>);
<span class="returnvalue">void</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-set-chat-state-async" title="tp_text_channel_set_chat_state_async ()">tp_text_channel_set_chat_state_async</a>
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpChannelChatState" title="enum TpChannelChatState"><span class="type">TpChannelChatState</span></a> state</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>);
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-set-chat-state-finish" title="tp_text_channel_set_chat_state_finish ()">tp_text_channel_set_chat_state_finish</a>
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *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>);
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-supports-message-type" title="tp_text_channel_supports_message_type ()">tp_text_channel_supports_message_type</a>
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpChannelTextMessageType" title="enum TpChannelTextMessageType"><span class="type">TpChannelTextMessageType</span></a> message_type</code></em>);
#define <a class="link" href="telepathy-glib-text-channel.html#TP-TEXT-CHANNEL-FEATURE-SMS:CAPS" title="TP_TEXT_CHANNEL_FEATURE_SMS">TP_TEXT_CHANNEL_FEATURE_SMS</a>
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-is-sms-channel" title="tp_text_channel_is_sms_channel ()">tp_text_channel_is_sms_channel</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-get-sms-flash" title="tp_text_channel_get_sms_flash ()">tp_text_channel_get_sms_flash</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);
<span class="returnvalue">void</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-get-sms-length-async" title="tp_text_channel_get_sms_length_async ()">tp_text_channel_get_sms_length_async</a>
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="TpMessage.html" title="TpMessage"><span class="type">TpMessage</span></a> *message</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>);
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-get-sms-length-finish" title="tp_text_channel_get_sms_length_finish ()">tp_text_channel_get_sms_length_finish</a>
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
<em class="parameter"><code><span class="type">guint</span> *chunks_required</code></em>,
<em class="parameter"><code><span class="type">gint</span> *remaining_characters</code></em>,
<em class="parameter"><code><span class="type">gint</span> *estimated_cost</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
#define <a class="link" href="telepathy-glib-text-channel.html#TP-TEXT-CHANNEL-FEATURE-CHAT-STATES:CAPS" title="TP_TEXT_CHANNEL_FEATURE_CHAT_STATES">TP_TEXT_CHANNEL_FEATURE_CHAT_STATES</a>
<a class="link" href="telepathy-glib-enums.html#TpChannelChatState" title="enum TpChannelChatState"><span class="returnvalue">TpChannelChatState</span></a> <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-get-chat-state" title="tp_text_channel_get_chat_state ()">tp_text_channel_get_chat_state</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-contact.html#TpContact"><span class="type">TpContact</span></a> *contact</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="telepathy-glib-text-channel.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----<a class="link" href="telepathy-glib-proxy.html#TpProxy">TpProxy</a>
+----<a class="link" href="telepathy-glib-channel.html#TpChannel">TpChannel</a>
+----TpTextChannel
</pre>
</div>
<div class="refsect1">
<a name="telepathy-glib-text-channel.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
TpTextChannel implements
<a class="link" href="TpChannelIface.html" title="TpChannelIface">TpChannelIface</a>.</p>
</div>
<div class="refsect1">
<a name="telepathy-glib-text-channel.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--delivery-reporting-support" title='The "delivery-reporting-support" property'>delivery-reporting-support</a>" <span class="type">guint</span> : Read
"<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--is-sms-channel" title='The "is-sms-channel" property'>is-sms-channel</a>" <span class="type">gboolean</span> : Read
"<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--message-part-support-flags" title='The "message-part-support-flags" property'>message-part-support-flags</a>" <span class="type">guint</span> : Read
"<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--message-types" title='The "message-types" property'>message-types</a>" <span class="type">GArray_guint_</span>* : Read
"<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--sms-flash" title='The "sms-flash" property'>sms-flash</a>" <span class="type">gboolean</span> : Read
"<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--supported-content-types" title='The "supported-content-types" property'>supported-content-types</a>" <span class="type">GStrv</span> : Read
</pre>
</div>
<div class="refsect1">
<a name="telepathy-glib-text-channel.signals"></a><h2>Signals</h2>
<pre class="synopsis">
"<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel-contact-chat-state-changed" title='The "contact-chat-state-changed" signal'>contact-chat-state-changed</a>" : <code class="literal">Has Details</code>
"<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel-message-received" title='The "message-received" signal'>message-received</a>" : <code class="literal">Run Last</code>
"<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel-message-sent" title='The "message-sent" signal'>message-sent</a>" : <code class="literal">Run Last</code>
"<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel-pending-message-removed" title='The "pending-message-removed" signal'>pending-message-removed</a>" : <code class="literal">Run Last</code>
</pre>
</div>
<div class="refsect1">
<a name="telepathy-glib-text-channel.description"></a><h2>Description</h2>
<p>
<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> is a sub-class of <a class="link" href="telepathy-glib-channel.html#TpChannel"><span class="type">TpChannel</span></a> providing convenient API
to send and receive <a class="link" href="TpMessage.html" title="TpMessage"><span class="type">TpMessage</span></a>.
</p>
</div>
<div class="refsect1">
<a name="telepathy-glib-text-channel.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="TpTextChannel-struct"></a><h3>struct TpTextChannel</h3>
<pre class="programlisting">struct TpTextChannel;</pre>
<p>
Data structure representing a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>.
</p>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="TpTextChannelClass"></a><h3>struct TpTextChannelClass</h3>
<pre class="programlisting">struct TpTextChannelClass {
};
</pre>
<p>
The class of a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>.
</p>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-new"></a><h3>tp_text_channel_new ()</h3>
<pre class="programlisting"><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="returnvalue">TpTextChannel</span></a> * tp_text_channel_new (<em class="parameter"><code><a class="link" href="telepathy-glib-connection.html#TpConnection"><span class="type">TpConnection</span></a> *conn</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *object_path</code></em>,
<em class="parameter"><code>const <span class="type">GHashTable</span> *immutable_properties</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">tp_text_channel_new</code> is deprecated and should not be used in newly-written code. Use <a class="link" href="telepathy-glib-simple-client-factory.html#tp-simple-client-factory-ensure-channel" title="tp_simple_client_factory_ensure_channel ()"><code class="function">tp_simple_client_factory_ensure_channel()</code></a> instead.</p>
</div>
<p>
Convenient function to create a new <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-connection.html#TpConnection"><span class="type">TpConnection</span></a>; may not be <code class="literal">NULL</code>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>object_path</code></em> :</span></p></td>
<td>the object path of the channel; may not be <code class="literal">NULL</code>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>immutable_properties</code></em> :</span></p></td>
<td>the immutable properties of the channel,
as signalled by the NewChannel D-Bus signal or returned by the
CreateChannel and EnsureChannel D-Bus methods: a mapping from
strings (D-Bus interface name + "." + property name) to <span class="type">GValue</span> instances. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8 GObject.Value]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>used to indicate the error if <code class="literal">NULL</code> is returned</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly created <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-get-supported-content-types"></a><h3>tp_text_channel_get_supported_content_types ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> * const * tp_text_channel_get_supported_content_types
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);</pre>
<p>
Return the <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--supported-content-types" title='The "supported-content-types" property'><span class="type">"supported-content-types"</span></a> property
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>(transfer none) :
the value of <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--supported-content-types" title='The "supported-content-types" property'><span class="type">"supported-content-types"</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-get-message-part-support-flags"></a><h3>tp_text_channel_get_message_part_support_flags ()</h3>
<pre class="programlisting"><a class="link" href="telepathy-glib-enums.html#TpMessagePartSupportFlags" title="enum TpMessagePartSupportFlags"><span class="returnvalue">TpMessagePartSupportFlags</span></a> tp_text_channel_get_message_part_support_flags
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);</pre>
<p>
Return the <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--message-part-support-flags" title='The "message-part-support-flags" property'><span class="type">"message-part-support-flags"</span></a> property
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the value of <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--message-part-support-flags" title='The "message-part-support-flags" property'><span class="type">"message-part-support-flags"</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-get-delivery-reporting-support"></a><h3>tp_text_channel_get_delivery_reporting_support ()</h3>
<pre class="programlisting"><a class="link" href="telepathy-glib-enums.html#TpDeliveryReportingSupportFlags" title="enum TpDeliveryReportingSupportFlags"><span class="returnvalue">TpDeliveryReportingSupportFlags</span></a> tp_text_channel_get_delivery_reporting_support
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);</pre>
<p>
Return the <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--delivery-reporting-support" title='The "delivery-reporting-support" property'><span class="type">"delivery-reporting-support"</span></a> property
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the value of <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--delivery-reporting-support" title='The "delivery-reporting-support" property'><span class="type">"delivery-reporting-support"</span></a> property</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-get-pending-messages"></a><h3>tp_text_channel_get_pending_messages ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> * tp_text_channel_get_pending_messages
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">tp_text_channel_get_pending_messages</code> is deprecated and should not be used in newly-written code. Since 0.19.9. New code should use
<a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-dup-pending-messages" title="tp_text_channel_dup_pending_messages ()"><code class="function">tp_text_channel_dup_pending_messages()</code></a> instead.</p>
</div>
<p>
Return a newly allocated list of unacknowledged <a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a>
objects.
</p>
<p>
It is guaranteed that the <a class="link" href="TpSignalledMessage.html#TpSignalledMessage--sender" title='The "sender" property'><span class="type">"sender"</span></a> of each
<a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a> has all of the features previously passed to
<a class="link" href="telepathy-glib-simple-client-factory.html#tp-simple-client-factory-add-contact-features" title="tp_simple_client_factory_add_contact_features ()"><code class="function">tp_simple_client_factory_add_contact_features()</code></a> prepared.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">GList</span> of borrowed <a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a>. <span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> TelepathyGLib.SignalledMessage]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-dup-pending-messages"></a><h3>tp_text_channel_dup_pending_messages ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> * tp_text_channel_dup_pending_messages
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);</pre>
<p>
Return a newly allocated list of unacknowledged <a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a>
objects.
</p>
<p>
It is guaranteed that the <a class="link" href="TpSignalledMessage.html#TpSignalledMessage--sender" title='The "sender" property'><span class="type">"sender"</span></a> of each
<a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a> has all of the features previously passed to
<a class="link" href="telepathy-glib-simple-client-factory.html#tp-simple-client-factory-add-contact-features" title="tp_simple_client_factory_add_contact_features ()"><code class="function">tp_simple_client_factory_add_contact_features()</code></a> prepared.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">GList</span> of reffed <a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> TelepathyGLib.SignalledMessage]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.19.9</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-get-message-types"></a><h3>tp_text_channel_get_message_types ()</h3>
<pre class="programlisting"><span class="returnvalue">GArray</span> * tp_text_channel_get_message_types (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);</pre>
<p>
Return the <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--message-types" title='The "message-types" property'><span class="type">"message-types"</span></a> property
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the value of <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--message-types" title='The "message-types" property'><span class="type">"message-types"</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> TelepathyGLib.ChannelTextMessageType]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.16</p>
</div>
<hr>
<div class="refsect2">
<a name="TP-TEXT-CHANNEL-FEATURE-INCOMING-MESSAGES:CAPS"></a><h3>TP_TEXT_CHANNEL_FEATURE_INCOMING_MESSAGES</h3>
<pre class="programlisting">#define TP_TEXT_CHANNEL_FEATURE_INCOMING_MESSAGES</pre>
<p>
Expands to a call to a function that returns a quark representing the
incoming messages features of a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>.
</p>
<p>
When this feature is prepared, <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-dup-pending-messages" title="tp_text_channel_dup_pending_messages ()"><code class="function">tp_text_channel_dup_pending_messages()</code></a> will
return a non-empty list if any unacknowledged messages are waiting, and the
<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel-message-received" title='The "message-received" signal'><span class="type">"message-received"</span></a> and <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel-pending-message-removed" title='The "pending-message-removed" signal'><span class="type">"pending-message-removed"</span></a>
signals will be emitted.
</p>
<p>
One can ask for a feature to be prepared using the
<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> function, and waiting for it to callback.
</p>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-send-message-async"></a><h3>tp_text_channel_send_message_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> tp_text_channel_send_message_async (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="TpMessage.html" title="TpMessage"><span class="type">TpMessage</span></a> *message</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpMessageSendingFlags" title="enum TpMessageSendingFlags"><span class="type">TpMessageSendingFlags</span></a> flags</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>
Submit a message to the server for sending. Once the message has been
submitted to the sever, <em class="parameter"><code>callback</code></em> will be called. You can then call
<a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-send-message-finish" title="tp_text_channel_send_message_finish ()"><code class="function">tp_text_channel_send_message_finish()</code></a> to get the result of the operation.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>a <a class="link" href="TpClientMessage.html" title="TpClientMessage"><span class="type">TpClientMessage</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>flags affecting how the message is sent</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>a callback to call when the message has been submitted to the
server</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>data to pass to <em class="parameter"><code>callback</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-send-message-finish"></a><h3>tp_text_channel_send_message_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_text_channel_send_message_finish (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
<em class="parameter"><code><span class="type">gchar</span> **token</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Completes a call to <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-send-message-async" title="tp_text_channel_send_message_async ()"><code class="function">tp_text_channel_send_message_async()</code></a>.
</p>
<p>
<em class="parameter"><code>token</code></em> can be used to match any incoming delivery or failure reports
against the sent message. If this function returns true but the returned
token is <code class="literal">NULL</code>, the message was sent successfully but the protocol does not
provide a way to identify it later.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td>a <span class="type">GAsyncResult</span> passed to the callback for <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-send-message-async" title="tp_text_channel_send_message_async ()"><code class="function">tp_text_channel_send_message_async()</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>token</code></em> :</span></p></td>
<td>if not <code class="literal">NULL</code>, used to return the
token of the sent message. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a <span class="type">GError</span> to fill</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if the message has been submitted to the server, <code class="literal">FALSE</code>
otherwise.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-ack-messages-async"></a><h3>tp_text_channel_ack_messages_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> tp_text_channel_ack_messages_async (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code>const <span class="type">GList</span> *messages</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>
Acknowledge all the messages in <em class="parameter"><code>messages</code></em>.
Once the messages have been acked, <em class="parameter"><code>callback</code></em> will be called.
You can then call <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-messages-finish" title="tp_text_channel_ack_messages_finish ()"><code class="function">tp_text_channel_ack_messages_finish()</code></a> to get the
result of the operation.
</p>
<p>
You should use the <a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a> received from
<a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-dup-pending-messages" title="tp_text_channel_dup_pending_messages ()"><code class="function">tp_text_channel_dup_pending_messages()</code></a> or the
<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel-message-received" title='The "message-received" signal'><span class="type">"message-received"</span></a> signal.
</p>
<p>
See <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-message-async" title="tp_text_channel_ack_message_async ()"><code class="function">tp_text_channel_ack_message_async()</code></a> about acknowledging messages.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>messages</code></em> :</span></p></td>
<td>a <span class="type">GList</span> of
<a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> TelepathyGLib.SignalledMessage]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>a callback to call when the message have been acked</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>data to pass to <em class="parameter"><code>callback</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-ack-messages-finish"></a><h3>tp_text_channel_ack_messages_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_text_channel_ack_messages_finish (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *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>
Finishes acknowledging a list of messages.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td>a <span class="type">GAsyncResult</span> passed to the callback for <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-messages-async" title="tp_text_channel_ack_messages_async ()"><code class="function">tp_text_channel_ack_messages_async()</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a <span class="type">GError</span> to fill</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if the messages have been acked, <code class="literal">FALSE</code> otherwise.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-ack-message-async"></a><h3>tp_text_channel_ack_message_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> tp_text_channel_ack_message_async (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="TpMessage.html" title="TpMessage"><span class="type">TpMessage</span></a> *message</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>
Acknowledge <em class="parameter"><code>message</code></em>. Once the message has been acked, <em class="parameter"><code>callback</code></em> will be
called. You can then call <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-message-finish" title="tp_text_channel_ack_message_finish ()"><code class="function">tp_text_channel_ack_message_finish()</code></a> to get the
result of the operation.
</p>
<p>
A message should be acknowledged once it has been shown to the user by the
Handler of the channel. So Observers and Approvers should NOT acknowledge
messages themselves.
Once a message has been acknowledged, it is removed from the
pending-message queue and so the <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel-pending-message-removed" title='The "pending-message-removed" signal'><span class="type">"pending-message-removed"</span></a>
signal is fired.
</p>
<p>
You should use the <a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a> received from
<a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-dup-pending-messages" title="tp_text_channel_dup_pending_messages ()"><code class="function">tp_text_channel_dup_pending_messages()</code></a> or the
<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel-message-received" title='The "message-received" signal'><span class="type">"message-received"</span></a> signal.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>a <a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>a callback to call when the message have been acked</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>data to pass to <em class="parameter"><code>callback</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-ack-message-finish"></a><h3>tp_text_channel_ack_message_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_text_channel_ack_message_finish (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *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>
Finishes acknowledging a message.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td>a <span class="type">GAsyncResult</span> passed to the callback for <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-message-async" title="tp_text_channel_ack_message_async ()"><code class="function">tp_text_channel_ack_message_async()</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a <span class="type">GError</span> to fill</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if the message has been acked, <code class="literal">FALSE</code> otherwise.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-ack-all-pending-messages-async"></a><h3>tp_text_channel_ack_all_pending_messages_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> tp_text_channel_ack_all_pending_messages_async
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</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>
Acknowledge all the pending messages. This is equivalent of calling
<a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-messages-async" title="tp_text_channel_ack_messages_async ()"><code class="function">tp_text_channel_ack_messages_async()</code></a> with the list of <a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a>
returned by <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-dup-pending-messages" title="tp_text_channel_dup_pending_messages ()"><code class="function">tp_text_channel_dup_pending_messages()</code></a>.
</p>
<p>
Once the messages have been acked, <em class="parameter"><code>callback</code></em> will be called.
You can then call <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-all-pending-messages-finish" title="tp_text_channel_ack_all_pending_messages_finish ()"><code class="function">tp_text_channel_ack_all_pending_messages_finish()</code></a> to get
the result of the operation.
</p>
<p>
See <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-ack-message-async" title="tp_text_channel_ack_message_async ()"><code class="function">tp_text_channel_ack_message_async()</code></a> about acknowledging messages.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>a callback to call when the messages have been acked</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>data to pass to <em class="parameter"><code>callback</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.15.3</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-ack-all-pending-messages-finish"></a><h3>tp_text_channel_ack_all_pending_messages_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_text_channel_ack_all_pending_messages_finish
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *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>
Finish an asynchronous acknowledgement operation of all messages.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td>a <span class="type">GAsyncResult</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a <span class="type">GError</span> to fill</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if the messages have been acked, <code class="literal">FALSE</code> otherwise.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.15.3</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-set-chat-state-async"></a><h3>tp_text_channel_set_chat_state_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> tp_text_channel_set_chat_state_async
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpChannelChatState" title="enum TpChannelChatState"><span class="type">TpChannelChatState</span></a> state</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>
Set the local state on channel <em class="parameter"><code>self</code></em> to <em class="parameter"><code>state</code></em>.
Once the state has been set, <em class="parameter"><code>callback</code></em> will be called.
You can then call <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-set-chat-state-finish" title="tp_text_channel_set_chat_state_finish ()"><code class="function">tp_text_channel_set_chat_state_finish()</code></a> to get the
result of the operation.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-enums.html#TpChannelChatState" title="enum TpChannelChatState"><span class="type">TpChannelChatState</span></a> to set</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>a callback to call when the chat state has been set</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>data to pass to <em class="parameter"><code>callback</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-set-chat-state-finish"></a><h3>tp_text_channel_set_chat_state_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_text_channel_set_chat_state_finish
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *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>
Completes a call to <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-set-chat-state-async" title="tp_text_channel_set_chat_state_async ()"><code class="function">tp_text_channel_set_chat_state_async()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td>a <span class="type">GAsyncResult</span> passed to the callback for <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-set-chat-state-async" title="tp_text_channel_set_chat_state_async ()"><code class="function">tp_text_channel_set_chat_state_async()</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a <span class="type">GError</span> to fill</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if the chat state has been changed, <code class="literal">FALSE</code> otherwise.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-supports-message-type"></a><h3>tp_text_channel_supports_message_type ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_text_channel_supports_message_type
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpChannelTextMessageType" title="enum TpChannelTextMessageType"><span class="type">TpChannelTextMessageType</span></a> message_type</code></em>);</pre>
<p>
Check if message of type <em class="parameter"><code>message_type</code></em> can be sent on this channel.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>message_type</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-enums.html#TpChannelTextMessageType" title="enum TpChannelTextMessageType"><span class="type">TpChannelTextMessageType</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if message of type <em class="parameter"><code>message_type</code></em> can be sent on <em class="parameter"><code>self</code></em>, <code class="literal">FALSE</code>
otherwise</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.16</p>
</div>
<hr>
<div class="refsect2">
<a name="TP-TEXT-CHANNEL-FEATURE-SMS:CAPS"></a><h3>TP_TEXT_CHANNEL_FEATURE_SMS</h3>
<pre class="programlisting">#define TP_TEXT_CHANNEL_FEATURE_SMS</pre>
<p>
Expands to a call to a function that returns a quark representing the
SMS feature of a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>.
</p>
<p>
When this feature is prepared, the TpTextChannel:is-sms-channel property
will have a meaningful value and will be updated when needed.
</p>
<p>
One can ask for a feature to be prepared using the
<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> function, and waiting for it to callback.
</p>
<p class="since">Since 0.15.1</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-is-sms-channel"></a><h3>tp_text_channel_is_sms_channel ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_text_channel_is_sms_channel (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);</pre>
<p>
Return the <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--is-sms-channel" title='The "is-sms-channel" property'><span class="type">"is-sms-channel"</span></a> property
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the value of <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--is-sms-channel" title='The "is-sms-channel" property'><span class="type">"is-sms-channel"</span></a> property</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.15.1</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-get-sms-flash"></a><h3>tp_text_channel_get_sms_flash ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_text_channel_get_sms_flash (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>);</pre>
<p>
Return the <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--sms-flash" title='The "sms-flash" property'><span class="type">"sms-flash"</span></a> property
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the value of <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel--sms-flash" title='The "sms-flash" property'><span class="type">"sms-flash"</span></a> property</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.15.1</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-get-sms-length-async"></a><h3>tp_text_channel_get_sms_length_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> tp_text_channel_get_sms_length_async
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="TpMessage.html" title="TpMessage"><span class="type">TpMessage</span></a> *message</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>
Starts an async call to get the number of 140 octet chunks required to
send a <span class="type">message</span> via SMS on <span class="type">self</span>, as well as the number of remaining
characters available in the final chunk and, if possible,
an estimate of the cost.
</p>
<p>
Once the request has been satisfied, <em class="parameter"><code>callback</code></em> will be called.
You can then call <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-get-sms-length-finish" title="tp_text_channel_get_sms_length_finish ()"><code class="function">tp_text_channel_get_sms_length_finish()</code></a> to get the
result of the operation.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>a <a class="link" href="TpClientMessage.html" title="TpClientMessage"><span class="type">TpClientMessage</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>a callback to call when the request has been satisfied</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>data to pass to <em class="parameter"><code>callback</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.15.1</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-get-sms-length-finish"></a><h3>tp_text_channel_get_sms_length_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_text_channel_get_sms_length_finish
(<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">GAsyncResult</span> *result</code></em>,
<em class="parameter"><code><span class="type">guint</span> *chunks_required</code></em>,
<em class="parameter"><code><span class="type">gint</span> *remaining_characters</code></em>,
<em class="parameter"><code><span class="type">gint</span> *estimated_cost</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Finishes an async SMS length request.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
<td>a <span class="type">GAsyncResult</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>chunks_required</code></em> :</span></p></td>
<td>if not <code class="literal">NULL</code> used to return
the number of 140 octet chunks required to send the message. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>remaining_characters</code></em> :</span></p></td>
<td>if not <code class="literal">NULL</code> used to return
the number of further characters that can be fit in the final chunk.
A negative value indicates that the message will be truncated by
abs(<em class="parameter"><code>remaining_characters</code></em>).
The value <span class="type">G_MININT32</span> indicates the message will be truncated by
an unknown amount. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>estimated_cost</code></em> :</span></p></td>
<td>if not <code class="literal">NULL</code> used to return
the estimated cost of sending this message.
The currency and scale of this value are the same as the
values of the <a class="link" href="telepathy-glib-connection.html#TpConnection--balance-scale" title='The "balance-scale" property'><span class="type">"balance-scale"</span></a> and
<a class="link" href="telepathy-glib-connection.html#TpConnection--balance-currency" title='The "balance-currency" property'><span class="type">"balance-currency"</span></a> properties.
A value of -1 indicates the cost could not be estimated. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a <span class="type">GError</span> to fill</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if the number of 140 octet chunks required to send
the message has been retrieved, <code class="literal">FALSE</code> otherwise.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.15.1</p>
</div>
<hr>
<div class="refsect2">
<a name="TP-TEXT-CHANNEL-FEATURE-CHAT-STATES:CAPS"></a><h3>TP_TEXT_CHANNEL_FEATURE_CHAT_STATES</h3>
<pre class="programlisting">#define TP_TEXT_CHANNEL_FEATURE_CHAT_STATES</pre>
<p>
Expands to a call to a function that returns a quark representing the
chat states feature on a <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>.
</p>
<p>
When this feature is prepared, <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-get-chat-state" title="tp_text_channel_get_chat_state ()"><code class="function">tp_text_channel_get_chat_state()</code></a> and the
<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel-contact-chat-state-changed" title='The "contact-chat-state-changed" signal'><span class="type">"contact-chat-state-changed"</span></a> signal become useful.
</p>
<p>
One can ask for a feature to be prepared using the
<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> function, and waiting for it to callback.
</p>
<p class="since">Since 0.19.0</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-text-channel-get-chat-state"></a><h3>tp_text_channel_get_chat_state ()</h3>
<pre class="programlisting"><a class="link" href="telepathy-glib-enums.html#TpChannelChatState" title="enum TpChannelChatState"><span class="returnvalue">TpChannelChatState</span></a> tp_text_channel_get_chat_state (<em class="parameter"><code><a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-contact.html#TpContact"><span class="type">TpContact</span></a> *contact</code></em>);</pre>
<p>
Return the chat state for the given contact. If <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>
would return <code class="literal">FALSE</code> for the feature <a class="link" href="telepathy-glib-text-channel.html#TP-TEXT-CHANNEL-FEATURE-CHAT-STATES:CAPS" title="TP_TEXT_CHANNEL_FEATURE_CHAT_STATES"><code class="literal">TP_TEXT_CHANNEL_FEATURE_CHAT_STATES</code></a>,
the result will always be <a class="link" href="telepathy-glib-enums.html#TP-CHANNEL-CHAT-STATE-INACTIVE:CAPS"><code class="literal">TP_CHANNEL_CHAT_STATE_INACTIVE</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a channel</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>contact</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-contact.html#TpContact"><span class="type">TpContact</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the chat state for <em class="parameter"><code>contact</code></em>, or <a class="link" href="telepathy-glib-enums.html#TP-CHANNEL-CHAT-STATE-INACTIVE:CAPS"><code class="literal">TP_CHANNEL_CHAT_STATE_INACTIVE</code></a>
if their chat state is not known</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.19.0</p>
</div>
</div>
<div class="refsect1">
<a name="telepathy-glib-text-channel.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="TpTextChannel--delivery-reporting-support"></a><h3>The <code class="literal">"delivery-reporting-support"</code> property</h3>
<pre class="programlisting"> "delivery-reporting-support" <span class="type">guint</span> : Read</pre>
<p>
A <a class="link" href="telepathy-glib-enums.html#TpDeliveryReportingSupportFlags" title="enum TpDeliveryReportingSupportFlags"><span class="type">TpDeliveryReportingSupportFlags</span></a> indicating features supported
by this channel.
</p>
<p>Default value: 0</p>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="TpTextChannel--is-sms-channel"></a><h3>The <code class="literal">"is-sms-channel"</code> property</h3>
<pre class="programlisting"> "is-sms-channel" <span class="type">gboolean</span> : Read</pre>
<p>
<code class="literal">TRUE</code> if messages sent and received on this channel are transmitted
via SMS.
</p>
<p>
This property is not guaranteed to have a meaningful value until
TP_TEXT_CHANNEL_FEATURE_SMS has been prepared.
</p>
<p>Default value: FALSE</p>
<p class="since">Since 0.15.1</p>
</div>
<hr>
<div class="refsect2">
<a name="TpTextChannel--message-part-support-flags"></a><h3>The <code class="literal">"message-part-support-flags"</code> property</h3>
<pre class="programlisting"> "message-part-support-flags" <span class="type">guint</span> : Read</pre>
<p>
A <a class="link" href="telepathy-glib-enums.html#TpMessagePartSupportFlags" title="enum TpMessagePartSupportFlags"><span class="type">TpMessagePartSupportFlags</span></a> indicating the level of support for
message parts on this channel.
</p>
<p>Default value: 0</p>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="TpTextChannel--message-types"></a><h3>The <code class="literal">"message-types"</code> property</h3>
<pre class="programlisting"> "message-types" <span class="type">GArray_guint_</span>* : Read</pre>
<p>
A <span class="type">GArray</span> containing the <a class="link" href="telepathy-glib-enums.html#TpChannelTextMessageType" title="enum TpChannelTextMessageType"><span class="type">TpChannelTextMessageType</span></a> which may be sent on
this channel.
</p>
<p class="since">Since 0.13.16</p>
</div>
<hr>
<div class="refsect2">
<a name="TpTextChannel--sms-flash"></a><h3>The <code class="literal">"sms-flash"</code> property</h3>
<pre class="programlisting"> "sms-flash" <span class="type">gboolean</span> : Read</pre>
<p>
<code class="literal">TRUE</code> if this channel is exclusively for receiving class 0 SMSes
(and no SMSes can be sent using <a class="link" href="telepathy-glib-text-channel.html#tp-text-channel-send-message-async" title="tp_text_channel_send_message_async ()"><code class="function">tp_text_channel_send_message_async()</code></a>
on this channel). If <code class="literal">FALSE</code>, no incoming class 0 SMSes will appear
on this channel.
</p>
<p>Default value: FALSE</p>
<p class="since">Since 0.15.1</p>
</div>
<hr>
<div class="refsect2">
<a name="TpTextChannel--supported-content-types"></a><h3>The <code class="literal">"supported-content-types"</code> property</h3>
<pre class="programlisting"> "supported-content-types" <span class="type">GStrv</span> : Read</pre>
<p>
A <span class="type">GStrv</span> containing the MIME types supported by this channel, with more
preferred MIME types appearing earlier in the array.
</p>
<p class="since">Since 0.13.10</p>
</div>
</div>
<div class="refsect1">
<a name="telepathy-glib-text-channel.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="TpTextChannel-contact-chat-state-changed"></a><h3>The <code class="literal">"contact-chat-state-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self,
<a class="link" href="telepathy-glib-contact.html#TpContact"><span class="type">TpContact</span></a> *contact,
<span class="type">guint</span> state,
<span class="type">gpointer</span> user_data) : <code class="literal">Has Details</code></pre>
<p>
Emitted when a contact's chat state changes after <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>
has finished preparing features <a class="link" href="telepathy-glib-text-channel.html#TP-TEXT-CHANNEL-FEATURE-CHAT-STATES:CAPS" title="TP_TEXT_CHANNEL_FEATURE_CHAT_STATES"><code class="literal">TP_TEXT_CHANNEL_FEATURE_CHAT_STATES</code></a>,
<a class="link" href="telepathy-glib-channel.html#TP-CHANNEL-FEATURE-GROUP:CAPS" title="TP_CHANNEL_FEATURE_GROUP"><code class="literal">TP_CHANNEL_FEATURE_GROUP</code></a> and <a class="link" href="telepathy-glib-channel.html#TP-CHANNEL-FEATURE-CONTACTS:CAPS" title="TP_CHANNEL_FEATURE_CONTACTS"><code class="literal">TP_CHANNEL_FEATURE_CONTACTS</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a channel</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>contact</code></em> :</span></p></td>
<td>a <a class="link" href="telepathy-glib-contact.html#TpContact"><span class="type">TpContact</span></a> for the local user or another contact</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>the new <a class="link" href="telepathy-glib-enums.html#TpChannelChatState" title="enum TpChannelChatState"><span class="type">TpChannelChatState</span></a> for the contact</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.19.0</p>
</div>
<hr>
<div class="refsect2">
<a name="TpTextChannel-message-received"></a><h3>The <code class="literal">"message-received"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self,
<a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a> *message,
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
<p>
The ::message-received signal is emitted when a new message has been
received on <em class="parameter"><code>self</code></em>.
</p>
<p>
The same <em class="parameter"><code>message</code></em> object will be used by the
<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel-pending-message-removed" title='The "pending-message-removed" signal'><span class="type">"pending-message-removed"</span></a> signal once <em class="parameter"><code>message</code></em> has been
acked so you can simply compare pointers to identify the message.
</p>
<p>
Note that this signal is only fired once the
<a class="link" href="telepathy-glib-text-channel.html#TP-TEXT-CHANNEL-FEATURE-INCOMING-MESSAGES:CAPS" title="TP_TEXT_CHANNEL_FEATURE_INCOMING_MESSAGES"><span class="type">TP_TEXT_CHANNEL_FEATURE_INCOMING_MESSAGES</span></a> has been prepared.
</p>
<p>
It is guaranteed that <em class="parameter"><code>message</code></em>'s <a class="link" href="TpSignalledMessage.html#TpSignalledMessage--sender" title='The "sender" property'><span class="type">"sender"</span></a> has all of the
features previously passed to
<a class="link" href="telepathy-glib-simple-client-factory.html#tp-simple-client-factory-add-contact-features" title="tp_simple_client_factory_add_contact_features ()"><code class="function">tp_simple_client_factory_add_contact_features()</code></a> prepared.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>the <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>a <a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="TpTextChannel-message-sent"></a><h3>The <code class="literal">"message-sent"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self,
<a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a> *message,
<span class="type">guint</span> flags,
<span class="type">gchar</span> *token,
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
<p>
The ::message-sent signal is emitted when <em class="parameter"><code>message</code></em>
has been submitted for sending.
</p>
<p>
It is guaranteed that <em class="parameter"><code>message</code></em>'s <a class="link" href="TpSignalledMessage.html#TpSignalledMessage--sender" title='The "sender" property'><span class="type">"sender"</span></a> has all of the
features previously passed to
<a class="link" href="telepathy-glib-simple-client-factory.html#tp-simple-client-factory-add-contact-features" title="tp_simple_client_factory_add_contact_features ()"><code class="function">tp_simple_client_factory_add_contact_features()</code></a> prepared.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>the <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>a <a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>the <a class="link" href="telepathy-glib-enums.html#TpMessageSendingFlags" title="enum TpMessageSendingFlags"><span class="type">TpMessageSendingFlags</span></a> affecting how the message was sent</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>token</code></em> :</span></p></td>
<td>an opaque token used to match any incoming delivery or failure
reports against this message, or <code class="literal">NULL</code> if the message is not
readily identifiable.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
<hr>
<div class="refsect2">
<a name="TpTextChannel-pending-message-removed"></a><h3>The <code class="literal">"pending-message-removed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a> *self,
<a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a> *message,
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
<p>
The ::pending-message-removed signal is emitted when <em class="parameter"><code>message</code></em>
has been acked and so removed from the pending messages list.
</p>
<p>
Note that this signal is only fired once the
<a class="link" href="telepathy-glib-text-channel.html#TP-TEXT-CHANNEL-FEATURE-INCOMING-MESSAGES:CAPS" title="TP_TEXT_CHANNEL_FEATURE_INCOMING_MESSAGES"><span class="type">TP_TEXT_CHANNEL_FEATURE_INCOMING_MESSAGES</span></a> has been prepared.
</p>
<p>
It is guaranteed that <em class="parameter"><code>message</code></em>'s <a class="link" href="TpSignalledMessage.html#TpSignalledMessage--sender" title='The "sender" property'><span class="type">"sender"</span></a> has all of the
features previously passed to
<a class="link" href="telepathy-glib-simple-client-factory.html#tp-simple-client-factory-add-contact-features" title="tp_simple_client_factory_add_contact_features ()"><code class="function">tp_simple_client_factory_add_contact_features()</code></a> prepared.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>the <a class="link" href="telepathy-glib-text-channel.html#TpTextChannel"><span class="type">TpTextChannel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>a <a class="link" href="TpSignalledMessage.html" title="TpSignalledMessage"><span class="type">TpSignalledMessage</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.13.10</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.19</div>
</body>
</html>
|