Top |
Connection Addressing interfaceConnection Addressing interface — client-side wrappers for the Addressing interface |
An interface for connections in protocols where contacts' unique identifiers can be expressed as vCard fields and/or URIs.
TpProxyPendingCall * tp_cli_connection_interface_addressing1_call_get_contacts_by_uri (TpConnection *proxy
,gint timeout_ms
,const gchar **in_URIs
,const gchar **in_Interfaces
,tp_cli_connection_interface_addressing1_callback_for_get_contacts_by_uri callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
Start a GetContactsByURI method call.
<tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>Request contacts and retrieve their attributes using URI addresses.</p>
proxy |
the TpProxy |
|
timeout_ms |
the timeout in milliseconds, or -1 to use the default |
|
in_URIs |
Used to pass an 'in' argument: The URI addresses to get contact handles for. Supported schemes can be found in <tp:dbus-ref namespace="im.telepathy.v1.Protocol.Interface.Addressing1">AddressableURISchemes</tp:dbus-ref>. |
|
in_Interfaces |
Used to pass an 'in' argument: <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>A list of strings indicating which D-Bus interfaces the calling process is interested in. All supported attributes from these interfaces, whose values can be obtained without additional network activity, will be in the reply.</p> <p>Attributes from this interface and from <tp:dbus-ref>im.telepathy.v1.Connection</tp:dbus-ref> are always returned, and need not be requested explicitly.</p> <p>The behavior of this parameter is similar to the same parameter in <tp:dbus-ref namespace="im.telepathy.v1.Connection">GetContactAttributes</tp:dbus-ref>.</p> |
|
callback |
called when the method call succeeds or fails;
may be |
|
user_data |
user-supplied data passed to the callback;
must be |
|
destroy |
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be |
|
weak_object |
If not |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.
TpProxyPendingCall * tp_cli_connection_interface_addressing1_call_get_contacts_by_vcard_field (TpConnection *proxy
,gint timeout_ms
,const gchar *in_Field
,const gchar **in_Addresses
,const gchar **in_Interfaces
,tp_cli_connection_interface_addressing1_callback_for_get_contacts_by_vcard_field callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
Start a GetContactsByVCardField method call.
<tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>Request contacts and retrieve their attributes using a given field in their vCards.</p>
proxy |
the TpProxy |
|
timeout_ms |
the timeout in milliseconds, or -1 to use the default |
|
in_Field |
Used to pass an 'in' argument: <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>The vCard field of the addresses we are requesting. The field name SHOULD be in lower case. Supported fields can be found in <tp:dbus-ref namespace="im.telepathy.v1.Protocol.Interface.Addressing1">AddressableVCardFields</tp:dbus-ref>.</p> <p>The <code>url</code> vCard field MUST NOT appear here; see <tp:member-ref>GetContactsByURI</tp:member-ref> instead.</p> <tp:rationale> <p>In practice, protocols have a limited set of URI schemes that make sense to resolve as a contact.</p> </tp:rationale> |
|
in_Addresses |
Used to pass an 'in' argument: The addresses to get contact handles for. The address types should match the given vCard field. |
|
in_Interfaces |
Used to pass an 'in' argument: <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>A list of strings indicating which D-Bus interfaces the calling process is interested in. All supported attributes from these interfaces, whose values can be obtained without additional network activity, will be in the reply.</p> <p>Attributes from this interface and from <tp:dbus-ref>im.telepathy.v1.Connection</tp:dbus-ref> are always returned, and need not be requested explicitly.</p> <p>The behavior of this parameter is similar to the same parameter in <tp:dbus-ref namespace="im.telepathy.v1.Connection">GetContactAttributes</tp:dbus-ref>.</p> |
|
callback |
called when the method call succeeds or fails;
may be |
|
user_data |
user-supplied data passed to the callback;
must be |
|
destroy |
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be |
|
weak_object |
If not |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.
void (*tp_cli_connection_interface_addressing1_callback_for_get_contacts_by_uri) (TpConnection *proxy
,GHashTable *out_Requested
,GHashTable *out_Attributes
,const GError *error
,gpointer user_data
,GObject *weak_object
);
Signature of the callback called when a GetContactsByURI method call succeeds or fails.
proxy |
the proxy on which the call was made |
|
out_Requested |
Used to return an 'out' argument if |
|
out_Attributes |
Used to return an 'out' argument if |
|
error |
|
|
user_data |
user-supplied data |
|
weak_object |
user-supplied object |
void (*tp_cli_connection_interface_addressing1_callback_for_get_contacts_by_vcard_field) (TpConnection *proxy
,GHashTable *out_Requested
,GHashTable *out_Attributes
,const GError *error
,gpointer user_data
,GObject *weak_object
);
Signature of the callback called when a GetContactsByVCardField method call succeeds or fails.
proxy |
the proxy on which the call was made |
|
out_Requested |
Used to return an 'out' argument if |
|
out_Attributes |
Used to return an 'out' argument if |
|
error |
|
|
user_data |
user-supplied data |
|
weak_object |
user-supplied object |