Methods
BlockContacts | (au: Contact) | → | nothing | |
UnblockContacts | (au: Contact) | → | nothing | |
RequestBlockedContacts | () | → | au: Contacts |
Signals
BlockedContactsChanged | (au: BlockedContacts, au: UnblockedContacts) |
Contact Attributes
org.freedesktop.Telepathy.Connection.Interface.ContactBlocking.DRAFT/blocked | b |
Description
An interface for connections where contacts can be blocked from communicating with this user and receiving this user's presence.
When this interface becomes stable, it will replace the ContactList channel with TargetHandleType Handle_Type_List and TargetID 'deny'.
Methods
BlockContacts (au: Contact) → nothing
Parameters
- Contact — au (Contact_Handle_List)
Direct the server to block some contacts. The precise effect is protocol-dependent, but SHOULD include ignoring all current and subsequent communications from the given contacts, avoiding sending presence to them in future, and if they were already receiving the local user's presence, behaving as if the local user went offline.
FIXME: do we need to allow this on protocols where it won't persist, or where we can't edit the block lists?
Possible Errors
- Disconnected
- Invalid Handle
- Network Error
UnblockContacts (au: Contact) → nothing
Parameters
- Contact — au (Contact_Handle_List)
Reverse the effects of a previous call to BlockContacts.
Possible Errors
- Disconnected
- Invalid Handle
- Network Error
RequestBlockedContacts () → au: Contacts
Returns
- Contacts — au (Contact_Handle_List)
List the contacts that are blocked.
Clients SHOULD allow a relatively long timeout for calls to this method, since on some protocols contact blocking is part of the contact list, which can take a significant time to retrieve.
Possible Errors
- Disconnected
- Invalid Handle
- Network Error
Signals
BlockedContactsChanged (au: BlockedContacts, au: UnblockedContacts)
Parameters
- BlockedContacts — au (Contact_Handle_List)
- UnblockedContacts — au (Contact_Handle_List)
Emitted when the list of blocked contacts is first retrieved (before returning from any pending calls to RequestBlockedContacts), and whenever the list of blocked contacts subsequently changes.
Contact Attributes
org.freedesktop.Telepathy.Connection.Interface.ContactBlocking.DRAFT/blocked — b
True if the contact would be in the result of RequestBlockedContacts; False or omitted if the contact is not blocked, or if it is unknown whether the contact is blocked.