/usr/share/doc/libtelepathy-glib-doc/telepathy-glib/telepathy-glib-capabilities.html is in libtelepathy-glib-doc 0.24.1-1.1.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TpCapabilities: telepathy-glib API Reference Manual</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="telepathy-glib-contact.html" title="TpContact">
<link rel="next" href="telepathy-glib-connection-aliasing.html" title="Connection Aliasing interface">
<meta name="generator" content="GTK-Doc V1.24 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#telepathy-glib-capabilities.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#telepathy-glib-capabilities.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span>
<a href="#telepathy-glib-capabilities.properties" class="shortcut">Properties</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch-client.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="telepathy-glib-contact.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="telepathy-glib-connection-aliasing.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="telepathy-glib-capabilities"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="telepathy-glib-capabilities.top_of_page"></a>TpCapabilities</span></h2>
<p>TpCapabilities — object representing capabilities</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="telepathy-glib-capabilities.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">GPtrArray</span> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-get-channel-classes" title="tp_capabilities_get_channel_classes ()">tp_capabilities_get_channel_classes</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GVariant</span> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-dup-channel-classes-variant" title="tp_capabilities_dup_channel_classes_variant ()">tp_capabilities_dup_channel_classes_variant</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-is-specific-to-contact" title="tp_capabilities_is_specific_to_contact ()">tp_capabilities_is_specific_to_contact</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-text-chatrooms" title="tp_capabilities_supports_text_chatrooms ()">tp_capabilities_supports_text_chatrooms</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-text-chats" title="tp_capabilities_supports_text_chats ()">tp_capabilities_supports_text_chats</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-sms" title="tp_capabilities_supports_sms ()">tp_capabilities_supports_sms</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-audio-call" title="tp_capabilities_supports_audio_call ()">tp_capabilities_supports_audio_call</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-audio-video-call" title="tp_capabilities_supports_audio_video_call ()">tp_capabilities_supports_audio_video_call</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-file-transfer" title="tp_capabilities_supports_file_transfer ()">tp_capabilities_supports_file_transfer</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-file-transfer-description" title="tp_capabilities_supports_file_transfer_description ()">tp_capabilities_supports_file_transfer_description</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-file-transfer-initial-offset" title="tp_capabilities_supports_file_transfer_initial_offset ()">tp_capabilities_supports_file_transfer_initial_offset</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-file-transfer-timestamp" title="tp_capabilities_supports_file_transfer_timestamp ()">tp_capabilities_supports_file_transfer_timestamp</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-file-transfer-uri" title="tp_capabilities_supports_file_transfer_uri ()">tp_capabilities_supports_file_transfer_uri</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-stream-tubes" title="tp_capabilities_supports_stream_tubes ()">tp_capabilities_supports_stream_tubes</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-dbus-tubes" title="tp_capabilities_supports_dbus_tubes ()">tp_capabilities_supports_dbus_tubes</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-contact-search" title="tp_capabilities_supports_contact_search ()">tp_capabilities_supports_contact_search</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-room-list" title="tp_capabilities_supports_room_list ()">tp_capabilities_supports_room_list</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="telepathy-glib-capabilities.properties"></a><h2>Properties</h2>
<div class="informaltable"><table border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type"><span class="type">GPtrArray_GValueArray_GHashTable_gchararray+GValue_+GStrv__*</span></td>
<td class="property_name"><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--channel-classes" title="The “channel-classes” property">channel-classes</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type">
<span class="type">GVariant</span> *</td>
<td class="property_name"><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--channel-classes-variant" title="The “channel-classes-variant” property">channel-classes-variant</a></td>
<td class="property_flags">Read</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title="The “contact-specific” property">contact-specific</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
</tbody>
</table></div>
</div>
<a name="TpCapabilities"></a><div class="refsect1">
<a name="telepathy-glib-capabilities.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody><tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities-struct" title="TpCapabilities">TpCapabilities</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="telepathy-glib-capabilities.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> GObject
<span class="lineart">╰──</span> TpCapabilities
</pre>
</div>
<div class="refsect1">
<a name="telepathy-glib-capabilities.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <telepathy-glib/telepathy-glib.h>
</pre>
</div>
<div class="refsect1">
<a name="telepathy-glib-capabilities.description"></a><h2>Description</h2>
<p><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> objects represent the capabilities a <a class="link" href="telepathy-glib-connection.html#TpConnection"><span class="type">TpConnection</span></a>
or a <a class="link" href="telepathy-glib-contact.html#TpContact"><span class="type">TpContact</span></a> supports.</p>
</div>
<div class="refsect1">
<a name="telepathy-glib-capabilities.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="tp-capabilities-get-channel-classes"></a><h3>tp_capabilities_get_channel_classes ()</h3>
<pre class="programlisting"><span class="returnvalue">GPtrArray</span> *
tp_capabilities_get_channel_classes (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);</pre>
<p></p>
<div class="refsect3">
<a name="id-1.4.6.10.2.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.2.6"></a><h4>Returns</h4>
<p> the same <span class="type">GPtrArray</span> as
the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--channel-classes" title="The “channel-classes” property"><span class="type">“channel-classes”</span></a> property. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GHashTable]</span></p>
</div>
<p class="since">Since: 0.11.3</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-dup-channel-classes-variant"></a><h3>tp_capabilities_dup_channel_classes_variant ()</h3>
<pre class="programlisting"><span class="returnvalue">GVariant</span> *
tp_capabilities_dup_channel_classes_variant
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);</pre>
<p>Return the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--channel-classes-variant" title="The “channel-classes-variant” property"><span class="type">“channel-classes-variant”</span></a> property</p>
<div class="refsect3">
<a name="id-1.4.6.10.3.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.3.6"></a><h4>Returns</h4>
<p> the value of the
<a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--channel-classes-variant" title="The “channel-classes-variant” property"><span class="type">“channel-classes-variant”</span></a> property. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: 0.19.0</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-is-specific-to-contact"></a><h3>tp_capabilities_is_specific_to_contact ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_is_specific_to_contact
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);</pre>
<p></p>
<div class="refsect3">
<a name="id-1.4.6.10.4.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.4.6"></a><h4>Returns</h4>
<p> the same <span class="type">gboolean</span> as the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title="The “contact-specific” property"><span class="type">“contact-specific”</span></a> property</p>
</div>
<p class="since">Since: 0.11.3</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-text-chatrooms"></a><h3>tp_capabilities_supports_text_chatrooms ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_text_chatrooms
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);</pre>
<p>If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title="The “contact-specific” property"><span class="type">“contact-specific”</span></a> property is <code class="literal">FALSE</code>, this function
checks if named text chatrooms can be joined by providing a chatroom
identifier, for instance by calling
<a class="link" href="telepathy-glib-account-channel-request.html#tp-account-channel-request-new-text" title="tp_account_channel_request_new_text ()"><code class="function">tp_account_channel_request_new_text()</code></a> followed by
<a class="link" href="telepathy-glib-account-channel-request.html#tp-account-channel-request-set-target-id" title="tp_account_channel_request_set_target_id ()"><code class="function">tp_account_channel_request_set_target_id()</code></a> with <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-ROOM:CAPS"><code class="literal">TP_HANDLE_TYPE_ROOM</code></a>.</p>
<p>If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title="The “contact-specific” property"><span class="type">“contact-specific”</span></a> property is <code class="literal">TRUE</code>, this function
checks if the contact associated with this <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> can be invited
to named text chatrooms.</p>
<p>If the protocol is such that chatrooms can be joined or contacts can be
invited, but only via a more elaborate D-Bus API than normal
(because more information is needed), then this method will return <code class="literal">FALSE</code>.</p>
<div class="refsect3">
<a name="id-1.4.6.10.5.7"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.5.8"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if a channel request containing Text as ChannelType,
HandleTypeRoom as TargetHandleType and a channel identifier can be
expected to work, <code class="literal">FALSE</code> otherwise.</p>
</div>
<p class="since">Since: 0.11.3</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-text-chats"></a><h3>tp_capabilities_supports_text_chats ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_text_chats (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);</pre>
<p>Return whether private text channels can be established by providing
a contact identifier, for instance by calling
<a class="link" href="telepathy-glib-account-channel-request.html#tp-account-channel-request-new-text" title="tp_account_channel_request_new_text ()"><code class="function">tp_account_channel_request_new_text()</code></a> followed by
<a class="link" href="telepathy-glib-account-channel-request.html#tp-account-channel-request-set-target-contact" title="tp_account_channel_request_set_target_contact ()"><code class="function">tp_account_channel_request_set_target_contact()</code></a>.</p>
<p>If the protocol is such that text chats can be established, but only via a
more elaborate D-Bus API than normal (because more information is needed),
then this method will return <code class="literal">FALSE</code>.</p>
<div class="refsect3">
<a name="id-1.4.6.10.6.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.6.7"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if a channel request containing Text as ChannelType,
HandleTypeContact as TargetHandleType and a contact identifier can be
expected to work, <code class="literal">FALSE</code> otherwise.</p>
</div>
<p class="since">Since: 0.11.3</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-sms"></a><h3>tp_capabilities_supports_sms ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_sms (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);</pre>
<p>If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title="The “contact-specific” property"><span class="type">“contact-specific”</span></a> property is <code class="literal">FALSE</code>, this function
checks if SMS text channels can be requested with the connection associated
with this <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a>.</p>
<p>If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title="The “contact-specific” property"><span class="type">“contact-specific”</span></a> property is <code class="literal">TRUE</code>, this function
checks if the contact associated with this <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> supports
SMS text channels.</p>
<div class="refsect3">
<a name="id-1.4.6.10.7.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.7.7"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if a channel request containing Text as ChannelType,
HandleTypeContact as TargetHandleType, a channel identifier and
<a class="link" href="telepathy-glib-interfaces.html#TP-PROP-CHANNEL-INTERFACE-SMS-SMS-CHANNEL:CAPS" title="TP_PROP_CHANNEL_INTERFACE_SMS_SMS_CHANNEL"><span class="type">TP_PROP_CHANNEL_INTERFACE_SMS_SMS_CHANNEL</span></a> set to <code class="literal">TRUE</code> can be
expected to work, <code class="literal">FALSE</code> otherwise.</p>
</div>
<p class="since">Since: 0.19.0</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-audio-call"></a><h3>tp_capabilities_supports_audio_call ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_audio_call (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>);</pre>
<p>Return whether audio calls can be established, for instance by calling
<a class="link" href="telepathy-glib-account-channel-request.html#tp-account-channel-request-new-audio-call" title="tp_account_channel_request_new_audio_call ()"><code class="function">tp_account_channel_request_new_audio_call()</code></a>, followed by
<a class="link" href="telepathy-glib-account-channel-request.html#tp-account-channel-request-set-target-id" title="tp_account_channel_request_set_target_id ()"><code class="function">tp_account_channel_request_set_target_id()</code></a> with <em class="parameter"><code>handle_type</code></em>
.</p>
<p>To check whether requests using
<a class="link" href="telepathy-glib-account-channel-request.html#tp-account-channel-request-set-target-contact" title="tp_account_channel_request_set_target_contact ()"><code class="function">tp_account_channel_request_set_target_contact()</code></a> would work, set
<em class="parameter"><code>handle_type</code></em>
to <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-CONTACT:CAPS"><code class="literal">TP_HANDLE_TYPE_CONTACT</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.6.10.8.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>handle_type</p></td>
<td class="parameter_description"><p>the handle type of the call; <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-CONTACT:CAPS"><span class="type">TP_HANDLE_TYPE_CONTACT</span></a> for
private, <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-ROOM:CAPS"><span class="type">TP_HANDLE_TYPE_ROOM</span></a> or <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-NONE:CAPS"><span class="type">TP_HANDLE_TYPE_NONE</span></a> for conference
(depending on the protocol)</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.8.7"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if a channel request containing Call as ChannelType,
<em class="parameter"><code>handle_type</code></em>
as TargetHandleType, a True value for InitialAudio and an
identifier of the appropriate type can be expected to work, <code class="literal">FALSE</code> otherwise.</p>
</div>
<p class="since">Since: 0.17.6</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-audio-video-call"></a><h3>tp_capabilities_supports_audio_video_call ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_audio_video_call
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>);</pre>
<p>Return whether audio/video calls can be established, for instance by calling
<a class="link" href="telepathy-glib-account-channel-request.html#tp-account-channel-request-new-audio-video-call" title="tp_account_channel_request_new_audio_video_call ()"><code class="function">tp_account_channel_request_new_audio_video_call()</code></a>, followed by
<a class="link" href="telepathy-glib-account-channel-request.html#tp-account-channel-request-set-target-id" title="tp_account_channel_request_set_target_id ()"><code class="function">tp_account_channel_request_set_target_id()</code></a> with <em class="parameter"><code>handle_type</code></em>
.</p>
<p>To check whether requests using
<a class="link" href="telepathy-glib-account-channel-request.html#tp-account-channel-request-set-target-contact" title="tp_account_channel_request_set_target_contact ()"><code class="function">tp_account_channel_request_set_target_contact()</code></a> would work, set
<em class="parameter"><code>handle_type</code></em>
to <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-CONTACT:CAPS"><code class="literal">TP_HANDLE_TYPE_CONTACT</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.6.10.9.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>handle_type</p></td>
<td class="parameter_description"><p>the handle type of the call; <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-CONTACT:CAPS"><span class="type">TP_HANDLE_TYPE_CONTACT</span></a> for
private, <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-ROOM:CAPS"><span class="type">TP_HANDLE_TYPE_ROOM</span></a> or <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-NONE:CAPS"><span class="type">TP_HANDLE_TYPE_NONE</span></a> for conference
(depending on the protocol)</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.9.7"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if a channel request containing Call as ChannelType,
<em class="parameter"><code>handle_type</code></em>
as TargetHandleType, a True value for
InitialAudio/InitialVideo and an identifier of the appropriate type can be
expected to work,
<code class="literal">FALSE</code> otherwise.</p>
</div>
<p class="since">Since: 0.17.6</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-file-transfer"></a><h3>tp_capabilities_supports_file_transfer ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_file_transfer
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);</pre>
<p>Return whether private file transfer can be established by providing
a contact identifier.</p>
<div class="refsect3">
<a name="id-1.4.6.10.10.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.10.6"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if a channel request containing FileTransfer as ChannelType,
HandleTypeContact as TargetHandleType and a contact identifier can be
expected to work, <code class="literal">FALSE</code> otherwise.</p>
</div>
<p class="since">Since: 0.17.6</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-file-transfer-description"></a><h3>tp_capabilities_supports_file_transfer_description ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_file_transfer_description
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);</pre>
<p></p>
<div class="refsect3">
<a name="id-1.4.6.10.11.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.11.6"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if requests as described for
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-file-transfer" title="tp_capabilities_supports_file_transfer ()"><code class="function">tp_capabilities_supports_file_transfer()</code></a> can also specify the outgoing
file's description</p>
</div>
<p class="since">Since: 0.19.0</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-file-transfer-initial-offset"></a><h3>tp_capabilities_supports_file_transfer_initial_offset ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_file_transfer_initial_offset
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);</pre>
<p>Return whether an initial offset other than 0 can be specified on
outgoing file transfers. This can be used to resume partial transfers,
by omitting the part that has already been sent.</p>
<div class="refsect3">
<a name="id-1.4.6.10.12.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.12.6"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if requests as described for
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-file-transfer" title="tp_capabilities_supports_file_transfer ()"><code class="function">tp_capabilities_supports_file_transfer()</code></a> can also specify an
initial offset greater than 0</p>
</div>
<p class="since">Since: 0.19.0</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-file-transfer-timestamp"></a><h3>tp_capabilities_supports_file_transfer_timestamp ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_file_transfer_timestamp
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);</pre>
<p></p>
<div class="refsect3">
<a name="id-1.4.6.10.13.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.13.6"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if requests as described for
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-file-transfer" title="tp_capabilities_supports_file_transfer ()"><code class="function">tp_capabilities_supports_file_transfer()</code></a> can also specify the outgoing
file's timestamp</p>
</div>
<p class="since">Since: 0.19.0</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-file-transfer-uri"></a><h3>tp_capabilities_supports_file_transfer_uri ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_file_transfer_uri
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);</pre>
<p></p>
<div class="refsect3">
<a name="id-1.4.6.10.14.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.14.6"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if requests as described for
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-file-transfer" title="tp_capabilities_supports_file_transfer ()"><code class="function">tp_capabilities_supports_file_transfer()</code></a> can also specify the outgoing
file's URI</p>
</div>
<p class="since">Since: 0.19.0</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-stream-tubes"></a><h3>tp_capabilities_supports_stream_tubes ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_stream_tubes (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *service</code></em>);</pre>
<p>If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title="The “contact-specific” property"><span class="type">“contact-specific”</span></a> property is <code class="literal">TRUE</code>, this function
checks if the contact associated with this <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> supports
stream tubes with <em class="parameter"><code>handle_type</code></em>
as TargetHandleType.
If <em class="parameter"><code>service</code></em>
is not <code class="literal">NULL</code>, it also checks if it supports stream tubes
with <em class="parameter"><code>service</code></em>
as <a class="link" href="telepathy-glib-interfaces.html#TP-PROP-CHANNEL-TYPE-STREAM-TUBE-SERVICE:CAPS" title="TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE"><span class="type">TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE</span></a>.</p>
<p>If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title="The “contact-specific” property"><span class="type">“contact-specific”</span></a> property is <code class="literal">FALSE</code>, this function
checks if the connection supports requesting stream tube channels with
<em class="parameter"><code>handle_type</code></em>
as ChannelType. The <em class="parameter"><code>service</code></em>
argument is unused in this case.</p>
<div class="refsect3">
<a name="id-1.4.6.10.15.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>handle_type</p></td>
<td class="parameter_description"><p>the handle type of the tube (either <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-CONTACT:CAPS"><span class="type">TP_HANDLE_TYPE_CONTACT</span></a>
or <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-ROOM:CAPS"><span class="type">TP_HANDLE_TYPE_ROOM</span></a>)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>service</p></td>
<td class="parameter_description"><p>the service of the tube, or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.15.7"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if the contact or connection supports this type of stream
tubes.</p>
</div>
<p class="since">Since: 0.13.0</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-dbus-tubes"></a><h3>tp_capabilities_supports_dbus_tubes ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_dbus_tubes (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *service_name</code></em>);</pre>
<p>If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title="The “contact-specific” property"><span class="type">“contact-specific”</span></a> property is <code class="literal">TRUE</code>, this function
checks if the contact associated with this <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> supports
D-Bus tubes with <em class="parameter"><code>handle_type</code></em>
as TargetHandleType.
If <em class="parameter"><code>service_name</code></em>
is not <code class="literal">NULL</code>, it also checks if it supports stream tubes
with <em class="parameter"><code>service</code></em>
as <a class="link" href="telepathy-glib-interfaces.html#TP-PROP-CHANNEL-TYPE-DBUS-TUBE-SERVICE-NAME:CAPS" title="TP_PROP_CHANNEL_TYPE_DBUS_TUBE_SERVICE_NAME"><span class="type">TP_PROP_CHANNEL_TYPE_DBUS_TUBE_SERVICE_NAME</span></a>.</p>
<p>If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title="The “contact-specific” property"><span class="type">“contact-specific”</span></a> property is <code class="literal">FALSE</code>, this function
checks if the connection supports requesting D-Bus tube channels with
<em class="parameter"><code>handle_type</code></em>
as ChannelType. The <em class="parameter"><code>service_name</code></em>
argument is unused in
this case.</p>
<div class="refsect3">
<a name="id-1.4.6.10.16.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>handle_type</p></td>
<td class="parameter_description"><p>the handle type of the tube (either <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-CONTACT:CAPS"><span class="type">TP_HANDLE_TYPE_CONTACT</span></a>
or <a class="link" href="telepathy-glib-enums.html#TP-HANDLE-TYPE-ROOM:CAPS"><span class="type">TP_HANDLE_TYPE_ROOM</span></a>)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>service_name</p></td>
<td class="parameter_description"><p>the service name of the tube, or <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.16.7"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if the contact or connection supports this type of D-Bus
tubes.</p>
</div>
<p class="since">Since: 0.13.0</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-contact-search"></a><h3>tp_capabilities_supports_contact_search ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_contact_search
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> *with_limit</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> *with_server</code></em>);</pre>
<p>Return whether this protocol or connection can perform contact
searches. Optionally, also return whether a limited number of
results can be specified, and whether alternative servers can be
searched.</p>
<div class="refsect3">
<a name="id-1.4.6.10.17.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>with_limit</p></td>
<td class="parameter_description"><p> if not <code class="literal">NULL</code>, used to return <code class="literal">TRUE</code> if the limit
parameter to <a class="link" href="telepathy-glib-contact-search.html#tp-contact-search-new-async" title="tp_contact_search_new_async ()"><code class="function">tp_contact_search_new_async()</code></a> and
<a class="link" href="telepathy-glib-contact-search.html#tp-contact-search-reset-async" title="tp_contact_search_reset_async ()"><code class="function">tp_contact_search_reset_async()</code></a> can be nonzero. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>with_server</p></td>
<td class="parameter_description"><p> if not <code class="literal">NULL</code>, used to return <code class="literal">TRUE</code> if the server
parameter to <a class="link" href="telepathy-glib-contact-search.html#tp-contact-search-new-async" title="tp_contact_search_new_async ()"><code class="function">tp_contact_search_new_async()</code></a> and
<a class="link" href="telepathy-glib-contact-search.html#tp-contact-search-reset-async" title="tp_contact_search_reset_async ()"><code class="function">tp_contact_search_reset_async()</code></a> can be non-<code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.17.6"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <a class="link" href="telepathy-glib-contact-search.html#TpContactSearch"><span class="type">TpContactSearch</span></a> can be used.</p>
</div>
<p class="since">Since: 0.13.11</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-capabilities-supports-room-list"></a><h3>tp_capabilities_supports_room_list ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_capabilities_supports_room_list (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> *with_server</code></em>);</pre>
<p>Discovers whether this protocol or connection supports listing rooms.
Specifically, if this function returns <code class="literal">TRUE</code>, a room list channel can be
requested as follows:</p>
<div class="informalexample"><pre class="programlisting">
GHashTable *request;
TpAccountChannelRequest *req;
request = tp_asv_new (
TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,
TP_IFACE_CHANNEL_TYPE_ROOM_LIST,
TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT, TP_HANDLE_TYPE_NONE,
NULL);
req = tp_account_channel_request_new (account, request,
TP_USER_ACTION_TIME_CURRENT_TIME);
tp_account_channel_request_create_and_handle_channel_async (req, NULL,
create_channel_cb, NULL);
g_object_unref (req);
g_hash_table_unref (request);
</pre></div>
<p></p>
<p>If <em class="parameter"><code>with_server</code></em>
is set to <code class="literal">TRUE</code>, a list of rooms on a particular server can
be requested as follows:</p>
<div class="informalexample"><pre class="programlisting">
/\* Same code as above but with request defined using: *\/
request = tp_asv_new (
TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,
TP_IFACE_CHANNEL_TYPE_ROOM_LIST,
TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT, TP_HANDLE_TYPE_NONE,
TP_PROP_CHANNEL_TYPE_ROOM_LIST_SERVER, G_TYPE_STRING,
"characters.shakespeare.lit",
NULL);
</pre></div>
<p></p>
<div class="refsect3">
<a name="id-1.4.6.10.18.10"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>with_server</p></td>
<td class="parameter_description"><p> if not <code class="literal">NULL</code>, used to return <code class="literal">TRUE</code> if the
<a class="link" href="telepathy-glib-interfaces.html#TP-PROP-CHANNEL-TYPE-ROOM-LIST-SERVER:CAPS" title="TP_PROP_CHANNEL_TYPE_ROOM_LIST_SERVER"><span class="type">TP_PROP_CHANNEL_TYPE_ROOM_LIST_SERVER</span></a> property can be defined when
requesting a RoomList channel. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.6.10.18.11"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if a channel request containing RoomList as ChannelType,
HandleTypeNone as TargetHandleType can be expected to work,
<code class="literal">FALSE</code> otherwise.</p>
</div>
<p class="since">Since: 0.13.14</p>
</div>
</div>
<div class="refsect1">
<a name="telepathy-glib-capabilities.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="TpCapabilities-struct"></a><h3>TpCapabilities</h3>
<pre class="programlisting">typedef struct _TpCapabilities TpCapabilities;</pre>
<p>An object representing capabilities a <a class="link" href="telepathy-glib-connection.html#TpConnection"><span class="type">TpConnection</span></a> or <a class="link" href="telepathy-glib-contact.html#TpContact"><span class="type">TpContact</span></a> supports.</p>
<p class="since">Since: 0.11.3</p>
</div>
</div>
<div class="refsect1">
<a name="telepathy-glib-capabilities.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="TpCapabilities--channel-classes"></a><h3>The <code class="literal">“channel-classes”</code> property</h3>
<pre class="programlisting"> “channel-classes” <span class="type">GPtrArray_GValueArray_GHashTable_gchararray+GValue_+GStrv__*</span></pre>
<p>The underlying data structure used by Telepathy to represent the
requests that can succeed.</p>
<p>This can be used by advanced clients to determine whether an unusually
complex request would succeed. See the Telepathy D-Bus API Specification
for details of how to interpret the returned <span class="type">GPtrArray</span> of
<a class="link" href="telepathy-glib-gtypes.html#TP-STRUCT-TYPE-REQUESTABLE-CHANNEL-CLASS:CAPS" title="TP_STRUCT_TYPE_REQUESTABLE_CHANNEL_CLASS"><span class="type">TP_STRUCT_TYPE_REQUESTABLE_CHANNEL_CLASS</span></a>.</p>
<p>The higher-level methods like
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-text-chats" title="tp_capabilities_supports_text_chats ()"><code class="function">tp_capabilities_supports_text_chats()</code></a> are likely to be more useful to
the majority of clients.</p>
<p>Flags: Read / Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
<a name="TpCapabilities--channel-classes-variant"></a><h3>The <code class="literal">“channel-classes-variant”</code> property</h3>
<pre class="programlisting"> “channel-classes-variant” <span class="type">GVariant</span> *</pre>
<p>The underlying data structure used by Telepathy to represent the
requests that can succeed.</p>
<p>This can be used by advanced clients to determine whether an unusually
complex request would succeed. See the Telepathy D-Bus API Specification
for details of how to interpret the returned <span class="type">GVariant</span> of type
a(a{sv}as).</p>
<p>The higher-level methods like
<a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-text-chats" title="tp_capabilities_supports_text_chats ()"><code class="function">tp_capabilities_supports_text_chats()</code></a> are likely to be more useful to
the majority of clients.</p>
<p>Flags: Read</p>
<p>Allowed values: GVariant<a(a{sv}as)></p>
<p>Default value: NULL</p>
<p class="since">Since: 0.19.0</p>
</div>
<hr>
<div class="refsect2">
<a name="TpCapabilities--contact-specific"></a><h3>The <code class="literal">“contact-specific”</code> property</h3>
<pre class="programlisting"> “contact-specific” <span class="type">gboolean</span></pre>
<p>Whether this object accurately describes the capabilities of a particular
contact, or if it's only a guess based on the capabilities of the
underlying connection.</p>
<p>Flags: Read / Write / Construct Only</p>
<p>Default value: FALSE</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.24</div>
</body>
</html>
|