Methods
BlockContacts | (au: Contacts, b: Report_Abusive) | → | nothing | |
UnblockContacts | (au: Contacts) | → | nothing | |
RequestBlockedContacts | () | → | au: Contacts |
Signals
BlockedContactsChanged | (au: BlockedContacts, au: UnblockedContacts) |
Properties
ContactBlockingCapabilities | u (Contact_Blocking_Capabilities) | Read only |
Contact Attributes
org.freedesktop.Telepathy.Connection.Interface.ContactBlocking.DRAFT/blocked | b |
Types
Contact_Blocking_Capabilities | Flags | u |
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: Contacts, b: Report_Abusive) → nothing
Parameters
- Contacts — au (Contact_Handle_List)
- Report_Abusive — b
In addition to blocking, report these contacts as abusive to the server administrators.
Clients can determine whether this capability is available by
checking the
ContactBlockingCapabilities
property. If the capability is not present and this argument is
true, the error
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
- Not Capable
UnblockContacts (au: Contacts) → nothing
Parameters
- Contacts — 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.
Properties
ContactBlockingCapabilities — u (Contact_Blocking_Capabilities)
Additional capabilities for contact blocking (i.e. whether we can report abusive contacts).
Note: there is no capability for supporting blocking itself, the presence of this interface indicates that contact blocking is supported.
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.
Types
Contact_Blocking_Capabilities — u
- Can_Report_Abusive (1)