Top |
void folks_gender_details_change_gender (FolksGenderDetails *self
,FolksGender gender
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
Change the contact's gender.
It's preferred to call this rather than setting "gender" directly, as this method gives error notification and will only return once the gender has been written to the relevant backing store (or the operation's failed).
FolksPropertyError will be returned in error
if setting the gender failed
See also: folks_gender_details_change_gender_finish()
self |
the FolksGenderDetails instance |
|
gender |
. the contact's gender . |
[in] |
_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_gender_details_change_gender_finish (FolksGenderDetails *self
,GAsyncResult *_res_
,GError **error
);
Change the contact's gender.
It's preferred to call this rather than setting "gender" directly, as this method gives error notification and will only return once the gender has been written to the relevant backing store (or the operation's failed).
FolksPropertyError will be returned in error
if setting the gender failed
See also: folks_gender_details_change_gender()
self |
the FolksGenderDetails instance |
|
_res_ |
||
error |
location to store the error occuring, or |
[error-domains FolksPropertyError] |
Since 0.6.2
FolksGender
folks_gender_details_get_gender (FolksGenderDetails *self
);
Get and return the current value of the "gender" property.
The gender of the contact.
Since 0.3.5
void folks_gender_details_set_gender (FolksGenderDetails *self
,FolksGender value
);
Set the value of the "gender" property to value
.
The gender of the contact.
self |
the FolksGenderDetails instance to modify |
|
value |
the new value of the "gender" property |
Since 0.3.5
typedef struct _FolksGenderDetails FolksGenderDetails;
Gender of a contact.
This allows representation of the gender of a contact.
Since 0.3.5
struct FolksGenderDetailsIface { GTypeInterface parent_iface; void (*change_gender) (FolksGenderDetails* self, FolksGender gender, GAsyncReadyCallback _callback_, gpointer _user_data_); void (*change_gender_finish) (FolksGenderDetails* self, GAsyncResult* _res_, GError** error); FolksGender (*get_gender) (FolksGenderDetails* self); void (*set_gender) (FolksGenderDetails* self, FolksGender value); };
Interface for creating FolksGenderDetails implementations.
GTypeInterface |
the parent interface structure |
|
virtual method called by |
||
asynchronous finish function for |
||
getter method for the abstract property "gender" |
||
setter method for the abstract property "gender" |
“gender”
property“gender” FolksGender
The gender of the contact.
Flags: Read / Write
Default value: FOLKS_GENDER_UNSPECIFIED
Since 0.3.5