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
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>TelepathyQt4: Tp::ContactManager Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="1"> </td>
<td class="postheader" valign="center">
<a href="index.html">
<font color="#004faf">Home</font></a> ·
<a href="classes.html">
<font color="#004faf">All Classes</font></a> ·
<a href="namespaces.html">
<font color="#004faf">All Namespaces</font></a> ·
<a href="modules.html">
<font color="#004faf">Modules</font></a> ·
<a href="functions.html">
<font color="#004faf">Functions</font></a> ·
<a href="files.html">
<font color="#004faf">Files</font></a>
</td>
</tr>
</table>
</body>
</html>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navpath"><a class="el" href="namespaceTp.html">Tp</a>::<a class="el" href="classTp_1_1ContactManager.html">ContactManager</a>
</div>
<div class="contents">
<h1>Tp::ContactManager Class Reference<br/>
<small>
[<a class="el" href="group__clientconn.html">Connection proxies</a>]</small>
</h1><!-- doxytag: class="Tp::ContactManager" -->
<p>The <a class="el" href="classTp_1_1ContactManager.html" title="The ContactManager class is responsible for managing contacts.">ContactManager</a> class is responsible for managing contacts.
<a href="#_details">More...</a></p>
<p><code>#include <<a class="el" href="contact-manager_8h_source.html">TelepathyQt4/ContactManager</a>></code></p>
<p><a href="classTp_1_1ContactManager-members.html">List of all members.</a></p>
<h2>Classes</h2>
<ul>
<li>struct <b>ContactListChannel</b>
</ul>
<h2>Signals</h2>
<ul>
<li>void <a class="el" href="classTp_1_1ContactManager.html#a6fd4463cdd976722642239d5412691a0">presencePublicationRequested</a> (const <a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Tp::Contacts</a> &contacts)
<li>void <a class="el" href="classTp_1_1ContactManager.html#a9f4088f2dc6fde3d93081bd4cc0eee64">groupAdded</a> (const QString &group)
<li>void <a class="el" href="classTp_1_1ContactManager.html#a9ed8c4284e625ea4eeba9a52c922d89d">groupRemoved</a> (const QString &group)
<li>void <a class="el" href="classTp_1_1ContactManager.html#aeb72dad161ab1fd46fb26d904b3b0078">groupMembersChanged</a> (const QString &group, const <a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Tp::Contacts</a> &groupMembersAdded, const <a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Tp::Contacts</a> &groupMembersRemoved)
<li>void <a class="el" href="classTp_1_1ContactManager.html#af9ef1fd48bb7e236c2a73210755ff5c7">allKnownContactsChanged</a> (const <a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Tp::Contacts</a> &contactsAdded, const <a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Tp::Contacts</a> &contactsRemoved)
</ul>
<h2>Public Member Functions</h2>
<ul>
<li><a class="el" href="classTp_1_1SharedPtr.html">ConnectionPtr</a> <a class="el" href="classTp_1_1ContactManager.html#af101a4f8ae122e85e9fac5d6c0b537a2">connection</a> () const
<li>QSet< <a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a> > <a class="el" href="classTp_1_1ContactManager.html#ae5658ef979c2bd19dcfd31231aa93b7e">supportedFeatures</a> () const
<li><a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Contacts</a> <a class="el" href="classTp_1_1ContactManager.html#a3c12a76eb7542de6e75afa6499ac93a5">allKnownContacts</a> () const
<li>QStringList <a class="el" href="classTp_1_1ContactManager.html#a9009d3811e5efc8ccc1f1dc9464c11dc">allKnownGroups</a> () const
<li><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * <a class="el" href="classTp_1_1ContactManager.html#a24457084fe465714d5f3d6e321af8b54">addGroup</a> (const QString &group)
<li><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * <a class="el" href="classTp_1_1ContactManager.html#a48ab95a31eab835a3d0cb51bb857438c">removeGroup</a> (const QString &group)
<li><a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Contacts</a> <a class="el" href="classTp_1_1ContactManager.html#a50547e5fb2e109238a9ca50736fc199d">groupContacts</a> (const QString &group) const
<li><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * <a class="el" href="classTp_1_1ContactManager.html#a708499de87d0e57c49421e13fe467ed1">addContactsToGroup</a> (const QString &group, const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > &contacts)
<li><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * <a class="el" href="classTp_1_1ContactManager.html#a27c80e1ab19be8b8542ae14f8d6ce691">removeContactsFromGroup</a> (const QString &group, const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > &contacts)
<li>bool <a class="el" href="classTp_1_1ContactManager.html#ad8e08099706426de94b2bd1f23a0008c">canRequestPresenceSubscription</a> () const
<li>bool <a class="el" href="classTp_1_1ContactManager.html#abd8e2c4544a1724e5fb10bf16c80b001">subscriptionRequestHasMessage</a> () const
<li><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * <a class="el" href="classTp_1_1ContactManager.html#a67ba299f82a47b6dc6d3f6d3645c007d">requestPresenceSubscription</a> (const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > &contacts, const QString &message=QString())
<li>bool <a class="el" href="classTp_1_1ContactManager.html#ac498236242908f35f35309b6346545a5">canRemovePresenceSubscription</a> () const
<li>bool <a class="el" href="classTp_1_1ContactManager.html#ae70040aad36cf4a546c3f7f2cc66645f">subscriptionRemovalHasMessage</a> () const
<li>bool <a class="el" href="classTp_1_1ContactManager.html#ae14695e4e6eb0385b3d6f69cfbd032fd">canRescindPresenceSubscriptionRequest</a> () const
<li>bool <a class="el" href="classTp_1_1ContactManager.html#a763cc321e395d3252d9ca04a02086527">subscriptionRescindingHasMessage</a> () const
<li><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * <a class="el" href="classTp_1_1ContactManager.html#a368a06c54d07ede65d273cf693b2332f">removePresenceSubscription</a> (const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > &contacts, const QString &message=QString())
<li>bool <a class="el" href="classTp_1_1ContactManager.html#a5cae6b97938e3fdbfad730586030d765">canAuthorizePresencePublication</a> () const
<li>bool <a class="el" href="classTp_1_1ContactManager.html#aae15b650476959aa7aa2397859e8ad9c">publicationAuthorizationHasMessage</a> () const
<li><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * <a class="el" href="classTp_1_1ContactManager.html#a22916788a01fc087d66088ae756f6660">authorizePresencePublication</a> (const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > &contacts, const QString &message=QString())
<li>bool <a class="el" href="classTp_1_1ContactManager.html#a103ec996765a5e3434cb8b265427666f">publicationRejectionHasMessage</a> () const
<li>bool <a class="el" href="classTp_1_1ContactManager.html#a1602d61f630c016d41525b54c5e73caa">canRemovePresencePublication</a> () const
<li>bool <a class="el" href="classTp_1_1ContactManager.html#a1fc517663e67692b9b8b688aafec5095">publicationRemovalHasMessage</a> () const
<li><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * <a class="el" href="classTp_1_1ContactManager.html#a6e1d65b5d6be2af709e88f87216750e5">removePresencePublication</a> (const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > &contacts, const QString &message=QString())
<li>bool <a class="el" href="classTp_1_1ContactManager.html#a5366527c88063801f1222443d2909ce9">canBlockContacts</a> () const
<li><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * <a class="el" href="classTp_1_1ContactManager.html#ae86c9ee8b0f58c53c0b647f3c47c0251">blockContacts</a> (const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > &contacts, bool value=true)
<li><a class="el" href="classTp_1_1PendingContacts.html">PendingContacts</a> * <a class="el" href="classTp_1_1ContactManager.html#a6f7f0e92cd0f4074f78e0f58d7354218">contactsForHandles</a> (const UIntList &handles, const QSet< <a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a> > &features=QSet< <a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a> >())
<li><a class="el" href="classTp_1_1PendingContacts.html">PendingContacts</a> * <a class="el" href="classTp_1_1ContactManager.html#a65f4ce65b2829687ff591cbd427a43eb">contactsForHandles</a> (const <a class="el" href="classTp_1_1ReferencedHandles.html">ReferencedHandles</a> &handles, const QSet< <a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a> > &features=QSet< <a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a> >())
<li><a class="el" href="classTp_1_1PendingContacts.html">PendingContacts</a> * <a class="el" href="classTp_1_1ContactManager.html#aa627e2d5a1bef43fcca005aea696cb4c">contactsForIdentifiers</a> (const QStringList &identifiers, const QSet< <a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a> > &features=QSet< <a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a> >())
<li><a class="el" href="classTp_1_1PendingContacts.html">PendingContacts</a> * <a class="el" href="classTp_1_1ContactManager.html#a8c09493ebc0746416db5157b3f9c7129">upgradeContacts</a> (const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > &contacts, const QSet< <a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a> > &features)
<li><a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> <a class="el" href="classTp_1_1ContactManager.html#adfe9808bd666b5a56a037735d4ec108b">lookupContactByHandle</a> (uint handle)
</ul>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The <a class="el" href="classTp_1_1ContactManager.html" title="The ContactManager class is responsible for managing contacts.">ContactManager</a> class is responsible for managing contacts. </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="af101a4f8ae122e85e9fac5d6c0b537a2"></a><!-- doxytag: member="Tp::ContactManager::connection" ref="af101a4f8ae122e85e9fac5d6c0b537a2" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1SharedPtr.html">ConnectionPtr</a> Tp::ContactManager::connection </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="ae5658ef979c2bd19dcfd31231aa93b7e"></a><!-- doxytag: member="Tp::ContactManager::supportedFeatures" ref="ae5658ef979c2bd19dcfd31231aa93b7e" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QSet< <a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a> > Tp::ContactManager::supportedFeatures </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a3c12a76eb7542de6e75afa6499ac93a5"></a><!-- doxytag: member="Tp::ContactManager::allKnownContacts" ref="a3c12a76eb7542de6e75afa6499ac93a5" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Contacts</a> Tp::ContactManager::allKnownContacts </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return a list of relevant contacts (a reasonable guess as to what should be displayed as "the contact list").</p>
<p>This may include any or all of: contacts whose presence the user receives, contacts who are allowed to see the user's presence, contacts stored in some persistent contact list on the server, contacts who the user has blocked from communicating with them, or contacts who are relevant in some other way.</p>
<p>User interfaces displaying a contact list will probably want to filter this list and display some suitable subset of it.</p>
<p>On protocols where there is no concept of presence or a centrally-stored contact list (like IRC), this method may return an empty list.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Some contacts </dd></dl>
</div>
</div>
<a class="anchor" id="a9009d3811e5efc8ccc1f1dc9464c11dc"></a><!-- doxytag: member="Tp::ContactManager::allKnownGroups" ref="a9009d3811e5efc8ccc1f1dc9464c11dc" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QStringList Tp::ContactManager::allKnownGroups </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return a list of user-defined contact list groups' names.</p>
<p>This method requires <a class="el" href="classTp_1_1Connection.html#adf6eab299cb7a0186ded6074e57fb5d0">Connection::FeatureRosterGroups</a> to be enabled.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>List of user-defined contact list groups names. </dd></dl>
</div>
</div>
<a class="anchor" id="a24457084fe465714d5f3d6e321af8b54"></a><!-- doxytag: member="Tp::ContactManager::addGroup" ref="a24457084fe465714d5f3d6e321af8b54" args="(const QString &group)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * Tp::ContactManager::addGroup </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>group</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Attempt to add an user-defined contact list group named <em>group</em>.</p>
<p>On some protocols (e.g. XMPP) empty groups are not represented on the server, so disconnecting from the server and reconnecting might cause empty groups to vanish.</p>
<p>The returned pending operation will finish successfully if the group already exists.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>group</em> </td><td>Group name. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pending operation which will return when an attempt has been made to add an user-defined contact list group. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1ContactManager.html#a9f4088f2dc6fde3d93081bd4cc0eee64">groupAdded()</a>, <a class="el" href="classTp_1_1ContactManager.html#a708499de87d0e57c49421e13fe467ed1">addContactsToGroup()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a48ab95a31eab835a3d0cb51bb857438c"></a><!-- doxytag: member="Tp::ContactManager::removeGroup" ref="a48ab95a31eab835a3d0cb51bb857438c" args="(const QString &group)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * Tp::ContactManager::removeGroup </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>group</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Attempt to remove an user-defined contact list group named <em>group</em>.</p>
<p>This method requires <a class="el" href="classTp_1_1Connection.html#adf6eab299cb7a0186ded6074e57fb5d0">Connection::FeatureRosterGroups</a> to be enabled.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>group</em> </td><td>Group name. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pending operation which will return when an attempt has been made to remove an user-defined contact list group. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1ContactManager.html#a9ed8c4284e625ea4eeba9a52c922d89d">groupRemoved()</a>, <a class="el" href="classTp_1_1ContactManager.html#a27c80e1ab19be8b8542ae14f8d6ce691">removeContactsFromGroup()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a50547e5fb2e109238a9ca50736fc199d"></a><!-- doxytag: member="Tp::ContactManager::groupContacts" ref="a50547e5fb2e109238a9ca50736fc199d" args="(const QString &group) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Contacts</a> Tp::ContactManager::groupContacts </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>group</em></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return the contacts in the given user-defined contact list group named <em>group</em>.</p>
<p>This method requires <a class="el" href="classTp_1_1Connection.html#adf6eab299cb7a0186ded6074e57fb5d0">Connection::FeatureRosterGroups</a> to be enabled.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>group</em> </td><td>Group name. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>List of contacts on a user-defined contact list group, or an empty list if the group does not exist. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classTp_1_1ContactManager.html#a9009d3811e5efc8ccc1f1dc9464c11dc">allKnownGroups()</a>, contactGroups() </dd></dl>
</div>
</div>
<a class="anchor" id="a708499de87d0e57c49421e13fe467ed1"></a><!-- doxytag: member="Tp::ContactManager::addContactsToGroup" ref="a708499de87d0e57c49421e13fe467ed1" args="(const QString &group, const QList< ContactPtr > &contacts)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * Tp::ContactManager::addContactsToGroup </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>group</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > & </td>
<td class="paramname"> <em>contacts</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Attempt to add the given <em>contacts</em> to the user-defined contact list group named <em>group</em>.</p>
<p>This method requires <a class="el" href="classTp_1_1Connection.html#adf6eab299cb7a0186ded6074e57fb5d0">Connection::FeatureRosterGroups</a> to be enabled.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>group</em> </td><td>Group name. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>contacts</em> </td><td>Contacts to add. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pending operation which will return when an attempt has been made to add the contacts to the user-defined contact list group. </dd></dl>
</div>
</div>
<a class="anchor" id="a27c80e1ab19be8b8542ae14f8d6ce691"></a><!-- doxytag: member="Tp::ContactManager::removeContactsFromGroup" ref="a27c80e1ab19be8b8542ae14f8d6ce691" args="(const QString &group, const QList< ContactPtr > &contacts)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * Tp::ContactManager::removeContactsFromGroup </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>group</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > & </td>
<td class="paramname"> <em>contacts</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Attempt to remove the given <em>contacts</em> from the user-defined contact list group named <em>group</em>.</p>
<p>This method requires <a class="el" href="classTp_1_1Connection.html#adf6eab299cb7a0186ded6074e57fb5d0">Connection::FeatureRosterGroups</a> to be enabled.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>group</em> </td><td>Group name. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>contacts</em> </td><td>Contacts to remove. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pending operation which will return when an attempt has been made to remove the contacts from the user-defined contact list group. </dd></dl>
</div>
</div>
<a class="anchor" id="ad8e08099706426de94b2bd1f23a0008c"></a><!-- doxytag: member="Tp::ContactManager::canRequestPresenceSubscription" ref="ad8e08099706426de94b2bd1f23a0008c" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Tp::ContactManager::canRequestPresenceSubscription </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return whether subscribing to additional contacts' presence is supported on this channel.</p>
<p>In some protocols, the list of contacts whose presence can be seen is fixed, so we can't subscribe to the presence of additional contacts.</p>
<p>Notably, in link-local XMPP, you can see the presence of everyone on the local network, and trying to add more subscriptions would be meaningless.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether <a class="el" href="classTp_1_1Contact.html#af30104295906e16cb1c98afb14acdd73">Contact::requestPresenceSubscription</a> and requestPresenceSubscription are likely to succeed </dd></dl>
</div>
</div>
<a class="anchor" id="abd8e2c4544a1724e5fb10bf16c80b001"></a><!-- doxytag: member="Tp::ContactManager::subscriptionRequestHasMessage" ref="abd8e2c4544a1724e5fb10bf16c80b001" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Tp::ContactManager::subscriptionRequestHasMessage </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return whether a message can be sent when subscribing to contacts' presence.</p>
<p>If no message will actually be sent, user interfaces should avoid prompting the user for a message, and use an empty string for the message argument.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether the message argument to <a class="el" href="classTp_1_1Contact.html#af30104295906e16cb1c98afb14acdd73">Contact::requestPresenceSubscription</a> and requestPresenceSubscription is actually used </dd></dl>
</div>
</div>
<a class="anchor" id="a67ba299f82a47b6dc6d3f6d3645c007d"></a><!-- doxytag: member="Tp::ContactManager::requestPresenceSubscription" ref="a67ba299f82a47b6dc6d3f6d3645c007d" args="(const QList< ContactPtr > &contacts, const QString &message=QString())" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * Tp::ContactManager::requestPresenceSubscription </td>
<td>(</td>
<td class="paramtype">const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > & </td>
<td class="paramname"> <em>contacts</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>message</em> = <code>QString()</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Attempt to subscribe to the presence of the given contacts.</p>
<p>This operation is sometimes called "adding contacts to the buddy
list" or "requesting authorization".</p>
<p>On most protocols, the contacts will need to give permission before the user will be able to receive their presence: if so, they will be in presence state <a class="el" href="classTp_1_1Contact.html#ab758b1908d04f9870c8091456f3ddc5ba9c5f79349a1de47e9734bf77042f0728">Contact::PresenceStateAsk</a> until they authorize or deny the request.</p>
<p>The returned <a class="el" href="classTp_1_1PendingOperation.html" title="Abstract base class for pending asynchronous operations.">PendingOperation</a> will return successfully when a request to subscribe to the contacts' presence has been submitted, or fail if this cannot happen. In particular, it does not wait for the contacts to give permission for the presence subscription.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>contacts</em> </td><td>Contacts whose presence is desired </td></tr>
<tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>A message from the user which is either transmitted to the contacts, or ignored, depending on the protocol </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pending operation which will return when an attempt has been made to subscribe to the contacts' presence </dd></dl>
</div>
</div>
<a class="anchor" id="ac498236242908f35f35309b6346545a5"></a><!-- doxytag: member="Tp::ContactManager::canRemovePresenceSubscription" ref="ac498236242908f35f35309b6346545a5" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Tp::ContactManager::canRemovePresenceSubscription </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return whether the user can stop receiving the presence of a contact whose presence they have subscribed to.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether removePresenceSubscription and <a class="el" href="classTp_1_1Contact.html#ab907f90204744c50836abd5a54d674fa">Contact::removePresenceSubscription</a> are likely to succeed for contacts with subscription state <a class="el" href="classTp_1_1Contact.html#ab758b1908d04f9870c8091456f3ddc5ba7eabc92c3f6ae76802f5bdfac658ebdc">Contact::PresenceStateYes</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ae70040aad36cf4a546c3f7f2cc66645f"></a><!-- doxytag: member="Tp::ContactManager::subscriptionRemovalHasMessage" ref="ae70040aad36cf4a546c3f7f2cc66645f" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Tp::ContactManager::subscriptionRemovalHasMessage </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return whether a message can be sent when removing an existing subscription to the presence of a contact.</p>
<p>If no message will actually be sent, user interfaces should avoid prompting the user for a message, and use an empty string for the message argument.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether the message argument to <a class="el" href="classTp_1_1Contact.html#ab907f90204744c50836abd5a54d674fa">Contact::removePresenceSubscription</a> and removePresenceSubscription is actually used, for contacts with subscription state <a class="el" href="classTp_1_1Contact.html#ab758b1908d04f9870c8091456f3ddc5ba7eabc92c3f6ae76802f5bdfac658ebdc">Contact::PresenceStateYes</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ae14695e4e6eb0385b3d6f69cfbd032fd"></a><!-- doxytag: member="Tp::ContactManager::canRescindPresenceSubscriptionRequest" ref="ae14695e4e6eb0385b3d6f69cfbd032fd" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Tp::ContactManager::canRescindPresenceSubscriptionRequest </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return whether the user can cancel a request to subscribe to a contact's presence before that contact has responded.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether removePresenceSubscription and <a class="el" href="classTp_1_1Contact.html#ab907f90204744c50836abd5a54d674fa">Contact::removePresenceSubscription</a> are likely to succeed for contacts with subscription state <a class="el" href="classTp_1_1Contact.html#ab758b1908d04f9870c8091456f3ddc5ba9c5f79349a1de47e9734bf77042f0728">Contact::PresenceStateAsk</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a763cc321e395d3252d9ca04a02086527"></a><!-- doxytag: member="Tp::ContactManager::subscriptionRescindingHasMessage" ref="a763cc321e395d3252d9ca04a02086527" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Tp::ContactManager::subscriptionRescindingHasMessage </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return whether a message can be sent when cancelling a request to subscribe to the presence of a contact.</p>
<p>If no message will actually be sent, user interfaces should avoid prompting the user for a message, and use an empty string for the message argument.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether the message argument to <a class="el" href="classTp_1_1Contact.html#ab907f90204744c50836abd5a54d674fa">Contact::removePresenceSubscription</a> and removePresenceSubscription is actually used, for contacts with subscription state <a class="el" href="classTp_1_1Contact.html#ab758b1908d04f9870c8091456f3ddc5ba9c5f79349a1de47e9734bf77042f0728">Contact::PresenceStateAsk</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a368a06c54d07ede65d273cf693b2332f"></a><!-- doxytag: member="Tp::ContactManager::removePresenceSubscription" ref="a368a06c54d07ede65d273cf693b2332f" args="(const QList< ContactPtr > &contacts, const QString &message=QString())" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * Tp::ContactManager::removePresenceSubscription </td>
<td>(</td>
<td class="paramtype">const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > & </td>
<td class="paramname"> <em>contacts</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>message</em> = <code>QString()</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Attempt to stop receiving the presence of the given contacts, or cancel a request to subscribe to their presence that was previously sent.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>contacts</em> </td><td>Contacts whose presence is no longer required A message from the user which is either transmitted to the contacts, or ignored, depending on the protocol </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pending operation which will return when an attempt has been made to remove any subscription to the contacts' presence </dd></dl>
</div>
</div>
<a class="anchor" id="a5cae6b97938e3fdbfad730586030d765"></a><!-- doxytag: member="Tp::ContactManager::canAuthorizePresencePublication" ref="a5cae6b97938e3fdbfad730586030d765" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Tp::ContactManager::canAuthorizePresencePublication </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return true if the publication of the user's presence to contacts can be authorized.</p>
<p>This is always true, unless the protocol has no concept of authorizing publication (in which case contacts' publication status can never be <a class="el" href="classTp_1_1Contact.html#ab758b1908d04f9870c8091456f3ddc5ba9c5f79349a1de47e9734bf77042f0728">Contact::PresenceStateAsk</a>). </p>
</div>
</div>
<a class="anchor" id="aae15b650476959aa7aa2397859e8ad9c"></a><!-- doxytag: member="Tp::ContactManager::publicationAuthorizationHasMessage" ref="aae15b650476959aa7aa2397859e8ad9c" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Tp::ContactManager::publicationAuthorizationHasMessage </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return whether a message can be sent when authorizing a request from a contact that the user's presence is published to them.</p>
<p>If no message will actually be sent, user interfaces should avoid prompting the user for a message, and use an empty string for the message argument.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether the message argument to <a class="el" href="classTp_1_1Contact.html#a4f83e036d937ca58e82b25f72efebdb1">Contact::authorizePresencePublication</a> and authorizePresencePublication is actually used, for contacts with subscription state <a class="el" href="classTp_1_1Contact.html#ab758b1908d04f9870c8091456f3ddc5ba9c5f79349a1de47e9734bf77042f0728">Contact::PresenceStateAsk</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a22916788a01fc087d66088ae756f6660"></a><!-- doxytag: member="Tp::ContactManager::authorizePresencePublication" ref="a22916788a01fc087d66088ae756f6660" args="(const QList< ContactPtr > &contacts, const QString &message=QString())" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * Tp::ContactManager::authorizePresencePublication </td>
<td>(</td>
<td class="paramtype">const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > & </td>
<td class="paramname"> <em>contacts</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>message</em> = <code>QString()</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>If the given contacts have asked the user to publish presence to them, grant permission for this publication to take place.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>contacts</em> </td><td>Contacts who should be allowed to receive the user's presence A message from the user which is either transmitted to the contacts, or ignored, depending on the protocol </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pending operation which will return when an attempt has been made to authorize publication of the user's presence to the contacts </dd></dl>
</div>
</div>
<a class="anchor" id="a103ec996765a5e3434cb8b265427666f"></a><!-- doxytag: member="Tp::ContactManager::publicationRejectionHasMessage" ref="a103ec996765a5e3434cb8b265427666f" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Tp::ContactManager::publicationRejectionHasMessage </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return whether a message can be sent when rejecting a request from a contact that the user's presence is published to them.</p>
<p>If no message will actually be sent, user interfaces should avoid prompting the user for a message, and use an empty string for the message argument.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether the message argument to <a class="el" href="classTp_1_1Contact.html#ab4b51e36e7efe1a921c2fb2d7bc391fb">Contact::removePresencePublication</a> and removePresencePublication is actually used, for contacts with subscription state <a class="el" href="classTp_1_1Contact.html#ab758b1908d04f9870c8091456f3ddc5ba9c5f79349a1de47e9734bf77042f0728">Contact::PresenceStateAsk</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a1602d61f630c016d41525b54c5e73caa"></a><!-- doxytag: member="Tp::ContactManager::canRemovePresencePublication" ref="a1602d61f630c016d41525b54c5e73caa" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Tp::ContactManager::canRemovePresencePublication </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return true if the publication of the user's presence to contacts can be removed, even after permission has been given.</p>
<p>(Rejecting requests for presence to be published is always allowed.)</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether removePresencePublication and <a class="el" href="classTp_1_1Contact.html#ab4b51e36e7efe1a921c2fb2d7bc391fb">Contact::removePresencePublication</a> are likely to succeed for contacts with subscription state <a class="el" href="classTp_1_1Contact.html#ab758b1908d04f9870c8091456f3ddc5ba7eabc92c3f6ae76802f5bdfac658ebdc">Contact::PresenceStateYes</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a1fc517663e67692b9b8b688aafec5095"></a><!-- doxytag: member="Tp::ContactManager::publicationRemovalHasMessage" ref="a1fc517663e67692b9b8b688aafec5095" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Tp::ContactManager::publicationRemovalHasMessage </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return whether a message can be sent when revoking earlier permission that the user's presence is published to a contact.</p>
<p>If no message will actually be sent, user interfaces should avoid prompting the user for a message, and use an empty string for the message argument.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether the message argument to <a class="el" href="classTp_1_1Contact.html#ab4b51e36e7efe1a921c2fb2d7bc391fb">Contact::removePresencePublication</a> and removePresencePublication is actually used, for contacts with subscription state <a class="el" href="classTp_1_1Contact.html#ab758b1908d04f9870c8091456f3ddc5ba7eabc92c3f6ae76802f5bdfac658ebdc">Contact::PresenceStateYes</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a6e1d65b5d6be2af709e88f87216750e5"></a><!-- doxytag: member="Tp::ContactManager::removePresencePublication" ref="a6e1d65b5d6be2af709e88f87216750e5" args="(const QList< ContactPtr > &contacts, const QString &message=QString())" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * Tp::ContactManager::removePresencePublication </td>
<td>(</td>
<td class="paramtype">const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > & </td>
<td class="paramname"> <em>contacts</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>message</em> = <code>QString()</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>If the given contacts have asked the user to publish presence to them, deny this request (this should always succeed, unless a network error occurs).</p>
<p>If the given contacts already have permission to receive the user's presence, attempt to revoke that permission (this might not be supported by the protocol - canRemovePresencePublication indicates whether it is likely to succeed).</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>contacts</em> </td><td>Contacts who should no longer be allowed to receive the user's presence A message from the user which is either transmitted to the contacts, or ignored, depending on the protocol </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pending operation which will return when an attempt has been made to remove any publication of the user's presence to the contacts </dd></dl>
</div>
</div>
<a class="anchor" id="a5366527c88063801f1222443d2909ce9"></a><!-- doxytag: member="Tp::ContactManager::canBlockContacts" ref="a5366527c88063801f1222443d2909ce9" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Tp::ContactManager::canBlockContacts </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return whether this protocol has a list of blocked contacts.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Whether blockContacts is likely to succeed </dd></dl>
</div>
</div>
<a class="anchor" id="ae86c9ee8b0f58c53c0b647f3c47c0251"></a><!-- doxytag: member="Tp::ContactManager::blockContacts" ref="ae86c9ee8b0f58c53c0b647f3c47c0251" args="(const QList< ContactPtr > &contacts, bool value=true)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1PendingOperation.html">PendingOperation</a> * Tp::ContactManager::blockContacts </td>
<td>(</td>
<td class="paramtype">const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > & </td>
<td class="paramname"> <em>contacts</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>value</em> = <code>true</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set whether the given contacts are blocked. Blocked contacts cannot send messages to the user; depending on the protocol, blocking a contact may have other effects.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>contacts</em> </td><td>Contacts who should be added to, or removed from, the list of blocked contacts </td></tr>
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>If true, add the contacts to the list of blocked contacts; if false, remove them from the list </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pending operation which will return when an attempt has been made to take the requested action </dd></dl>
</div>
</div>
<a class="anchor" id="a6f7f0e92cd0f4074f78e0f58d7354218"></a><!-- doxytag: member="Tp::ContactManager::contactsForHandles" ref="a6f7f0e92cd0f4074f78e0f58d7354218" args="(const UIntList &handles, const QSet< Contact::Feature > &features=QSet< Contact::Feature >())" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1PendingContacts.html">PendingContacts</a> * Tp::ContactManager::contactsForHandles </td>
<td>(</td>
<td class="paramtype">const UIntList & </td>
<td class="paramname"> <em>handles</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QSet< <a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a> > & </td>
<td class="paramname"> <em>features</em> = <code>QSet<<a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a>>()</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a65f4ce65b2829687ff591cbd427a43eb"></a><!-- doxytag: member="Tp::ContactManager::contactsForHandles" ref="a65f4ce65b2829687ff591cbd427a43eb" args="(const ReferencedHandles &handles, const QSet< Contact::Feature > &features=QSet< Contact::Feature >())" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1PendingContacts.html">PendingContacts</a> * Tp::ContactManager::contactsForHandles </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classTp_1_1ReferencedHandles.html">ReferencedHandles</a> & </td>
<td class="paramname"> <em>handles</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QSet< <a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a> > & </td>
<td class="paramname"> <em>features</em> = <code>QSet<<a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a>>()</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="aa627e2d5a1bef43fcca005aea696cb4c"></a><!-- doxytag: member="Tp::ContactManager::contactsForIdentifiers" ref="aa627e2d5a1bef43fcca005aea696cb4c" args="(const QStringList &identifiers, const QSet< Contact::Feature > &features=QSet< Contact::Feature >())" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1PendingContacts.html">PendingContacts</a> * Tp::ContactManager::contactsForIdentifiers </td>
<td>(</td>
<td class="paramtype">const QStringList & </td>
<td class="paramname"> <em>identifiers</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QSet< <a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a> > & </td>
<td class="paramname"> <em>features</em> = <code>QSet<<a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a>>()</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a8c09493ebc0746416db5157b3f9c7129"></a><!-- doxytag: member="Tp::ContactManager::upgradeContacts" ref="a8c09493ebc0746416db5157b3f9c7129" args="(const QList< ContactPtr > &contacts, const QSet< Contact::Feature > &features)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classTp_1_1PendingContacts.html">PendingContacts</a> * Tp::ContactManager::upgradeContacts </td>
<td>(</td>
<td class="paramtype">const QList< <a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> > & </td>
<td class="paramname"> <em>contacts</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QSet< <a class="el" href="classTp_1_1Contact.html#a3c12a1037c64a4969f55e5bf19729560">Contact::Feature</a> > & </td>
<td class="paramname"> <em>features</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="adfe9808bd666b5a56a037735d4ec108b"></a><!-- doxytag: member="Tp::ContactManager::lookupContactByHandle" ref="adfe9808bd666b5a56a037735d4ec108b" args="(uint handle)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceTp.html#a8851d7a4827022bfff3c1b15320a0289">ContactPtr</a> Tp::ContactManager::lookupContactByHandle </td>
<td>(</td>
<td class="paramtype">uint </td>
<td class="paramname"> <em>handle</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a6fd4463cdd976722642239d5412691a0"></a><!-- doxytag: member="Tp::ContactManager::presencePublicationRequested" ref="a6fd4463cdd976722642239d5412691a0" args="(const Tp::Contacts &contacts)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Tp::ContactManager::presencePublicationRequested </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Tp::Contacts</a> & </td>
<td class="paramname"> <em>contacts</em></td>
<td> ) </td>
<td><code> [signal]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a9f4088f2dc6fde3d93081bd4cc0eee64"></a><!-- doxytag: member="Tp::ContactManager::groupAdded" ref="a9f4088f2dc6fde3d93081bd4cc0eee64" args="(const QString &group)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Tp::ContactManager::groupAdded </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>group</em></td>
<td> ) </td>
<td><code> [signal]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a9ed8c4284e625ea4eeba9a52c922d89d"></a><!-- doxytag: member="Tp::ContactManager::groupRemoved" ref="a9ed8c4284e625ea4eeba9a52c922d89d" args="(const QString &group)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Tp::ContactManager::groupRemoved </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>group</em></td>
<td> ) </td>
<td><code> [signal]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="aeb72dad161ab1fd46fb26d904b3b0078"></a><!-- doxytag: member="Tp::ContactManager::groupMembersChanged" ref="aeb72dad161ab1fd46fb26d904b3b0078" args="(const QString &group, const Tp::Contacts &groupMembersAdded, const Tp::Contacts &groupMembersRemoved)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Tp::ContactManager::groupMembersChanged </td>
<td>(</td>
<td class="paramtype">const QString & </td>
<td class="paramname"> <em>group</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Tp::Contacts</a> & </td>
<td class="paramname"> <em>groupMembersAdded</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Tp::Contacts</a> & </td>
<td class="paramname"> <em>groupMembersRemoved</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [signal]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="af9ef1fd48bb7e236c2a73210755ff5c7"></a><!-- doxytag: member="Tp::ContactManager::allKnownContactsChanged" ref="af9ef1fd48bb7e236c2a73210755ff5c7" args="(const Tp::Contacts &contactsAdded, const Tp::Contacts &contactsRemoved)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Tp::ContactManager::allKnownContactsChanged </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Tp::Contacts</a> & </td>
<td class="paramname"> <em>contactsAdded</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="namespaceTp.html#aebaea72cfe74d9d2a30ae88539f05c82">Tp::Contacts</a> & </td>
<td class="paramname"> <em>contactsRemoved</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [signal]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This signal is emitted whenever some contacts got removed or added from ContactManager's known contact list. It is useful for monitoring which contacts are currently known by <a class="el" href="classTp_1_1ContactManager.html" title="The ContactManager class is responsible for managing contacts.">ContactManager</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>contactsAdded</em> </td><td>A set of contacts which were added to the known contact list </td></tr>
<tr><td valign="top"></td><td valign="top"><em>contactsRemoved</em> </td><td>A set of contacts which were removed from the known contact list</td></tr>
</table>
</dd>
</dl>
<dl class="note"><dt><b>Note:</b></dt><dd>Please note that, in some protocols, this signal could stream newly added contacts with both presence subscription and publication state set to No. Be sure to watch over publication and/or subscription state changes if that is the case. </dd></dl>
</div>
</div>
</div>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright © 2008-2010 Collabora Ltd. and Nokia Corporation</td>
<td width="30%" align="right"><div align="right">Telepathy-Qt4 0.3.6</div></td>
</tr></table></div></address>
</body>
</html>
|