ConnectionContactsByHandleCb
Description:
[ Version ( since = "0.7.18" ) ]
public delegate void ConnectionContactsByHandleCb (Connection connection, Contact[] contacts, Handle[] failed, Error error, Object weak_object)
Signature of a callback used to receive the result of get_contacts_by_handle.
If an unrecoverable error occurs (for instance, if connection
becomes disconnected) the whole operation fails, and no contacts or
invalid handles are returned.
If some or even all of the handles
passed to
get_contacts_by_handle were not valid, this is
not considered to be a failure. error
will be null
in this situation, contacts
will contain contact
objects for those handles that were valid (possibly none of them), and invalid
will contain the handles that were not valid.
Parameters:
connection |
The connection |
contacts |
An array of |
failed |
An array of |
error |
|
weak_object |
the |
n_contacts |
The number of TpContact objects successfully created (one per valid handle), or 0 on unrecoverable errors |
n_failed |
The number of invalid handles that were passed to get_contacts_by_handle (or on unrecoverable errors, the total number of handles that were given) |
user_data |
the |