folks Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Properties |
enum FolksGender; void folks_gender_details_change_gender (FolksGenderDetails *self
,FolksGender gender
,GAsyncReadyCallback _callback_
,gpointer _user_data_
); void folks_gender_details_change_gender_finish (FolksGenderDetails *self
,GAsyncResult *_res_
,GError **error
); FolksGender folks_gender_details_get_gender (FolksGenderDetails *self
); void folks_gender_details_set_gender (FolksGenderDetails *self
,FolksGender value
); FolksGenderDetails;
typedef enum { FOLKS_GENDER_UNSPECIFIED, FOLKS_GENDER_MALE, FOLKS_GENDER_FEMALE } FolksGender;
The gender of a contact
The gender of the contact is unknown or the contact didn't specify it. | |
The contact is male. | |
The contact is female. |
Since 0.3.5
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).
See also: folks_gender_details_change_gender_finish()
|
the FolksGenderDetails instance |
|
the contact's gender. [in] |
|
callback to call when the request is satisfied. [scope async] |
|
the data to pass to _callback_ function. [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).
See also: folks_gender_details_change_gender()
|
the FolksGenderDetails instance |
|
a GAsyncResult |
|
location to store the error occuring, or NULL to ignore. [error-domains FolksPropertyError]
|
Since 0.6.2
FolksGender folks_gender_details_get_gender (FolksGenderDetails *self
);
|
the FolksGenderDetails instance to query |
Returns : |
the value of the "gender" property |
void folks_gender_details_set_gender (FolksGenderDetails *self
,FolksGender value
);
|
the FolksGenderDetails instance to modify |
|
the new value of the "gender" property |
"gender"
property"gender" FolksGender : Read / Write
The gender of the contact.
Default value: FOLKS_GENDER_UNSPECIFIED
Since 0.3.5