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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TpBaseRoomConfig: telepathy-glib API Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="telepathy-glib API Reference Manual">
<link rel="up" href="ch-service-base.html" title="Service-side implementation">
<link rel="prev" href="telepathy-glib-TpPropertiesMixin.html" title="TpPropertiesMixin">
<link rel="next" href="telepathy-glib-TpGroupMixin.html" title="TpGroupMixin">
<meta name="generator" content="GTK-Doc V1.32 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#TpBaseRoomConfig.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#TpBaseRoomConfig.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span>
<a href="#TpBaseRoomConfig.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-service-base.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="telepathy-glib-TpPropertiesMixin.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="telepathy-glib-TpGroupMixin.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="TpBaseRoomConfig"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="TpBaseRoomConfig.top_of_page"></a>TpBaseRoomConfig</span></h2>
<p>TpBaseRoomConfig — implements the RoomConfig interface for chat rooms.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="TpBaseRoomConfig.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfigUpdateAsync" title="TpBaseRoomConfigUpdateAsync ()">*TpBaseRoomConfigUpdateAsync</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfigUpdateFinish" title="TpBaseRoomConfigUpdateFinish ()">*TpBaseRoomConfigUpdateFinish</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-register-class" title="tp_base_room_config_register_class ()">tp_base_room_config_register_class</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-iface-init" title="tp_base_room_config_iface_init ()">tp_base_room_config_iface_init</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="TpBaseChannel.html" title="TpBaseChannel"><span class="returnvalue">TpBaseChannel</span></a> *
</td>
<td class="function_name">
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-dup-channel" title="tp_base_room_config_dup_channel ()">tp_base_room_config_dup_channel</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-set-can-update-configuration" title="tp_base_room_config_set_can_update_configuration ()">tp_base_room_config_set_can_update_configuration</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-set-property-mutable" title="tp_base_room_config_set_property_mutable ()">tp_base_room_config_set_property_mutable</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-emit-properties-changed" title="tp_base_room_config_emit_properties_changed ()">tp_base_room_config_emit_properties_changed</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-set-retrieved" title="tp_base_room_config_set_retrieved ()">tp_base_room_config_set_retrieved</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="TpBaseRoomConfig.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--anonymous" title="The “anonymous” property">anonymous</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--can-update-configuration" title="The “can-update-configuration” property">can-update-configuration</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a class="link" href="TpBaseChannel.html" title="TpBaseChannel"><span class="type">TpBaseChannel</span></a> *</td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--channel" title="The “channel” property">channel</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--configuration-retrieved" title="The “configuration-retrieved” property">configuration-retrieved</a></td>
<td class="property_flags">Read</td>
</tr>
<tr>
<td class="property_type">
<span class="type">gchar</span> *</td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--description" title="The “description” property">description</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--invite-only" title="The “invite-only” property">invite-only</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">guint</span></td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--limit" title="The “limit” property">limit</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--moderated" title="The “moderated” property">moderated</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">GStrv</span></td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--mutable-properties" title="The “mutable-properties” property">mutable-properties</a></td>
<td class="property_flags">Read</td>
</tr>
<tr>
<td class="property_type">
<span class="type">gchar</span> *</td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--password" title="The “password” property">password</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<span class="type">gchar</span> *</td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--password-hint" title="The “password-hint” property">password-hint</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--password-protected" title="The “password-protected” property">password-protected</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--persistent" title="The “persistent” property">persistent</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--private" title="The “private” property">private</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<span class="type">gchar</span> *</td>
<td class="property_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--title" title="The “title” property">title</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="TpBaseRoomConfig.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig-struct" title="struct TpBaseRoomConfig">TpBaseRoomConfig</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfigClass" title="struct TpBaseRoomConfigClass">TpBaseRoomConfigClass</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfigProperty" title="enum TpBaseRoomConfigProperty">TpBaseRoomConfigProperty</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="TpBaseRoomConfig.html#TP-TYPE-BASE-ROOM-CONFIG-PROPERTY:CAPS" title="TP_TYPE_BASE_ROOM_CONFIG_PROPERTY">TP_TYPE_BASE_ROOM_CONFIG_PROPERTY</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="TpBaseRoomConfig.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GEnum</a>
<span class="lineart">╰──</span> TpBaseRoomConfigProperty
GObject
<span class="lineart">╰──</span> TpBaseRoomConfig
</pre>
</div>
<div class="refsect1">
<a name="TpBaseRoomConfig.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <telepathy-glib/telepathy-glib.h>
</pre>
</div>
<div class="refsect1">
<a name="TpBaseRoomConfig.description"></a><h2>Description</h2>
<p>This class implements the <a class="link" href="telepathy-glib-svc-channel-room.html#TpSvcChannelInterfaceRoomConfig"><span class="type">TpSvcChannelInterfaceRoomConfig</span></a> interface on
multi-user chat room channels. CMs are expected to subclass this base class
to implement the protocol-specific details of changing room configuration.
Then, in the connection manager's subclass of <a class="link" href="TpBaseChannel.html" title="TpBaseChannel"><span class="type">TpBaseChannel</span></a> for multi-user
chats:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
<p>in <span class="type">G_DEFINE_TYPE_WITH_CODE</span>, implement
<span class="type">TP_TYPE_SVC_CHANNEL_INTERFACE_ROOM_CONFIG</span> using
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-iface-init" title="tp_base_room_config_iface_init ()"><code class="function">tp_base_room_config_iface_init()</code></a>:</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="n">G_DEFINE_TYPE_WITH_CODE</span> <span class="p">(</span><span class="n">MyMucChannel</span><span class="p">,</span> <span class="n">my_muc_channel</span><span class="p">,</span>
<span class="n">TP_TYPE_BASE_CHANNEL</span><span class="p">,</span>
<span class="c1">// ...</span>
<span class="n">G_IMPLEMENT_INTERFACE</span> <span class="p">(</span><span class="n">TP_TYPE_SVC_CHANNEL_INTERFACE_ROOM_CONFIG</span><span class="p">,</span>
<span class="n">tp_base_room_config_iface_init</span><span class="p">)</span>
<span class="c1">// ...</span>
<span class="p">)</span></pre></td>
</tr>
</tbody>
</table>
</div>
</li>
<li class="listitem">
<p>in the <code class="function">class_init</code> method, call
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-register-class" title="tp_base_room_config_register_class ()"><code class="function">tp_base_room_config_register_class()</code></a>:</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="k">static</span> <span class="kt">void</span>
<span class="n">my_muc_channel_class_init</span> <span class="p">(</span><span class="n">MyMucChannelClass</span> <span class="o">*</span><span class="n">klass</span><span class="p">)</span>
<span class="p">{</span>
<span class="c1">// ...</span>
<span class="n">tp_base_room_config_register_class</span> <span class="p">(</span><span class="n">TP_BASE_CHANNEL_CLASS</span> <span class="p">(</span><span class="n">klass</span><span class="p">));</span>
<span class="c1">// ...</span>
<span class="p">}</span></pre></td>
</tr>
</tbody>
</table>
</div>
</li>
<li class="listitem"><p>include <a class="link" href="telepathy-glib-interfaces.html#TP-IFACE-CHANNEL-INTERFACE-ROOM-CONFIG:CAPS" title="TP_IFACE_CHANNEL_INTERFACE_ROOM_CONFIG"><code class="literal">TP_IFACE_CHANNEL_INTERFACE_ROOM_CONFIG</code></a> in the return of
<a class="link" href="TpBaseChannel.html#TpBaseChannelClass.get-interfaces"><span class="type">TpBaseChannelClass.get_interfaces</span></a>.</p></li>
</ul></div>
<p>If this protocol supports modifying some aspects of the room's
configuration, the subclass should call
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-set-property-mutable" title="tp_base_room_config_set_property_mutable ()"><code class="function">tp_base_room_config_set_property_mutable()</code></a> to mark appropriate properties as
potentially-modifiable, call
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-set-can-update-configuration" title="tp_base_room_config_set_can_update_configuration ()"><code class="function">tp_base_room_config_set_can_update_configuration()</code></a> to indicate whether the
local user has permission to modify those properties at present, and
implement <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfigClass.update-async"><span class="type">TpBaseRoomConfigClass.update_async</span></a>. When updates to properties
are received from the network, they should be updated on this object using
<code class="function">g_object_set()</code>:</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3
4
5</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="n">g_object_self</span> <span class="p">(</span><span class="n">room_config</span><span class="p">,</span>
<span class="s">"description"</span><span class="p">,</span> <span class="s">"A place to bury strangers"</span><span class="p">,</span>
<span class="s">"private"</span><span class="p">,</span> <span class="n">TRUE</span><span class="p">,</span>
<span class="nb">NULL</span><span class="p">);</span>
<span class="n">tp_base_room_config_emit_properties_changed</span> <span class="p">(</span><span class="n">room_config</span><span class="p">);</span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>On joining the room, once the entire room configuration has been retrieved
from the network, the CM should call <a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-set-retrieved" title="tp_base_room_config_set_retrieved ()"><code class="function">tp_base_room_config_set_retrieved()</code></a>.</p>
</div>
<div class="refsect1">
<a name="TpBaseRoomConfig.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="TpBaseRoomConfigUpdateAsync"></a><h3>TpBaseRoomConfigUpdateAsync ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
<span class="c_punctuation">(</span>*TpBaseRoomConfigUpdateAsync<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">GHashTable</span> *validated_properties</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>Signature for a function to begin a network request to update the room
configuration. It is guaranteed that <em class="parameter"><code>validated_properties</code></em>
will only contain
properties which were marked as mutable when the D-Bus method invocation
arrived.</p>
<p>Note that <a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a> will take care of applying the property updates
to itself if the operation succeeds.</p>
<div class="refsect3">
<a name="TpBaseRoomConfigUpdateAsync.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>validated_properties</p></td>
<td class="parameter_description"><p>a mapping from <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfigProperty" title="enum TpBaseRoomConfigProperty"><span class="type">TpBaseRoomConfigProperty</span></a> to <span class="type">GValue</span>,
whose types have already been validated. The function should not modify
this hash table.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>a callback to call on success, failure or disconnection</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data for the callback</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfigUpdateFinish"></a><h3>TpBaseRoomConfigUpdateFinish ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
<span class="c_punctuation">(</span>*TpBaseRoomConfigUpdateFinish<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</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>Signature for a function to complete a call to a corresponding
implementation of <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfigUpdateAsync" title="TpBaseRoomConfigUpdateAsync ()"><span class="type">TpBaseRoomConfigUpdateAsync</span></a>.</p>
<div class="refsect3">
<a name="TpBaseRoomConfigUpdateFinish.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>result</p></td>
<td class="parameter_description"><p>the result passed to the callback</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>used to return an error if <code class="literal">FALSE</code> is returned.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="TpBaseRoomConfigUpdateFinish.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if the room configuration update was accepted by the server;
<code class="literal">FALSE</code>, with <em class="parameter"><code>error</code></em>
set, otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-base-room-config-register-class"></a><h3>tp_base_room_config_register_class ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_base_room_config_register_class (<em class="parameter"><code><a class="link" href="TpBaseChannel.html#TpBaseChannelClass" title="struct TpBaseChannelClass"><span class="type">TpBaseChannelClass</span></a> *base_channel_class</code></em>);</pre>
<p>Registers that D-Bus properties for the RoomConfig1 interface should be
handled by a <a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a> object associated with instances of
<em class="parameter"><code>base_channel_class</code></em>
.</p>
<p><em class="parameter"><code>base_channel_class</code></em>
must implement <span class="type">TP_SVC_CHANNEL_INTERFACE_ROOM_CONFIG</span>
using <a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-iface-init" title="tp_base_room_config_iface_init ()"><code class="function">tp_base_room_config_iface_init()</code></a>, and instances of <em class="parameter"><code>base_channel_class</code></em>
must construct an instance of <a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a>, passing themself as
<a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--channel" title="The “channel” property"><span class="type">“channel”</span></a>.</p>
<div class="refsect3">
<a name="tp-base-room-config-register-class.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>base_channel_class</p></td>
<td class="parameter_description"><p>the class structure for a subclass of <a class="link" href="TpBaseChannel.html" title="TpBaseChannel"><span class="type">TpBaseChannel</span></a>
which uses this object to implement <span class="type">TP_SVC_CHANNEL_INTERFACE_ROOM_CONFIG</span></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-base-room-config-iface-init"></a><h3>tp_base_room_config_iface_init ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_base_room_config_iface_init (<em class="parameter"><code><span class="type">gpointer</span> g_iface</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> iface_data</code></em>);</pre>
<p>Pass this as the second argument to <code class="function">G_IMPLEMENT_INTERFACE()</code> when defining a
<a class="link" href="TpBaseChannel.html" title="TpBaseChannel"><span class="type">TpBaseChannel</span></a> subclass to declare that TP_SVC_CHANNEL_INTERFACE_ROOM_CONFIG
is implemented using this class. The <a class="link" href="TpBaseChannel.html" title="TpBaseChannel"><span class="type">TpBaseChannel</span></a> subclass must also call
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-register-class" title="tp_base_room_config_register_class ()"><code class="function">tp_base_room_config_register_class()</code></a> in its class_init function, and
construct a <a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a> object for each instance.</p>
<div class="refsect3">
<a name="tp-base-room-config-iface-init.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>g_iface</p></td>
<td class="parameter_description"><p>a pointer to a <a class="link" href="telepathy-glib-svc-channel-room.html#TpSvcChannelInterfaceRoomConfigClass" title="TpSvcChannelInterfaceRoomConfigClass"><span class="type">TpSvcChannelInterfaceRoomConfigClass</span></a> structure</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>iface_data</p></td>
<td class="parameter_description"><p>ignored</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-base-room-config-dup-channel"></a><h3>tp_base_room_config_dup_channel ()</h3>
<pre class="programlisting"><a class="link" href="TpBaseChannel.html" title="TpBaseChannel"><span class="returnvalue">TpBaseChannel</span></a> *
tp_base_room_config_dup_channel (<em class="parameter"><code><a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a> *self</code></em>);</pre>
<p>Returns the channel to which <em class="parameter"><code>self</code></em>
is attached.</p>
<div class="refsect3">
<a name="tp-base-room-config-dup-channel.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="TpBaseChannel.html" title="TpBaseChannel"><span class="type">TpBaseChannel</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-base-room-config-dup-channel.returns"></a><h4>Returns</h4>
<p>the <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--channel" title="The “channel” property"><span class="type">“channel”</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>
</div>
<hr>
<div class="refsect2">
<a name="tp-base-room-config-set-can-update-configuration"></a><h3>tp_base_room_config_set_can_update_configuration ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_base_room_config_set_can_update_configuration
(<em class="parameter"><code><a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a> *self</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> can_update_configuration</code></em>);</pre>
<p>Specify whether or not the local user currently has permission to modify the
room configuration.</p>
<p>Changes made by calling this function are not signalled over D-Bus until
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-emit-properties-changed" title="tp_base_room_config_emit_properties_changed ()"><code class="function">tp_base_room_config_emit_properties_changed()</code></a> is next called.</p>
<div class="refsect3">
<a name="tp-base-room-config-set-can-update-configuration.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>can_update_configuration</p></td>
<td class="parameter_description"><p><code class="literal">TRUE</code> if the local user has permission to modify
properties marked as mutable.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-base-room-config-set-property-mutable"></a><h3>tp_base_room_config_set_property_mutable ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_base_room_config_set_property_mutable
(<em class="parameter"><code><a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfigProperty" title="enum TpBaseRoomConfigProperty"><span class="type">TpBaseRoomConfigProperty</span></a> property_id</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> is_mutable</code></em>);</pre>
<p>Specify whether it is possible for room members to modify the value of
<em class="parameter"><code>property_id</code></em>
(possibly dependent on them having channel-operator powers), or
whether <em class="parameter"><code>property_id</code></em>
's value is an intrinsic fact about the protocol.</p>
<p>For example, on IRC it is impossible to configure a channel to hide the
identities of participants from others, so <a class="link" href="TpBaseRoomConfig.html#TP-BASE-ROOM-CONFIG-ANONYMOUS:CAPS"><code class="literal">TP_BASE_ROOM_CONFIG_ANONYMOUS</code></a>
should be marked as immutable on IRC; whereas channel operators can mark
rooms as invite-only, so <a class="link" href="TpBaseRoomConfig.html#TP-BASE-ROOM-CONFIG-INVITE-ONLY:CAPS"><code class="literal">TP_BASE_ROOM_CONFIG_INVITE_ONLY</code></a> should be marked as
mutable on IRC.</p>
<p>By default, all properties are considered immutable.</p>
<p>Call <a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-set-can-update-configuration" title="tp_base_room_config_set_can_update_configuration ()"><code class="function">tp_base_room_config_set_can_update_configuration()</code></a> to specify whether or
not it is currently possible for the local user to alter properties marked
as mutable.</p>
<p>Changes made by calling this function are not signalled over D-Bus until
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-emit-properties-changed" title="tp_base_room_config_emit_properties_changed ()"><code class="function">tp_base_room_config_emit_properties_changed()</code></a> is next called.</p>
<div class="refsect3">
<a name="tp-base-room-config-set-property-mutable.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>property_id</p></td>
<td class="parameter_description"><p>a property identifier (not including
<a class="link" href="TpBaseRoomConfig.html#TP-NUM-BASE-ROOM-CONFIG-PROPERTIES:CAPS"><code class="literal">TP_NUM_BASE_ROOM_CONFIG_PROPERTIES</code></a>)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>is_mutable</p></td>
<td class="parameter_description"><p><code class="literal">TRUE</code> if it is possible for Telepathy clients to modify</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>property_id when #TpBaseRoomConfig</p></td>
<td class="parameter_description"><p>can-update-configuration is <code class="literal">TRUE</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-base-room-config-emit-properties-changed"></a><h3>tp_base_room_config_emit_properties_changed ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_base_room_config_emit_properties_changed
(<em class="parameter"><code><a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a> *self</code></em>);</pre>
<p>Signal the new values of properties which have been modified since the last
call to this method, if any. This includes changes made by calling
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-set-can-update-configuration" title="tp_base_room_config_set_can_update_configuration ()"><code class="function">tp_base_room_config_set_can_update_configuration()</code></a> and
<a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-set-property-mutable" title="tp_base_room_config_set_property_mutable ()"><code class="function">tp_base_room_config_set_property_mutable()</code></a>, as well as changes to any of the
(writeable) GObject properties on this object.</p>
<div class="refsect3">
<a name="tp-base-room-config-emit-properties-changed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-base-room-config-set-retrieved"></a><h3>tp_base_room_config_set_retrieved ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_base_room_config_set_retrieved (<em class="parameter"><code><a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a> *self</code></em>);</pre>
<p>Signal that the room's configuration has been retrieved, as well as
signalling any queued property changes. This function should be called once
all properties have been set to meaningful values.</p>
<p>It is safe to call this function more than once; second and subsequent calls
are equivalent to calling <a class="link" href="TpBaseRoomConfig.html#tp-base-room-config-emit-properties-changed" title="tp_base_room_config_emit_properties_changed ()"><code class="function">tp_base_room_config_emit_properties_changed()</code></a>.</p>
<div class="refsect3">
<a name="tp-base-room-config-set-retrieved.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>a <a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="TpBaseRoomConfig.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="TpBaseRoomConfig-struct"></a><h3>struct TpBaseRoomConfig</h3>
<pre class="programlisting">struct TpBaseRoomConfig;</pre>
<p>An object representing the configuration of a multi-user chat room.</p>
<p>There are no public fields.</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfigClass"></a><h3>struct TpBaseRoomConfigClass</h3>
<pre class="programlisting">struct TpBaseRoomConfigClass {
TpBaseRoomConfigUpdateAsync update_async;
TpBaseRoomConfigUpdateFinish update_finish;
};
</pre>
<p>Class structure for <a class="link" href="TpBaseRoomConfig.html" title="TpBaseRoomConfig"><span class="type">TpBaseRoomConfig</span></a>. By default, <em class="parameter"><code>update_async</code></em>
is <code class="literal">NULL</code>,
indicating that updating room configuration is not implemented; subclasses
should override it if they wish to support updating room configuration.</p>
<div class="refsect3">
<a name="TpBaseRoomConfigClass.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfigUpdateAsync" title="TpBaseRoomConfigUpdateAsync ()"><span class="type">TpBaseRoomConfigUpdateAsync</span></a> <em class="structfield"><code><a name="TpBaseRoomConfigClass.update-async"></a>update_async</code></em>;</p></td>
<td class="struct_member_description"><p>begins a request to modify the room's configuration.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfigUpdateFinish" title="TpBaseRoomConfigUpdateFinish ()"><span class="type">TpBaseRoomConfigUpdateFinish</span></a> <em class="structfield"><code><a name="TpBaseRoomConfigClass.update-finish"></a>update_finish</code></em>;</p></td>
<td class="struct_member_description"><p>completes a call to <em class="parameter"><code>update_async</code></em>
; the default
implementation may be used if <em class="parameter"><code>update_async</code></em>
uses <span class="type">GSimpleAsyncResult</span></p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfigProperty"></a><h3>enum TpBaseRoomConfigProperty</h3>
<p>An enumeration of room configuration fields, corresponding to GObject
properties and, in turn, to D-Bus properties.</p>
<div class="refsect3">
<a name="TpBaseRoomConfigProperty.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="TP-BASE-ROOM-CONFIG-ANONYMOUS:CAPS"></a>TP_BASE_ROOM_CONFIG_ANONYMOUS</p></td>
<td class="enum_member_description">
<p>corresponds to <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--anonymous" title="The “anonymous” property"><span class="type">“anonymous”</span></a></p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-BASE-ROOM-CONFIG-INVITE-ONLY:CAPS"></a>TP_BASE_ROOM_CONFIG_INVITE_ONLY</p></td>
<td class="enum_member_description">
<p>corresponds to <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--invite-only" title="The “invite-only” property"><span class="type">“invite-only”</span></a></p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-BASE-ROOM-CONFIG-LIMIT:CAPS"></a>TP_BASE_ROOM_CONFIG_LIMIT</p></td>
<td class="enum_member_description">
<p>corresponds to <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--limit" title="The “limit” property"><span class="type">“limit”</span></a></p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-BASE-ROOM-CONFIG-MODERATED:CAPS"></a>TP_BASE_ROOM_CONFIG_MODERATED</p></td>
<td class="enum_member_description">
<p>corresponds to <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--moderated" title="The “moderated” property"><span class="type">“moderated”</span></a></p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-BASE-ROOM-CONFIG-TITLE:CAPS"></a>TP_BASE_ROOM_CONFIG_TITLE</p></td>
<td class="enum_member_description">
<p>corresponds to <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--title" title="The “title” property"><span class="type">“title”</span></a></p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-BASE-ROOM-CONFIG-DESCRIPTION:CAPS"></a>TP_BASE_ROOM_CONFIG_DESCRIPTION</p></td>
<td class="enum_member_description">
<p>corresponds to <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--description" title="The “description” property"><span class="type">“description”</span></a></p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-BASE-ROOM-CONFIG-PERSISTENT:CAPS"></a>TP_BASE_ROOM_CONFIG_PERSISTENT</p></td>
<td class="enum_member_description">
<p>corresponds to <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--persistent" title="The “persistent” property"><span class="type">“persistent”</span></a></p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-BASE-ROOM-CONFIG-PRIVATE:CAPS"></a>TP_BASE_ROOM_CONFIG_PRIVATE</p></td>
<td class="enum_member_description">
<p>corresponds to <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--private" title="The “private” property"><span class="type">“private”</span></a></p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-BASE-ROOM-CONFIG-PASSWORD-PROTECTED:CAPS"></a>TP_BASE_ROOM_CONFIG_PASSWORD_PROTECTED</p></td>
<td class="enum_member_description">
<p>corresponds to <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--password-protected" title="The “password-protected” property"><span class="type">“password-protected”</span></a></p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-BASE-ROOM-CONFIG-PASSWORD:CAPS"></a>TP_BASE_ROOM_CONFIG_PASSWORD</p></td>
<td class="enum_member_description">
<p>corresponds to <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--password" title="The “password” property"><span class="type">“password”</span></a></p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-BASE-ROOM-CONFIG-PASSWORD-HINT:CAPS"></a>TP_BASE_ROOM_CONFIG_PASSWORD_HINT</p></td>
<td class="enum_member_description">
<p>corresponds to <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfig--password-hint" title="The “password-hint” property"><span class="type">“password-hint”</span></a></p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-NUM-BASE-ROOM-CONFIG-PROPERTIES:CAPS"></a>TP_NUM_BASE_ROOM_CONFIG_PROPERTIES</p></td>
<td class="enum_member_description">
<p>the number of configuration properties
currently defined.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="TP-TYPE-BASE-ROOM-CONFIG-PROPERTY:CAPS"></a><h3>TP_TYPE_BASE_ROOM_CONFIG_PROPERTY</h3>
<pre class="programlisting">#define TP_TYPE_BASE_ROOM_CONFIG_PROPERTY (tp_base_room_config_property_get_type ())
</pre>
<p>The <span class="type">GEnumClass</span> type of <a class="link" href="TpBaseRoomConfig.html#TpBaseRoomConfigProperty" title="enum TpBaseRoomConfigProperty"><span class="type">TpBaseRoomConfigProperty</span></a>. (The nicknames are chosen
to correspond to unqualified D-Bus property names.)</p>
</div>
</div>
<div class="refsect1">
<a name="TpBaseRoomConfig.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="TpBaseRoomConfig--anonymous"></a><h3>The <code class="literal">“anonymous”</code> property</h3>
<pre class="programlisting"> “anonymous” <span class="type">gboolean</span></pre>
<p>True if people may join the channel without other members being made aware of their identity.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--can-update-configuration"></a><h3>The <code class="literal">“can-update-configuration”</code> property</h3>
<pre class="programlisting"> “can-update-configuration” <span class="type">gboolean</span></pre>
<p>If True, the user may call UpdateConfiguration to change the values of the properties listed in MutableProperties.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--channel"></a><h3>The <code class="literal">“channel”</code> property</h3>
<pre class="programlisting"> “channel” <a class="link" href="TpBaseChannel.html" title="TpBaseChannel"><span class="type">TpBaseChannel</span></a> *</pre>
<p>Parent TpBaseChannel.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read / Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--configuration-retrieved"></a><h3>The <code class="literal">“configuration-retrieved”</code> property</h3>
<pre class="programlisting"> “configuration-retrieved” <span class="type">gboolean</span></pre>
<p>Becomes True once the room config has been fetched from the network.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--description"></a><h3>The <code class="literal">“description”</code> property</h3>
<pre class="programlisting"> “description” <span class="type">gchar</span> *</pre>
<p>A human-readable description of the channel's overall purpose; if any.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read / Write</p>
<p>Default value: ""</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--invite-only"></a><h3>The <code class="literal">“invite-only”</code> property</h3>
<pre class="programlisting"> “invite-only” <span class="type">gboolean</span></pre>
<p>True if people may not join the channel until they have been invited.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--limit"></a><h3>The <code class="literal">“limit”</code> property</h3>
<pre class="programlisting"> “limit” <span class="type">guint</span></pre>
<p>The limit to the number of members; or 0 if there is no limit.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read / Write</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--moderated"></a><h3>The <code class="literal">“moderated”</code> property</h3>
<pre class="programlisting"> “moderated” <span class="type">gboolean</span></pre>
<p>True if channel membership is not sufficient to allow participation.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--mutable-properties"></a><h3>The <code class="literal">“mutable-properties”</code> property</h3>
<pre class="programlisting"> “mutable-properties” <span class="type">GStrv</span></pre>
<p>A list of (unqualified) property names on this interface which may be modified using UpdateConfiguration (if CanUpdateConfiguration is True). Properties not listed here cannot be modified.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--password"></a><h3>The <code class="literal">“password”</code> property</h3>
<pre class="programlisting"> “password” <span class="type">gchar</span> *</pre>
<p>If PasswordProtected is True, the password required to enter the channel, if known. If the password is unknown, or PasswordProtected is False, the empty string.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read / Write</p>
<p>Default value: ""</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--password-hint"></a><h3>The <code class="literal">“password-hint”</code> property</h3>
<pre class="programlisting"> “password-hint” <span class="type">gchar</span> *</pre>
<p>If PasswordProtected is True, a hint for the password. If the passwordpassword is unknown, or PasswordProtected is False, the empty string.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read / Write</p>
<p>Default value: ""</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--password-protected"></a><h3>The <code class="literal">“password-protected”</code> property</h3>
<pre class="programlisting"> “password-protected” <span class="type">gboolean</span></pre>
<p>True if contacts joining this channel must provide a password to be granted entry.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--persistent"></a><h3>The <code class="literal">“persistent”</code> property</h3>
<pre class="programlisting"> “persistent” <span class="type">gboolean</span></pre>
<p>True if the channel will remain in existence on the server after all members have left it.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--private"></a><h3>The <code class="literal">“private”</code> property</h3>
<pre class="programlisting"> “private” <span class="type">gboolean</span></pre>
<p>True if the channel is not visible to non-members.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="TpBaseRoomConfig--title"></a><h3>The <code class="literal">“title”</code> property</h3>
<pre class="programlisting"> “title” <span class="type">gchar</span> *</pre>
<p>A human-visible name for the channel, if it differs from Room.DRAFT.RoomName; the empty string, otherwise.</p>
<p>Owner: TpBaseRoomConfig</p>
<p>Flags: Read / Write</p>
<p>Default value: ""</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>
|