FolksGenderDetails

FolksGenderDetails — Interface for specifying the gender of a contact.

Synopsis

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;

Object Hierarchy

  GEnum
   +----FolksGender
  GInterface
   +----FolksGenderDetails

Prerequisites

FolksGenderDetails requires GObject.

Known Implementations

FolksGenderDetails is implemented by FolksIndividual.

Properties

  "gender"                   FolksGender           : Read / Write

Description

Details

enum FolksGender

typedef enum {
	FOLKS_GENDER_UNSPECIFIED,
	FOLKS_GENDER_MALE,
	FOLKS_GENDER_FEMALE
} FolksGender;

The gender of a contact

FOLKS_GENDER_UNSPECIFIED

The gender of the contact is unknown or the contact didn't specify it.

FOLKS_GENDER_MALE

The contact is male.

FOLKS_GENDER_FEMALE

The contact is female.

Since 0.3.5


folks_gender_details_change_gender ()

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()

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 _callback_ function. [closure]

Since 0.6.2


folks_gender_details_change_gender_finish ()

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()

self :

the FolksGenderDetails instance

_res_ :

a GAsyncResult

error :

location to store the error occuring, or NULL to ignore. [error-domains FolksPropertyError]

Since 0.6.2


folks_gender_details_get_gender ()

FolksGender         folks_gender_details_get_gender     (FolksGenderDetails *self);

self :

the FolksGenderDetails instance to query

Returns :

the value of the "gender" property

folks_gender_details_set_gender ()

void                folks_gender_details_set_gender     (FolksGenderDetails *self,
                                                         FolksGender value);

self :

the FolksGenderDetails instance to modify

value :

the new value of the "gender" property

FolksGenderDetails

typedef struct _FolksGenderDetails FolksGenderDetails;

Interface for specifying the gender of a contact.

Since 0.3.5

Property Details

The "gender" property

  "gender"                   FolksGender           : Read / Write

The gender of the contact.

Default value: FOLKS_GENDER_UNSPECIFIED

Since 0.3.5