telepathy-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description |
Connection Avatars interfaceConnection Avatars interface — client-side wrappers for the Avatars interface |
#include <telepathy-glib/connection.h> gboolean tp_cli_connection_interface_avatars_run_clear_avatar (TpConnection *proxy
,gint timeout_ms
,GError **error
,GMainLoop **loop
); gboolean tp_cli_connection_interface_avatars_run_get_avatar_requirements (TpConnection *proxy
,gint timeout_ms
,gchar ***out_MIME_Types
,guint *out_Min_Width
,guint *out_Min_Height
,guint *out_Max_Width
,guint *out_Max_Height
,guint *out_Max_Bytes
,GError **error
,GMainLoop **loop
); gboolean tp_cli_connection_interface_avatars_run_get_avatar_tokens (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Contacts
,gchar ***out_Tokens
,GError **error
,GMainLoop **loop
); gboolean tp_cli_connection_interface_avatars_run_get_known_avatar_tokens (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Contacts
,GHashTable **out_Tokens
,GError **error
,GMainLoop **loop
); gboolean tp_cli_connection_interface_avatars_run_request_avatar (TpConnection *proxy
,gint timeout_ms
,guint in_Contact
,GArray **out_Data
,gchar **out_MIME_Type
,GError **error
,GMainLoop **loop
); gboolean tp_cli_connection_interface_avatars_run_request_avatars (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Contacts
,GError **error
,GMainLoop **loop
); gboolean tp_cli_connection_interface_avatars_run_set_avatar (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Avatar
,const gchar *in_MIME_Type
,gchar **out_Token
,GError **error
,GMainLoop **loop
); TpProxyPendingCall * tp_cli_connection_interface_avatars_call_clear_avatar (TpConnection *proxy
,gint timeout_ms
,tp_cli_connection_interface_avatars_callback_for_clear_avatar callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
); TpProxyPendingCall * tp_cli_connection_interface_avatars_call_get_avatar_requirements (TpConnection *proxy
,gint timeout_ms
,tp_cli_connection_interface_avatars_callback_for_get_avatar_requirements callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
); TpProxyPendingCall * tp_cli_connection_interface_avatars_call_get_avatar_tokens (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Contacts
,tp_cli_connection_interface_avatars_callback_for_get_avatar_tokens callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
); TpProxyPendingCall * tp_cli_connection_interface_avatars_call_get_known_avatar_tokens (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Contacts
,tp_cli_connection_interface_avatars_callback_for_get_known_avatar_tokens callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
); TpProxyPendingCall * tp_cli_connection_interface_avatars_call_request_avatar (TpConnection *proxy
,gint timeout_ms
,guint in_Contact
,tp_cli_connection_interface_avatars_callback_for_request_avatar callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
); TpProxyPendingCall * tp_cli_connection_interface_avatars_call_request_avatars (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Contacts
,tp_cli_connection_interface_avatars_callback_for_request_avatars callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
); TpProxyPendingCall * tp_cli_connection_interface_avatars_call_set_avatar (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Avatar
,const gchar *in_MIME_Type
,tp_cli_connection_interface_avatars_callback_for_set_avatar callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
); void (*tp_cli_connection_interface_avatars_callback_for_clear_avatar) (TpConnection *proxy
,const GError *error
,gpointer user_data
,GObject *weak_object
); void (*tp_cli_connection_interface_avatars_callback_for_get_avatar_requirements) (TpConnection *proxy
,const gchar **out_MIME_Types
,guint out_Min_Width
,guint out_Min_Height
,guint out_Max_Width
,guint out_Max_Height
,guint out_Max_Bytes
,const GError *error
,gpointer user_data
,GObject *weak_object
); void (*tp_cli_connection_interface_avatars_callback_for_get_avatar_tokens) (TpConnection *proxy
,const gchar **out_Tokens
,const GError *error
,gpointer user_data
,GObject *weak_object
); void (*tp_cli_connection_interface_avatars_callback_for_get_known_avatar_tokens) (TpConnection *proxy
,GHashTable *out_Tokens
,const GError *error
,gpointer user_data
,GObject *weak_object
); void (*tp_cli_connection_interface_avatars_callback_for_request_avatar) (TpConnection *proxy
,const GArray *out_Data
,const gchar *out_MIME_Type
,const GError *error
,gpointer user_data
,GObject *weak_object
); void (*tp_cli_connection_interface_avatars_callback_for_request_avatars) (TpConnection *proxy
,const GError *error
,gpointer user_data
,GObject *weak_object
); void (*tp_cli_connection_interface_avatars_callback_for_set_avatar) (TpConnection *proxy
,const gchar *out_Token
,const GError *error
,gpointer user_data
,GObject *weak_object
); TpProxySignalConnection * tp_cli_connection_interface_avatars_connect_to_avatar_retrieved (TpConnection *proxy
,tp_cli_connection_interface_avatars_signal_callback_avatar_retrieved callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
,GError **error
); TpProxySignalConnection * tp_cli_connection_interface_avatars_connect_to_avatar_updated (TpConnection *proxy
,tp_cli_connection_interface_avatars_signal_callback_avatar_updated callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
,GError **error
); void (*tp_cli_connection_interface_avatars_signal_callback_avatar_retrieved) (TpConnection *proxy
,guint arg_Contact
,const gchar *arg_Token
,const GArray *arg_Avatar
,const gchar *arg_Type
,gpointer user_data
,GObject *weak_object
); void (*tp_cli_connection_interface_avatars_signal_callback_avatar_updated) (TpConnection *proxy
,guint arg_Contact
,const gchar *arg_New_Avatar_Token
,gpointer user_data
,GObject *weak_object
);
Most instant messaging protocols allow users to set an icon or avatar. This section documents the auto-generated C wrappers for the Avatar interface, used with TpConnection objects.
gboolean tp_cli_connection_interface_avatars_run_clear_avatar (TpConnection *proxy
,gint timeout_ms
,GError **error
,GMainLoop **loop
);
Call the method ClearAvatar and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Remove the avatar image for this connection.
|
A TpConnection or subclass |
|
Timeout in milliseconds, or -1 for default |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
gboolean tp_cli_connection_interface_avatars_run_get_avatar_requirements (TpConnection *proxy
,gint timeout_ms
,gchar ***out_MIME_Types
,guint *out_Min_Width
,guint *out_Min_Height
,guint *out_Max_Width
,guint *out_Max_Height
,guint *out_Max_Bytes
,GError **error
,GMainLoop **loop
);
tp_cli_connection_interface_avatars_run_get_avatar_requirements
is deprecated and should not be used in newly-written code. Use GetAll to retrieve the D-Bus properties on this interface, falling back to this method on failure.
Call the method GetAvatarRequirements and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Get the required format of avatars on this connection.
|
A TpConnection or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to return an 'out' argument if TRUE is returned: An array of supported MIME types (eg image/jpeg)
|
|
Used to return an 'out' argument if TRUE is returned: The minimum image width in pixels
|
|
Used to return an 'out' argument if TRUE is returned: The minimum image height in pixels
|
|
Used to return an 'out' argument if TRUE is returned: The maximum image width in pixels, or 0 if there is no limit
|
|
Used to return an 'out' argument if TRUE is returned: The maximum image height in pixels, or 0 if there is no limit
|
|
Used to return an 'out' argument if TRUE is returned: The maximum image size in bytes, or 0 if there is no limit
|
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
gboolean tp_cli_connection_interface_avatars_run_get_avatar_tokens (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Contacts
,gchar ***out_Tokens
,GError **error
,GMainLoop **loop
);
tp_cli_connection_interface_avatars_run_get_avatar_tokens
is deprecated and should not be used in newly-written code. Use GetKnownAvatarTokens instead.
Call the method GetAvatarTokens and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Get the unique tokens for all of the given contacts' avatars. Using this method in new Telepathy clients is deprecated; use <tp:member-ref>GetKnownAvatarTokens</tp:member-ref> instead.
|
A TpConnection or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: An array of handles representing contacts |
|
Used to return an 'out' argument if TRUE is returned: An array of avatar tokens or empty strings (if no avatar is set) in the same order as the given array of contact handles
|
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
gboolean tp_cli_connection_interface_avatars_run_get_known_avatar_tokens (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Contacts
,GHashTable **out_Tokens
,GError **error
,GMainLoop **loop
);
Call the method GetKnownAvatarTokens and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Get the unique tokens for the given contacts' avatars. These tokens can be persisted across connections, and should be used by the client to check whether the avatars have been updated. For handles other than the self handle, only tokens that are already known are returned; an empty token means the given contact has no avatar. However, a CM must always have the tokens for the self handle if one is set (even if it is set to no avatar). On protocols where the avatar does not persist between connections, a CM should omit the self handle from the returned map until an avatar is explicitly set or cleared.
|
A TpConnection or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: An array of handles representing contacts |
|
Used to return an 'out' argument if TRUE is returned: A dictionary of handles mapped to avatar tokens, containing only the known avatar tokens.
|
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
gboolean tp_cli_connection_interface_avatars_run_request_avatar (TpConnection *proxy
,gint timeout_ms
,guint in_Contact
,GArray **out_Data
,gchar **out_MIME_Type
,GError **error
,GMainLoop **loop
);
tp_cli_connection_interface_avatars_run_request_avatar
is deprecated and should not be used in newly-written code. Use RequestAvatars instead.
Call the method RequestAvatar and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Request the avatar for a given contact. Using this method in new Telepathy clients is deprecated; use RequestAvatars instead.
|
A TpConnection or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: An integer handle for the contact to request the avatar for |
|
Used to return an 'out' argument if TRUE is returned: An array of bytes containing the image data
|
|
Used to return an 'out' argument if TRUE is returned: A string containing the image MIME type (eg image/jpeg), or empty if unknown
|
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
gboolean tp_cli_connection_interface_avatars_run_request_avatars (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Contacts
,GError **error
,GMainLoop **loop
);
Call the method RequestAvatars and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Request avatars for a number of contacts. The <tp:member-ref>AvatarRetrieved</tp:member-ref> signal is emitted for each avatar retrieved. If the handles are valid but retrieving an avatar fails (for any reason, including the contact not having an avatar) the AvatarRetrieved signal is not emitted for that contact.
|
A TpConnection or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: The contacts to retrieve avatars for |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
gboolean tp_cli_connection_interface_avatars_run_set_avatar (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Avatar
,const gchar *in_MIME_Type
,gchar **out_Token
,GError **error
,GMainLoop **loop
);
Call the method SetAvatar and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Set a new avatar image for this connection. The avatar image must respect the requirements obtained by <tp:member-ref>GetAvatarRequirements</tp:member-ref>.
|
A TpConnection or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: An array of bytes representing the avatar image data |
|
Used to pass an 'in' argument: A string representing the image MIME type |
|
Used to return an 'out' argument if TRUE is returned: The string token of the new avatar
|
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
TpProxyPendingCall * tp_cli_connection_interface_avatars_call_clear_avatar (TpConnection *proxy
,gint timeout_ms
,tp_cli_connection_interface_avatars_callback_for_clear_avatar callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
Start a ClearAvatar method call.
Remove the avatar image for this connection.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
called when the method call succeeds or fails;
may be NULL to make a "fire and forget" call with no
reply tracking
|
|
user-supplied data passed to the callback;
must be NULL if callback is NULL
|
|
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be NULL if callback is NULL
|
|
If not NULL , a GObject which will be
weakly referenced; if it is destroyed, this call
will automatically be cancelled. Must be NULL if
callback is NULL
|
Returns : |
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_avatars_call_get_avatar_requirements (TpConnection *proxy
,gint timeout_ms
,tp_cli_connection_interface_avatars_callback_for_get_avatar_requirements callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
tp_cli_connection_interface_avatars_call_get_avatar_requirements
is deprecated and should not be used in newly-written code. Use GetAll to retrieve the D-Bus properties on this interface, falling back to this method on failure.
Start a GetAvatarRequirements method call.
Get the required format of avatars on this connection.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
called when the method call succeeds or fails;
may be NULL to make a "fire and forget" call with no
reply tracking
|
|
user-supplied data passed to the callback;
must be NULL if callback is NULL
|
|
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be NULL if callback is NULL
|
|
If not NULL , a GObject which will be
weakly referenced; if it is destroyed, this call
will automatically be cancelled. Must be NULL if
callback is NULL
|
Returns : |
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_avatars_call_get_avatar_tokens (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Contacts
,tp_cli_connection_interface_avatars_callback_for_get_avatar_tokens callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
tp_cli_connection_interface_avatars_call_get_avatar_tokens
is deprecated and should not be used in newly-written code. Use GetKnownAvatarTokens instead.
Start a GetAvatarTokens method call.
Get the unique tokens for all of the given contacts' avatars. Using this method in new Telepathy clients is deprecated; use <tp:member-ref>GetKnownAvatarTokens</tp:member-ref> instead.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: An array of handles representing contacts |
|
called when the method call succeeds or fails;
may be NULL to make a "fire and forget" call with no
reply tracking
|
|
user-supplied data passed to the callback;
must be NULL if callback is NULL
|
|
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be NULL if callback is NULL
|
|
If not NULL , a GObject which will be
weakly referenced; if it is destroyed, this call
will automatically be cancelled. Must be NULL if
callback is NULL
|
Returns : |
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_avatars_call_get_known_avatar_tokens (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Contacts
,tp_cli_connection_interface_avatars_callback_for_get_known_avatar_tokens callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
Start a GetKnownAvatarTokens method call.
Get the unique tokens for the given contacts' avatars. These tokens can be persisted across connections, and should be used by the client to check whether the avatars have been updated. For handles other than the self handle, only tokens that are already known are returned; an empty token means the given contact has no avatar. However, a CM must always have the tokens for the self handle if one is set (even if it is set to no avatar). On protocols where the avatar does not persist between connections, a CM should omit the self handle from the returned map until an avatar is explicitly set or cleared.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: An array of handles representing contacts |
|
called when the method call succeeds or fails;
may be NULL to make a "fire and forget" call with no
reply tracking
|
|
user-supplied data passed to the callback;
must be NULL if callback is NULL
|
|
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be NULL if callback is NULL
|
|
If not NULL , a GObject which will be
weakly referenced; if it is destroyed, this call
will automatically be cancelled. Must be NULL if
callback is NULL
|
Returns : |
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_avatars_call_request_avatar (TpConnection *proxy
,gint timeout_ms
,guint in_Contact
,tp_cli_connection_interface_avatars_callback_for_request_avatar callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
tp_cli_connection_interface_avatars_call_request_avatar
is deprecated and should not be used in newly-written code. Use RequestAvatars instead.
Start a RequestAvatar method call.
Request the avatar for a given contact. Using this method in new Telepathy clients is deprecated; use RequestAvatars instead.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: An integer handle for the contact to request the avatar for |
|
called when the method call succeeds or fails;
may be NULL to make a "fire and forget" call with no
reply tracking
|
|
user-supplied data passed to the callback;
must be NULL if callback is NULL
|
|
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be NULL if callback is NULL
|
|
If not NULL , a GObject which will be
weakly referenced; if it is destroyed, this call
will automatically be cancelled. Must be NULL if
callback is NULL
|
Returns : |
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_avatars_call_request_avatars (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Contacts
,tp_cli_connection_interface_avatars_callback_for_request_avatars callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
Start a RequestAvatars method call.
Request avatars for a number of contacts. The <tp:member-ref>AvatarRetrieved</tp:member-ref> signal is emitted for each avatar retrieved. If the handles are valid but retrieving an avatar fails (for any reason, including the contact not having an avatar) the AvatarRetrieved signal is not emitted for that contact.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: The contacts to retrieve avatars for |
|
called when the method call succeeds or fails;
may be NULL to make a "fire and forget" call with no
reply tracking
|
|
user-supplied data passed to the callback;
must be NULL if callback is NULL
|
|
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be NULL if callback is NULL
|
|
If not NULL , a GObject which will be
weakly referenced; if it is destroyed, this call
will automatically be cancelled. Must be NULL if
callback is NULL
|
Returns : |
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_avatars_call_set_avatar (TpConnection *proxy
,gint timeout_ms
,const GArray *in_Avatar
,const gchar *in_MIME_Type
,tp_cli_connection_interface_avatars_callback_for_set_avatar callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
Start a SetAvatar method call.
Set a new avatar image for this connection. The avatar image must respect the requirements obtained by <tp:member-ref>GetAvatarRequirements</tp:member-ref>.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: An array of bytes representing the avatar image data |
|
Used to pass an 'in' argument: A string representing the image MIME type |
|
called when the method call succeeds or fails;
may be NULL to make a "fire and forget" call with no
reply tracking
|
|
user-supplied data passed to the callback;
must be NULL if callback is NULL
|
|
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be NULL if callback is NULL
|
|
If not NULL , a GObject which will be
weakly referenced; if it is destroyed, this call
will automatically be cancelled. Must be NULL if
callback is NULL
|
Returns : |
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_avatars_callback_for_clear_avatar) (TpConnection *proxy
,const GError *error
,gpointer user_data
,GObject *weak_object
);
Signature of the callback called when a ClearAvatar method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
void (*tp_cli_connection_interface_avatars_callback_for_get_avatar_requirements) (TpConnection *proxy
,const gchar **out_MIME_Types
,guint out_Min_Width
,guint out_Min_Height
,guint out_Max_Width
,guint out_Max_Height
,guint out_Max_Bytes
,const GError *error
,gpointer user_data
,GObject *weak_object
);
tp_cli_connection_interface_avatars_callback_for_get_avatar_requirements
is deprecated and should not be used in newly-written code. Use GetAll to retrieve the D-Bus properties on this interface, falling back to this method on failure.
Signature of the callback called when a GetAvatarRequirements method call succeeds or fails.
|
the proxy on which the call was made |
|
Used to return an 'out' argument if error is NULL : An array of supported MIME types (eg image/jpeg)
|
|
Used to return an 'out' argument if error is NULL : The minimum image width in pixels
|
|
Used to return an 'out' argument if error is NULL : The minimum image height in pixels
|
|
Used to return an 'out' argument if error is NULL : The maximum image width in pixels, or 0 if there is no limit
|
|
Used to return an 'out' argument if error is NULL : The maximum image height in pixels, or 0 if there is no limit
|
|
Used to return an 'out' argument if error is NULL : The maximum image size in bytes, or 0 if there is no limit
|
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
void (*tp_cli_connection_interface_avatars_callback_for_get_avatar_tokens) (TpConnection *proxy
,const gchar **out_Tokens
,const GError *error
,gpointer user_data
,GObject *weak_object
);
tp_cli_connection_interface_avatars_callback_for_get_avatar_tokens
is deprecated and should not be used in newly-written code. Use GetKnownAvatarTokens instead.
Signature of the callback called when a GetAvatarTokens method call succeeds or fails.
|
the proxy on which the call was made |
|
Used to return an 'out' argument if error is NULL : An array of avatar tokens or empty strings (if no avatar is set) in the same order as the given array of contact handles
|
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
void (*tp_cli_connection_interface_avatars_callback_for_get_known_avatar_tokens) (TpConnection *proxy
,GHashTable *out_Tokens
,const GError *error
,gpointer user_data
,GObject *weak_object
);
Signature of the callback called when a GetKnownAvatarTokens method call succeeds or fails.
|
the proxy on which the call was made |
|
Used to return an 'out' argument if error is NULL : A dictionary of handles mapped to avatar tokens, containing only the known avatar tokens.
|
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
void (*tp_cli_connection_interface_avatars_callback_for_request_avatar) (TpConnection *proxy
,const GArray *out_Data
,const gchar *out_MIME_Type
,const GError *error
,gpointer user_data
,GObject *weak_object
);
tp_cli_connection_interface_avatars_callback_for_request_avatar
is deprecated and should not be used in newly-written code. Use RequestAvatars instead.
Signature of the callback called when a RequestAvatar method call succeeds or fails.
|
the proxy on which the call was made |
|
Used to return an 'out' argument if error is NULL : An array of bytes containing the image data
|
|
Used to return an 'out' argument if error is NULL : A string containing the image MIME type (eg image/jpeg), or empty if unknown
|
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
void (*tp_cli_connection_interface_avatars_callback_for_request_avatars) (TpConnection *proxy
,const GError *error
,gpointer user_data
,GObject *weak_object
);
Signature of the callback called when a RequestAvatars method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
void (*tp_cli_connection_interface_avatars_callback_for_set_avatar) (TpConnection *proxy
,const gchar *out_Token
,const GError *error
,gpointer user_data
,GObject *weak_object
);
Signature of the callback called when a SetAvatar method call succeeds or fails.
TpProxySignalConnection * tp_cli_connection_interface_avatars_connect_to_avatar_retrieved (TpConnection *proxy
,tp_cli_connection_interface_avatars_signal_callback_avatar_retrieved callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
,GError **error
);
Connect a handler to the signal AvatarRetrieved.
Emitted when the avatar for a contact has been retrieved.
|
A TpConnection or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
TpProxySignalConnection * tp_cli_connection_interface_avatars_connect_to_avatar_updated (TpConnection *proxy
,tp_cli_connection_interface_avatars_signal_callback_avatar_updated callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
,GError **error
);
Connect a handler to the signal AvatarUpdated.
Emitted when the avatar for a contact has been updated, or first discovered on this connection. If the token differs from the token associated with the client's cached avatar for this contact, the new avatar should be requested with <tp:member-ref>RequestAvatars</tp:member-ref>.
|
A TpConnection or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
void (*tp_cli_connection_interface_avatars_signal_callback_avatar_retrieved) (TpConnection *proxy
,guint arg_Contact
,const gchar *arg_Token
,const GArray *arg_Avatar
,const gchar *arg_Type
,gpointer user_data
,GObject *weak_object
);
Represents the signature of a callback for the signal AvatarRetrieved.
|
The proxy on which tp_cli_connection_interface_avatars_connect_to_avatar_retrieved()
was called
|
|
The contact whose avatar has been retrieved |
|
The token corresponding to the avatar |
|
An array of bytes containing the image data |
|
A string containing the image MIME type (eg image/jpeg), or empty if unknown |
|
User-supplied data |
|
User-supplied weakly referenced object |
void (*tp_cli_connection_interface_avatars_signal_callback_avatar_updated) (TpConnection *proxy
,guint arg_Contact
,const gchar *arg_New_Avatar_Token
,gpointer user_data
,GObject *weak_object
);
Represents the signature of a callback for the signal AvatarUpdated.
|
The proxy on which tp_cli_connection_interface_avatars_connect_to_avatar_updated()
was called
|
|
An integer handle for the contact whose avatar has changed |
|
Unique token for their new avatar |
|
User-supplied data |
|
User-supplied weakly referenced object |