1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TpDBusPropertiesMixin: 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-TpContactsMixin.html" title="TpContactsMixin">
<link rel="next" href="TpExportableChannel.html" title="TpExportableChannel">
<meta name="generator" content="GTK-Doc V1.32 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#telepathy-glib-dbus-properties-mixin.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#telepathy-glib-dbus-properties-mixin.object-hierarchy" class="shortcut">Object Hierarchy</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-TpContactsMixin.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="TpExportableChannel.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="telepathy-glib-dbus-properties-mixin"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="telepathy-glib-dbus-properties-mixin.top_of_page"></a>TpDBusPropertiesMixin</span></h2>
<p>TpDBusPropertiesMixin — a mixin implementation of the DBus.Properties interface</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="telepathy-glib-dbus-properties-mixin.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">
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-svc-interface-set-dbus-properties-info" title="tp_svc_interface_set_dbus_properties_info ()">tp_svc_interface_set_dbus_properties_info</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinIfaceInfo" title="TpDBusPropertiesMixinIfaceInfo"><span class="returnvalue">TpDBusPropertiesMixinIfaceInfo</span></a> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-svc-interface-get-dbus-properties-info" title="tp_svc_interface_get_dbus_properties_info ()">tp_svc_interface_get_dbus_properties_info</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinGetter" title="TpDBusPropertiesMixinGetter ()">*TpDBusPropertiesMixinGetter</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="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-getter-gobject-properties" title="tp_dbus_properties_mixin_getter_gobject_properties ()">tp_dbus_properties_mixin_getter_gobject_properties</a> <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="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinSetter" title="TpDBusPropertiesMixinSetter ()">*TpDBusPropertiesMixinSetter</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-setter-gobject-properties" title="tp_dbus_properties_mixin_setter_gobject_properties ()">tp_dbus_properties_mixin_setter_gobject_properties</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-class-init" title="tp_dbus_properties_mixin_class_init ()">tp_dbus_properties_mixin_class_init</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-implement-interface" title="tp_dbus_properties_mixin_implement_interface ()">tp_dbus_properties_mixin_implement_interface</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-iface-init" title="tp_dbus_properties_mixin_iface_init ()">tp_dbus_properties_mixin_iface_init</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-dbus-properties-mixin.html#tp-dbus-properties-mixin-get" title="tp_dbus_properties_mixin_get ()">tp_dbus_properties_mixin_get</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GHashTable</span> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-dup-all" title="tp_dbus_properties_mixin_dup_all ()">tp_dbus_properties_mixin_dup_all</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-dbus-properties-mixin.html#tp-dbus-properties-mixin-set" title="tp_dbus_properties_mixin_set ()">tp_dbus_properties_mixin_set</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-fill-properties-hash" title="tp_dbus_properties_mixin_fill_properties_hash ()">tp_dbus_properties_mixin_fill_properties_hash</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GHashTable</span> *
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-make-properties-hash" title="tp_dbus_properties_mixin_make_properties_hash ()">tp_dbus_properties_mixin_make_properties_hash</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-emit-properties-changed" title="tp_dbus_properties_mixin_emit_properties_changed ()">tp_dbus_properties_mixin_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="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-emit-properties-changed-varargs" title="tp_dbus_properties_mixin_emit_properties_changed_varargs ()">tp_dbus_properties_mixin_emit_properties_changed_varargs</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="telepathy-glib-dbus-properties-mixin.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinFlags" title="enum TpDBusPropertiesMixinFlags">TpDBusPropertiesMixinFlags</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TP-TYPE-DBUS-PROPERTIES-MIXIN-FLAGS:CAPS" title="TP_TYPE_DBUS_PROPERTIES_MIXIN_FLAGS">TP_TYPE_DBUS_PROPERTIES_MIXIN_FLAGS</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinIfaceInfo" title="TpDBusPropertiesMixinIfaceInfo">TpDBusPropertiesMixinIfaceInfo</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropInfo" title="TpDBusPropertiesMixinPropInfo">TpDBusPropertiesMixinPropInfo</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinClass" title="TpDBusPropertiesMixinClass">TpDBusPropertiesMixinClass</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinIfaceImpl" title="TpDBusPropertiesMixinIfaceImpl">TpDBusPropertiesMixinIfaceImpl</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl">TpDBusPropertiesMixinPropImpl</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="telepathy-glib-dbus-properties-mixin.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GFlags</a>
<span class="lineart">╰──</span> TpDBusPropertiesMixinFlags
</pre>
</div>
<div class="refsect1">
<a name="telepathy-glib-dbus-properties-mixin.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <telepathy-glib/telepathy-glib.h>
</pre>
</div>
<div class="refsect1">
<a name="telepathy-glib-dbus-properties-mixin.description"></a><h2>Description</h2>
<p>This mixin provides an implementation of the org.freedesktop.DBus.Properties
interface. It relies on the auto-generated service-side GInterfaces from
telepathy-glib >= 0.7.3, or something similar, to register the abstract
properties and their GTypes; classes with the mixin can then register
an implementation of the properties.</p>
<p>To register D-Bus properties in a GInterface to be implementable with this
mixin, either use the code-generation tools from telepathy-glib >= 0.7.3,
or call <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-svc-interface-set-dbus-properties-info" title="tp_svc_interface_set_dbus_properties_info ()"><code class="function">tp_svc_interface_set_dbus_properties_info()</code></a> from a section of the
base_init function that only runs once.</p>
<p>To use this mixin, include a <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinClass" title="TpDBusPropertiesMixinClass"><span class="type">TpDBusPropertiesMixinClass</span></a> somewhere
in your class structure, populate it with pointers to statically allocated
(or duplicated and never freed) data, and call
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-class-init" title="tp_dbus_properties_mixin_class_init ()"><code class="function">tp_dbus_properties_mixin_class_init()</code></a> from your class_init implementation.</p>
<p>To use this mixin as the implementation of <a class="link" href="telepathy-glib-svc-generic.html#TpSvcDBusProperties"><span class="type">TpSvcDBusProperties</span></a>,
call <code class="literal">G_IMPLEMENT_INTERFACE (TP_TYPE_SVC_DBUS_PROPERTIES,
tp_dbus_properties_mixin_iface_init)</code> in the fourth argument to
<code class="literal">G_DEFINE_TYPE_WITH_CODE</code>.</p>
</div>
<div class="refsect1">
<a name="telepathy-glib-dbus-properties-mixin.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="tp-svc-interface-set-dbus-properties-info"></a><h3>tp_svc_interface_set_dbus_properties_info ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_svc_interface_set_dbus_properties_info
(<em class="parameter"><code><span class="type">GType</span> g_interface</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinIfaceInfo" title="TpDBusPropertiesMixinIfaceInfo"><span class="type">TpDBusPropertiesMixinIfaceInfo</span></a> *info</code></em>);</pre>
<p>Declare that <em class="parameter"><code>g_interface</code></em>
implements the given D-Bus interface, with the
given properties. This may only be called once per GInterface, usually from
a section of its base_init function that only runs once.</p>
<p>This is typically only used within generated code; there is normally no
reason to call it manually.</p>
<div class="refsect3">
<a name="tp-svc-interface-set-dbus-properties-info.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_interface</p></td>
<td class="parameter_description"><p>The <span class="type">GType</span> of a service interface</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>info</p></td>
<td class="parameter_description"><p>an interface description</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.3</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-svc-interface-get-dbus-properties-info"></a><h3>tp_svc_interface_get_dbus_properties_info ()</h3>
<pre class="programlisting"><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinIfaceInfo" title="TpDBusPropertiesMixinIfaceInfo"><span class="returnvalue">TpDBusPropertiesMixinIfaceInfo</span></a> *
tp_svc_interface_get_dbus_properties_info
(<em class="parameter"><code><span class="type">GType</span> g_interface</code></em>);</pre>
<p>Retrieves the D-Bus property metadata for the given interface, if any.
This function is typically not useful outside telepathy-glib itself, but may
be useful for domain-specific variations on the theme of SetProperty. If in
doubt, you probably don't need this function.</p>
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
<div class="refsect3">
<a name="tp-svc-interface-get-dbus-properties-info.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_interface</p></td>
<td class="parameter_description"><p>The <span class="type">GType</span> of a service interface</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-svc-interface-get-dbus-properties-info.returns"></a><h4>Returns</h4>
<p> D-Bus property metadata for <em class="parameter"><code>g_interface</code></em>
, or <code class="literal">NULL</code> if it has
none.</p>
</div>
<p class="since">Since: 0.15.8</p>
</div>
<hr>
<div class="refsect2">
<a name="TpDBusPropertiesMixinGetter"></a><h3>TpDBusPropertiesMixinGetter ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
<span class="c_punctuation">(</span>*TpDBusPropertiesMixinGetter<span class="c_punctuation">)</span> (<em class="parameter"><code><span class="type">GObject</span> *object</code></em>,
<em class="parameter"><code><span class="type">GQuark</span> iface</code></em>,
<em class="parameter"><code><span class="type">GQuark</span> name</code></em>,
<em class="parameter"><code><span class="type">GValue</span> *value</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> getter_data</code></em>);</pre>
<p>Signature of a callback used to get the value of a property.</p>
<p>For simplicity, in this mixin we don't allow getting a property to fail;
implementations must always be prepared to return *something*.</p>
<div class="refsect3">
<a name="TpDBusPropertiesMixinGetter.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>object</p></td>
<td class="parameter_description"><p>The exported object with the properties</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>iface</p></td>
<td class="parameter_description"><p>A quark representing the D-Bus interface name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>A quark representing the D-Bus property name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>A GValue pre-initialized to the right type, into which to put
the value</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>getter_data</p></td>
<td class="parameter_description"><p>The getter_data from the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-dbus-properties-mixin-getter-gobject-properties"></a><h3>tp_dbus_properties_mixin_getter_gobject_properties ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_dbus_properties_mixin_getter_gobject_properties
(<em class="parameter"><code><span class="type">GObject</span> *object</code></em>,
<em class="parameter"><code><span class="type">GQuark</span> iface</code></em>,
<em class="parameter"><code><span class="type">GQuark</span> name</code></em>,
<em class="parameter"><code><span class="type">GValue</span> *value</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> getter_data</code></em>);</pre>
<p>An implementation of <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinGetter" title="TpDBusPropertiesMixinGetter ()"><span class="type">TpDBusPropertiesMixinGetter</span></a> which assumes that
the <em class="parameter"><code>getter_data</code></em>
is the name of a readable <span class="type">GObject</span> property of an
appropriate type, and uses it for the value of the D-Bus property.</p>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-getter-gobject-properties.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>object</p></td>
<td class="parameter_description"><p>The exported object with the properties</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>iface</p></td>
<td class="parameter_description"><p>A quark representing the D-Bus interface name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>A quark representing the D-Bus property name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>A GValue pre-initialized to the right type, into which to put
the value</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>getter_data</p></td>
<td class="parameter_description"><p>The getter_data from the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a>,
which must be a string containing the GObject property's name</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="TpDBusPropertiesMixinSetter"></a><h3>TpDBusPropertiesMixinSetter ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
<span class="c_punctuation">(</span>*TpDBusPropertiesMixinSetter<span class="c_punctuation">)</span> (<em class="parameter"><code><span class="type">GObject</span> *object</code></em>,
<em class="parameter"><code><span class="type">GQuark</span> iface</code></em>,
<em class="parameter"><code><span class="type">GQuark</span> name</code></em>,
<em class="parameter"><code>const <span class="type">GValue</span> *value</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> setter_data</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Signature of a callback used to get the value of a property.</p>
<div class="refsect3">
<a name="TpDBusPropertiesMixinSetter.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>object</p></td>
<td class="parameter_description"><p>The exported object with the properties</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>iface</p></td>
<td class="parameter_description"><p>A quark representing the D-Bus interface name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>A quark representing the D-Bus property name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>The new value for the property</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>setter_data</p></td>
<td class="parameter_description"><p>The setter_data from the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>Used to return an error on failure</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="TpDBusPropertiesMixinSetter.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> on success, <code class="literal">FALSE</code> (setting <em class="parameter"><code>error</code></em>
) on failure</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-dbus-properties-mixin-setter-gobject-properties"></a><h3>tp_dbus_properties_mixin_setter_gobject_properties ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_dbus_properties_mixin_setter_gobject_properties
(<em class="parameter"><code><span class="type">GObject</span> *object</code></em>,
<em class="parameter"><code><span class="type">GQuark</span> iface</code></em>,
<em class="parameter"><code><span class="type">GQuark</span> name</code></em>,
<em class="parameter"><code>const <span class="type">GValue</span> *value</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> setter_data</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>An implementation of <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinSetter" title="TpDBusPropertiesMixinSetter ()"><span class="type">TpDBusPropertiesMixinSetter</span></a> which assumes that the
<em class="parameter"><code>setter_data</code></em>
is the name of a writable <span class="type">GObject</span> property of an appropriate
type, and sets that property to the given value.</p>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-setter-gobject-properties.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>object</p></td>
<td class="parameter_description"><p>The exported object with the properties</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>iface</p></td>
<td class="parameter_description"><p>A quark representing the D-Bus interface name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>A quark representing the D-Bus property name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>The new value for the property</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>setter_data</p></td>
<td class="parameter_description"><p>The setter_data from the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a>,
which must be a string containing the GObject property's name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>Not used</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-setter-gobject-properties.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-dbus-properties-mixin-class-init"></a><h3>tp_dbus_properties_mixin_class_init ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_dbus_properties_mixin_class_init (<em class="parameter"><code><span class="type">GObjectClass</span> *cls</code></em>,
<em class="parameter"><code><span class="type">gsize</span> offset</code></em>);</pre>
<p>Initialize the class <em class="parameter"><code>cls</code></em>
to use the D-Bus Properties mixin.
The given struct member, of size sizeof(TpDBusPropertiesMixinClass),
will be used to store property implementation information.</p>
<p>Each property and each interface must have been declared as a member of
a GInterface implemented by <em class="parameter"><code>cls</code></em>
, using
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-svc-interface-set-dbus-properties-info" title="tp_svc_interface_set_dbus_properties_info ()"><code class="function">tp_svc_interface_set_dbus_properties_info()</code></a>.</p>
<p>Before calling this function, the array <em class="parameter"><code>interfaces</code></em>
must have been
placed in the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinClass" title="TpDBusPropertiesMixinClass"><span class="type">TpDBusPropertiesMixinClass</span></a> structure; if it would be empty,
it may instead be <code class="literal">NULL</code>.</p>
<p>This function should be called from the class_init callback in such a way
that it will only be called once, even if the class is subclassed.</p>
<p>Changed in 0.7.9: TpDBusPropertiesMixinClass::interfaces may now be <code class="literal">NULL</code>,
which means that only interfaces whose properties are set up using
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-implement-interface" title="tp_dbus_properties_mixin_implement_interface ()"><code class="function">tp_dbus_properties_mixin_implement_interface()</code></a> will be used.</p>
<p>Changed in 0.7.15: <em class="parameter"><code>offset</code></em>
may now be 0, in which case the
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinClass" title="TpDBusPropertiesMixinClass"><span class="type">TpDBusPropertiesMixinClass</span></a> can be omitted from <em class="parameter"><code>cls</code></em>
. It is treated as if
it were present, but with all fields (including
TpDBusPropertiesMixinClass::interfaces) being <code class="literal">NULL</code>, so only interfaces
whose properties are set using
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-implement-interface" title="tp_dbus_properties_mixin_implement_interface ()"><code class="function">tp_dbus_properties_mixin_implement_interface()</code></a> will be used.</p>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-class-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>cls</p></td>
<td class="parameter_description"><p>a subclass of <span class="type">GObjectClass</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>offset</p></td>
<td class="parameter_description"><p>the offset within <em class="parameter"><code>cls</code></em>
of a TpDBusPropertiesMixinClass structure</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.3</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-dbus-properties-mixin-implement-interface"></a><h3>tp_dbus_properties_mixin_implement_interface ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_dbus_properties_mixin_implement_interface
(<em class="parameter"><code><span class="type">GObjectClass</span> *cls</code></em>,
<em class="parameter"><code><span class="type">GQuark</span> iface</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinGetter" title="TpDBusPropertiesMixinGetter ()"><span class="type">TpDBusPropertiesMixinGetter</span></a> getter</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinSetter" title="TpDBusPropertiesMixinSetter ()"><span class="type">TpDBusPropertiesMixinSetter</span></a> setter</code></em>,
<em class="parameter"><code><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a> *props</code></em>);</pre>
<p>Declare that, in addition to any interfaces set in
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-class-init" title="tp_dbus_properties_mixin_class_init ()"><code class="function">tp_dbus_properties_mixin_class_init()</code></a>, the given class (and its subclasses)
will implement the properties of the interface <em class="parameter"><code>iface</code></em>
using the callbacks
<em class="parameter"><code>getter</code></em>
and <em class="parameter"><code>setter</code></em>
and the properties given by <em class="parameter"><code>props</code></em>
.</p>
<p>This function should be called from the class_init callback in such a way
that it will only be called once, even if the class is subclassed.</p>
<p>Typically, the static array <em class="parameter"><code>interfaces</code></em>
in the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinClass" title="TpDBusPropertiesMixinClass"><span class="type">TpDBusPropertiesMixinClass</span></a>
should be used for interfaces whose properties are implemented directly by
the class <em class="parameter"><code>cls</code></em>
, and this function should be used for interfaces whose
properties are implemented by mixins.</p>
<p>It is an error for the same interface to appear in the array <em class="parameter"><code>interfaces</code></em>
in the <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinClass" title="TpDBusPropertiesMixinClass"><span class="type">TpDBusPropertiesMixinClass</span></a>, and also be set up by this function.</p>
<p>If a class C and a subclass S both implement the properties of the same
interface, only the implementations from the subclass S will be used,
regardless of whether the implementations in C and/or S were set up by
this function or via the array <em class="parameter"><code>interfaces</code></em>
in the
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinClass" title="TpDBusPropertiesMixinClass"><span class="type">TpDBusPropertiesMixinClass</span></a>.</p>
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-implement-interface.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cls</p></td>
<td class="parameter_description"><p>a subclass of <span class="type">GObjectClass</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>iface</p></td>
<td class="parameter_description"><p>a quark representing the the name of the interface to implement</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>getter</p></td>
<td class="parameter_description"><p>a callback to get properties on this interface, or <code class="literal">NULL</code> if they
are all write-only</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>setter</p></td>
<td class="parameter_description"><p>a callback to set properties on this interface, or <code class="literal">NULL</code> if they
are all read-only</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>props</p></td>
<td class="parameter_description"><p>an array of <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a> representing individual
properties, terminated by one with <em class="parameter"><code>name</code></em>
== <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-dbus-properties-mixin-iface-init"></a><h3>tp_dbus_properties_mixin_iface_init ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_dbus_properties_mixin_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>Declare that the DBus.Properties interface represented by <em class="parameter"><code>g_iface</code></em>
is implemented using this mixin.</p>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-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-generic.html#TpSvcDBusPropertiesClass" title="TpSvcDBusPropertiesClass"><span class="type">TpSvcDBusPropertiesClass</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-dbus-properties-mixin-get"></a><h3>tp_dbus_properties_mixin_get ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_dbus_properties_mixin_get (<em class="parameter"><code><span class="type">GObject</span> *self</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *interface_name</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *property_name</code></em>,
<em class="parameter"><code><span class="type">GValue</span> *value</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Initialize <em class="parameter"><code>value</code></em>
with the type of the property <em class="parameter"><code>property_name</code></em>
on
<em class="parameter"><code>interface_name</code></em>
, and write the value of that property into it as if
by calling the D-Bus method org.freedesktop.DBus.Properties.Get.</p>
<p>If Get would return a D-Bus error, <em class="parameter"><code>value</code></em>
remains unset and <em class="parameter"><code>error</code></em>
is filled in instead.</p>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-get.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>an object with this mixin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>interface_name</p></td>
<td class="parameter_description"><p>a D-Bus interface name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>property_name</p></td>
<td class="parameter_description"><p>a D-Bus property name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>an unset GValue (initialized to all zeroes)</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 on failure</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-get.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> (filling <em class="parameter"><code>value</code></em>
) on success, <code class="literal">FALSE</code> (setting <em class="parameter"><code>error</code></em>
)
on failure</p>
</div>
<p class="since">Since: 0.7.13</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-dbus-properties-mixin-dup-all"></a><h3>tp_dbus_properties_mixin_dup_all ()</h3>
<pre class="programlisting"><span class="returnvalue">GHashTable</span> *
tp_dbus_properties_mixin_dup_all (<em class="parameter"><code><span class="type">GObject</span> *self</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *interface_name</code></em>);</pre>
<p>Get all the properties of a particular interface. This implementation
never returns an error: it will return an empty map if the interface
is unknown.</p>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-dup-all.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>an object with this mixin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>interface_name</p></td>
<td class="parameter_description"><p>a D-Bus interface name</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-dup-all.returns"></a><h4>Returns</h4>
<p>a map
from property name (without the interface name) to value. </p>
<p><span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8 GObject.Value]</span></p>
</div>
<p class="since">Since: 0.21.2</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-dbus-properties-mixin-set"></a><h3>tp_dbus_properties_mixin_set ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
tp_dbus_properties_mixin_set (<em class="parameter"><code><span class="type">GObject</span> *self</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *interface_name</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *property_name</code></em>,
<em class="parameter"><code>const <span class="type">GValue</span> *value</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>Sets a property to the value specified by <em class="parameter"><code>value</code></em>
, as if by
calling the D-Bus method org.freedesktop.DBus.Properties.Set.</p>
<p>If Set would return a D-Bus error, sets <em class="parameter"><code>error</code></em>
and returns <code class="literal">FALSE</code></p>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-set.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>an object with this mixin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>interface_name</p></td>
<td class="parameter_description"><p>a D-Bus interface name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>property_name</p></td>
<td class="parameter_description"><p>a D-Bus property name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>a GValue containing the new value for this property.</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 on failure</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-set.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> on success; <code class="literal">FALSE</code> (setting <em class="parameter"><code>error</code></em>
) on failure</p>
</div>
<p class="since">Since: 0.15.8</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-dbus-properties-mixin-fill-properties-hash"></a><h3>tp_dbus_properties_mixin_fill_properties_hash ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_dbus_properties_mixin_fill_properties_hash
(<em class="parameter"><code><span class="type">GObject</span> *object</code></em>,
<em class="parameter"><code><span class="type">GHashTable</span> *table</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *first_interface</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *first_property</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Retrieves the values of several D-Bus properties from an object, and adds
them to a hash mapping the fully-qualified name of the property to its
value. This is equivalent to calling <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-get" title="tp_dbus_properties_mixin_get ()"><code class="function">tp_dbus_properties_mixin_get()</code></a> for
each property and adding it to the table yourself, with the proviso that
this function will <code class="function">g_assert()</code> if retrieving a property fails (for instance,
because it does not exist).</p>
<p>Note that in particular, <em class="parameter"><code>table</code></em>
does not have the same memory-allocation
model as the hash tables required by <a class="link" href="telepathy-glib-asv.html#tp-asv-set-string" title="tp_asv_set_string ()"><code class="function">tp_asv_set_string()</code></a> and similar
functions.</p>
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-fill-properties-hash.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>object</p></td>
<td class="parameter_description"><p>an object which uses the D-Bus properties mixin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>table</p></td>
<td class="parameter_description"><p>a hash table where the keys are
strings copied with <code class="function">g_strdup()</code> and the values are slice-allocated
<span class="type">GValue</span>s. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8 GObject.Value]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>first_interface</p></td>
<td class="parameter_description"><p>the interface of the first property to be retrieved</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>first_property</p></td>
<td class="parameter_description"><p>the name of the first property to be retrieved</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>more (interface name, property name) pairs, terminated by <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.11.11</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-dbus-properties-mixin-make-properties-hash"></a><h3>tp_dbus_properties_mixin_make_properties_hash ()</h3>
<pre class="programlisting"><span class="returnvalue">GHashTable</span> *
tp_dbus_properties_mixin_make_properties_hash
(<em class="parameter"><code><span class="type">GObject</span> *object</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *first_interface</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *first_property</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Retrieves the values of several D-Bus properties from an object, and builds
a hash mapping the fully-qualified name of the property to its value. This
is equivalent to calling <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-get" title="tp_dbus_properties_mixin_get ()"><code class="function">tp_dbus_properties_mixin_get()</code></a> for each property
and building the table yourself, with the proviso that this function will
<code class="function">g_assert()</code> if retrieving a property fails (for instance, because it does not
exist).</p>
<p>Additional keys and values can be inserted into the returned hash table;
if this is done, the inserted keys and values will be freed when the
hash table is destroyed. The keys must be allocated with <code class="function">g_strdup()</code> or
equivalent, and the values must be slice-allocated (for instance with
<a class="link" href="telepathy-glib-util.html#tp-g-value-slice-new-string" title="tp_g_value_slice_new_string ()"><code class="function">tp_g_value_slice_new_string()</code></a> or a similar function).</p>
<p>Note that in particular, <a class="link" href="telepathy-glib-asv.html#tp-asv-set-string" title="tp_asv_set_string ()"><code class="function">tp_asv_set_string()</code></a> and similar functions should
not be used with this hash table.</p>
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-make-properties-hash.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>object</p></td>
<td class="parameter_description"><p>an object which uses the D-Bus properties mixin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>first_interface</p></td>
<td class="parameter_description"><p>the interface of the first property to be retrieved</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>first_property</p></td>
<td class="parameter_description"><p>the name of the first property to be retrieved</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>more (interface name, property name) pairs, terminated by <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-make-properties-hash.returns"></a><h4>Returns</h4>
<p> a hash table mapping (gchar *) fully-qualified property names to
GValues, which must be freed by the caller (at which point its
contents will also be freed).</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="tp-dbus-properties-mixin-emit-properties-changed"></a><h3>tp_dbus_properties_mixin_emit_properties_changed ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_dbus_properties_mixin_emit_properties_changed
(<em class="parameter"><code><span class="type">GObject</span> *object</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *interface_name</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> * const *properties</code></em>);</pre>
<p>Emits the PropertiesChanged signal for the provided properties. Depending on
the EmitsChangedSignal annotations in the introspection XML, either the new
value of the property will be included in the signal, or merely the fact
that the property has changed.</p>
<p>For example, the MPRIS specification defines a TrackList interface with two
properties, one of which is annotated with EmitsChangedSignal=true and one
annotated with EmitsChangedSignal=invalidates. The following call would
include the new value of CanEditTracks and list Tracks as invalidated:</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3
4</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="k">const</span> <span class="n">gchar</span> <span class="o">*</span><span class="n">properties</span><span class="p">[]</span> <span class="o">=</span> <span class="p">{</span> <span class="s">"CanEditTracks"</span><span class="p">,</span> <span class="s">"Tracks"</span><span class="p">,</span> <span class="nb">NULL</span> <span class="p">};</span>
<span class="n">tp_dbus_properties_mixin_emit_properties_changed</span> <span class="p">(</span><span class="n">G_OBJECT</span> <span class="p">(</span><span class="n">self</span><span class="p">),</span>
<span class="s">"org.mpris.MediaPlayer2.TrackList"</span><span class="p">,</span> <span class="n">properties</span><span class="p">);</span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>It is an error to pass a property to this
function if the property is annotated with EmitsChangedSignal=false, or is
unannotated.</p>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-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>object</p></td>
<td class="parameter_description"><p>an object which uses the D-Bus properties mixin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>interface_name</p></td>
<td class="parameter_description"><p>the interface on which properties have changed</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>properties</p></td>
<td class="parameter_description"><p>a <code class="literal">NULL</code>-terminated array of (unqualified)
property names whose values have changed. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.15.6</p>
</div>
<hr>
<div class="refsect2">
<a name="tp-dbus-properties-mixin-emit-properties-changed-varargs"></a><h3>tp_dbus_properties_mixin_emit_properties_changed_varargs ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
tp_dbus_properties_mixin_emit_properties_changed_varargs
(<em class="parameter"><code><span class="type">GObject</span> *object</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *interface_name</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>A shortcut for calling <a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-dbus-properties-mixin-emit-properties-changed" title="tp_dbus_properties_mixin_emit_properties_changed ()"><code class="function">tp_dbus_properties_mixin_emit_properties_changed()</code></a>.</p>
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
<div class="refsect3">
<a name="tp-dbus-properties-mixin-emit-properties-changed-varargs.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>object</p></td>
<td class="parameter_description"><p>an object which uses the D-Bus properties mixin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>interface_name</p></td>
<td class="parameter_description"><p>the interface on which properties have changed</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>property names (unqualified) whose values have changed, terminated by
<code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.15.6</p>
</div>
</div>
<div class="refsect1">
<a name="telepathy-glib-dbus-properties-mixin.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="TpDBusPropertiesMixinFlags"></a><h3>enum TpDBusPropertiesMixinFlags</h3>
<p>Bitfield representing allowed access to a property. At most one of
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TP-DBUS-PROPERTIES-MIXIN-FLAG-EMITS-CHANGED:CAPS"><code class="literal">TP_DBUS_PROPERTIES_MIXIN_FLAG_EMITS_CHANGED</code></a> and
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TP-DBUS-PROPERTIES-MIXIN-FLAG-EMITS-INVALIDATED:CAPS"><code class="literal">TP_DBUS_PROPERTIES_MIXIN_FLAG_EMITS_INVALIDATED</code></a> may be specified for a
property.</p>
<p>Since 0.11.5, there is a corresponding <span class="type">GFlagsClass</span> type,
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#TP-TYPE-DBUS-PROPERTIES-MIXIN-FLAGS:CAPS" title="TP_TYPE_DBUS_PROPERTIES_MIXIN_FLAGS"><code class="literal">TP_TYPE_DBUS_PROPERTIES_MIXIN_FLAGS</code></a>.</p>
<div class="refsect3">
<a name="TpDBusPropertiesMixinFlags.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-PROPERTIES-MIXIN-FLAG-READ:CAPS"></a>TP_DBUS_PROPERTIES_MIXIN_FLAG_READ</p></td>
<td class="enum_member_description">
<p>The property can be read using Get and
GetAll</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-PROPERTIES-MIXIN-FLAG-WRITE:CAPS"></a>TP_DBUS_PROPERTIES_MIXIN_FLAG_WRITE</p></td>
<td class="enum_member_description">
<p>The property can be written using Set</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-PROPERTIES-MIXIN-FLAG-EMITS-CHANGED:CAPS"></a>TP_DBUS_PROPERTIES_MIXIN_FLAG_EMITS_CHANGED</p></td>
<td class="enum_member_description">
<p>The property's new value is
included in emissions of PropertiesChanged</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="TP-DBUS-PROPERTIES-MIXIN-FLAG-EMITS-INVALIDATED:CAPS"></a>TP_DBUS_PROPERTIES_MIXIN_FLAG_EMITS_INVALIDATED</p></td>
<td class="enum_member_description">
<p>The property is announced
as invalidated, without its value, in emissions of PropertiesChanged</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.3</p>
</div>
<hr>
<div class="refsect2">
<a name="TP-TYPE-DBUS-PROPERTIES-MIXIN-FLAGS:CAPS"></a><h3>TP_TYPE_DBUS_PROPERTIES_MIXIN_FLAGS</h3>
<pre class="programlisting">#define TP_TYPE_DBUS_PROPERTIES_MIXIN_FLAGS (tp_dbus_properties_mixin_flags_get_type ())
</pre>
<p>The <span class="type">GFlagsClass</span> type of <a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinFlags" title="enum TpDBusPropertiesMixinFlags"><span class="type">TpDBusPropertiesMixinFlags</span></a>.</p>
<p class="since">Since: 0.11.5</p>
</div>
<hr>
<div class="refsect2">
<a name="TpDBusPropertiesMixinIfaceInfo"></a><h3>TpDBusPropertiesMixinIfaceInfo</h3>
<pre class="programlisting">typedef struct {
GQuark dbus_interface;
TpDBusPropertiesMixinPropInfo *props;
} TpDBusPropertiesMixinIfaceInfo;
</pre>
<p>Semi-abstract description of an interface. Each service GInterface that
has properties must have one of these attached to it via
<a class="link" href="telepathy-glib-dbus-properties-mixin.html#tp-svc-interface-set-dbus-properties-info" title="tp_svc_interface_set_dbus_properties_info ()"><code class="function">tp_svc_interface_set_dbus_properties_info()</code></a> in its base_init function;
service GInterfaces that do not have properties may have one of these
with no properties.</p>
<p>This structure must either be statically allocated, or duplicated and never
freed, so it always remains valid.</p>
<p>In addition to the documented members, there are two private pointers
for future expansion, which must always be initialized to <code class="literal">NULL</code>.</p>
<div class="refsect3">
<a name="TpDBusPropertiesMixinIfaceInfo.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><span class="type">GQuark</span> <em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceInfo.dbus-interface"></a>dbus_interface</code></em>;</p></td>
<td class="struct_member_description"><p>Quark representing the interface's name</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropInfo" title="TpDBusPropertiesMixinPropInfo"><span class="type">TpDBusPropertiesMixinPropInfo</span></a> *<em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceInfo.props"></a>props</code></em>;</p></td>
<td class="struct_member_description"><p>Array of property descriptions, terminated by one with
<em class="parameter"><code>name</code></em>
== <code class="literal">NULL</code></p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.3</p>
</div>
<hr>
<div class="refsect2">
<a name="TpDBusPropertiesMixinPropInfo"></a><h3>TpDBusPropertiesMixinPropInfo</h3>
<pre class="programlisting">typedef struct {
GQuark name;
TpDBusPropertiesMixinFlags flags;
gchar *dbus_signature;
GType type;
} TpDBusPropertiesMixinPropInfo;
</pre>
<p>Semi-abstract description of a property, as attached to a service
GInterface. This structure must either be statically allocated, or
duplicated and never freed, so it always remains valid.</p>
<p>In addition to the documented members, there are two private pointers
for future expansion, which must always be initialized to <code class="literal">NULL</code>.</p>
<div class="refsect3">
<a name="TpDBusPropertiesMixinPropInfo.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><span class="type">GQuark</span> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropInfo.name"></a>name</code></em>;</p></td>
<td class="struct_member_description"><p>Quark representing the property's name</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinFlags" title="enum TpDBusPropertiesMixinFlags"><span class="type">TpDBusPropertiesMixinFlags</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropInfo.flags"></a>flags</code></em>;</p></td>
<td class="struct_member_description"><p>Flags representing read/write access to the property</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">gchar</span> *<em class="structfield"><code><a name="TpDBusPropertiesMixinPropInfo.dbus-signature"></a>dbus_signature</code></em>;</p></td>
<td class="struct_member_description"><p>The D-Bus signature of the property</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">GType</span> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropInfo.type"></a>type</code></em>;</p></td>
<td class="struct_member_description"><p>The GType used in a GValue to implement the property</p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.3</p>
</div>
<hr>
<div class="refsect2">
<a name="TpDBusPropertiesMixinClass"></a><h3>TpDBusPropertiesMixinClass</h3>
<pre class="programlisting">typedef struct {
TpDBusPropertiesMixinIfaceImpl *interfaces;
} TpDBusPropertiesMixinClass;
</pre>
<p>Structure representing all of a class's property implementations. One of
these structures may be placed in the layout of an object class structure.</p>
<p>In addition to the documented fields, there are 7 pointers reserved for
future use, which must be initialized to <code class="literal">NULL</code>.</p>
<div class="refsect3">
<a name="TpDBusPropertiesMixinClass.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="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinIfaceImpl" title="TpDBusPropertiesMixinIfaceImpl"><span class="type">TpDBusPropertiesMixinIfaceImpl</span></a> *<em class="structfield"><code><a name="TpDBusPropertiesMixinClass.interfaces"></a>interfaces</code></em>;</p></td>
<td class="struct_member_description"><p>An array of interface implementations, terminated by one with
<em class="parameter"><code>name</code></em>
equal to <code class="literal">NULL</code></p></td>
<td class="struct_member_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: 0.7.3</p>
</div>
<hr>
<div class="refsect2">
<a name="TpDBusPropertiesMixinIfaceImpl"></a><h3>TpDBusPropertiesMixinIfaceImpl</h3>
<pre class="programlisting">typedef struct {
const gchar *name;
TpDBusPropertiesMixinGetter getter;
TpDBusPropertiesMixinSetter setter;
TpDBusPropertiesMixinPropImpl *props;
} TpDBusPropertiesMixinIfaceImpl;
</pre>
<p>Structure representing an implementation of an interface's properties.</p>
<p>In addition to the documented fields, there are four pointers which must
be initialized to <code class="literal">NULL</code>.</p>
<p>This structure must either be statically allocated, or duplicated and never
freed, so it always remains valid.</p>
<div class="refsect3">
<a name="TpDBusPropertiesMixinIfaceImpl.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>const <span class="type">gchar</span> *<em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceImpl.name"></a>name</code></em>;</p></td>
<td class="struct_member_description"><p>The name of the interface</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinGetter" title="TpDBusPropertiesMixinGetter ()"><span class="type">TpDBusPropertiesMixinGetter</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceImpl.getter"></a>getter</code></em>;</p></td>
<td class="struct_member_description"><p>A callback to get the current value of the property, to which
the <em class="parameter"><code>getter_data</code></em>
from each property implementation will be passed</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinSetter" title="TpDBusPropertiesMixinSetter ()"><span class="type">TpDBusPropertiesMixinSetter</span></a> <em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceImpl.setter"></a>setter</code></em>;</p></td>
<td class="struct_member_description"><p>A callback to set a new value for the property, to which
the <em class="parameter"><code>setter_data</code></em>
from each property implementation will be passed</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><a class="link" href="telepathy-glib-dbus-properties-mixin.html#TpDBusPropertiesMixinPropImpl" title="TpDBusPropertiesMixinPropImpl"><span class="type">TpDBusPropertiesMixinPropImpl</span></a> *<em class="structfield"><code><a name="TpDBusPropertiesMixinIfaceImpl.props"></a>props</code></em>;</p></td>
<td class="struct_member_description"><p>An array of property implementations, terminated by one with
<em class="parameter"><code>name</code></em>
equal to <code class="literal">NULL</code></p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.3</p>
</div>
<hr>
<div class="refsect2">
<a name="TpDBusPropertiesMixinPropImpl"></a><h3>TpDBusPropertiesMixinPropImpl</h3>
<pre class="programlisting">typedef struct {
const gchar *name;
gpointer getter_data;
gpointer setter_data;
} TpDBusPropertiesMixinPropImpl;
</pre>
<p>Structure representing an implementation of a property.</p>
<p>In addition to the documented fields, there are three pointers which must
be initialized to <code class="literal">NULL</code>.</p>
<p>This structure must either be statically allocated, or duplicated and never
freed, so it always remains valid.</p>
<div class="refsect3">
<a name="TpDBusPropertiesMixinPropImpl.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>const <span class="type">gchar</span> *<em class="structfield"><code><a name="TpDBusPropertiesMixinPropImpl.name"></a>name</code></em>;</p></td>
<td class="struct_member_description"><p>The name of the property as it appears on D-Bus</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">gpointer</span> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropImpl.getter-data"></a>getter_data</code></em>;</p></td>
<td class="struct_member_description"><p>Arbitrary user-supplied data for the getter function</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">gpointer</span> <em class="structfield"><code><a name="TpDBusPropertiesMixinPropImpl.setter-data"></a>setter_data</code></em>;</p></td>
<td class="struct_member_description"><p>Arbitrary user-supplied data for the setter function</p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.7.3</p>
</div>
</div>
<div class="refsect1">
<a name="telepathy-glib-dbus-properties-mixin.see-also"></a><h2>See Also</h2>
<p><a class="link" href="telepathy-glib-svc-generic.html#TpSvcDBusProperties"><span class="type">TpSvcDBusProperties</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>
|