Top |
This allows avatars to be associated with contacts. An avatar is a small image file which represents the contact, such as a photo of them.
void folks_avatar_details_change_avatar (FolksAvatarDetails *self
,GLoadableIcon *avatar
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
Change the contact's avatar.
It's preferred to call this rather than setting "avatar" directly, as this method gives error notification and will only return once the avatar has been written to the relevant backing store (or the operation's failed).
FolksPropertyError will be returned in error
if setting the avatar failed
See also: folks_avatar_details_change_avatar_finish()
self |
the FolksAvatarDetails instance |
|
avatar |
. the new avatar (or . |
[in][allow-none] |
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[closure] |
Since 0.6.2
void folks_avatar_details_change_avatar_finish (FolksAvatarDetails *self
,GAsyncResult *_res_
,GError **error
);
Change the contact's avatar.
It's preferred to call this rather than setting "avatar" directly, as this method gives error notification and will only return once the avatar has been written to the relevant backing store (or the operation's failed).
FolksPropertyError will be returned in error
if setting the avatar failed
See also: folks_avatar_details_change_avatar()
self |
the FolksAvatarDetails instance |
|
_res_ |
||
error |
location to store the error occuring, or |
[error-domains FolksPropertyError] |
Since 0.6.2
GLoadableIcon *
folks_avatar_details_get_avatar (FolksAvatarDetails *self
);
Get and return the current value of the "avatar" property.
An avatar for the contact.
The avatar may be null
if unset. Otherwise, the image data may be asynchronously loaded using the methods of the GLoadableIcon implementation.
Since 0.6.0
void folks_avatar_details_set_avatar (FolksAvatarDetails *self
,GLoadableIcon *value
);
Set the value of the "avatar" property to value
.
An avatar for the contact.
The avatar may be null
if unset. Otherwise, the image data may be asynchronously loaded using the methods of the GLoadableIcon implementation.
self |
the FolksAvatarDetails instance to modify |
|
value |
the new value of the "avatar" property |
Since 0.6.0
typedef struct _FolksAvatarDetails FolksAvatarDetails;
Avatar for a contact.
This allows avatars to be associated with contacts. An avatar is a small image file which represents the contact, such as a photo of them.
Since 0.6.0
struct FolksAvatarDetailsIface { GTypeInterface parent_iface; void (*change_avatar) (FolksAvatarDetails* self, GLoadableIcon* avatar, GAsyncReadyCallback _callback_, gpointer _user_data_); void (*change_avatar_finish) (FolksAvatarDetails* self, GAsyncResult* _res_, GError** error); GLoadableIcon* (*get_avatar) (FolksAvatarDetails* self); void (*set_avatar) (FolksAvatarDetails* self, GLoadableIcon* value); };
Interface for creating FolksAvatarDetails implementations.
GTypeInterface |
the parent interface structure |
|
virtual method called by |
||
asynchronous finish function for |
||
getter method for the abstract property "avatar" |
||
setter method for the abstract property "avatar" |
“avatar”
property“avatar” GLoadableIcon *
An avatar for the contact.
The avatar may be null
if unset. Otherwise, the image data may be asynchronously loaded using the methods of the GLoadableIcon implementation.
Flags: Read / Write
Since 0.6.0