EdsfPersona

EdsfPersona — A persona subclass which represents a single EDS contact.

Synopsis

#define             EDSF_TYPE_PERSONA
#define             EDSF_PERSONA_gender_attribute_name
#define             EDSF_PERSONA_gender_male
#define             EDSF_PERSONA_gender_female
EdsfPersona *       edsf_persona_new                    (EdsfPersonaStore *store,
                                                         EContact *contact);
EContact *          edsf_persona_get_contact            (EdsfPersona *self);
const gchar *       edsf_persona_get_contact_id         (EdsfPersona *self);
struct              EdsfPersona;

Object Hierarchy

  GObject
   +----FolksPersona
         +----EdsfPersona

Implemented Interfaces

EdsfPersona implements FolksAvatarDetails, FolksBirthdayDetails, FolksEmailDetails, FolksFavouriteDetails, FolksGenderDetails, FolksGroupDetails, FolksImDetails, FolksLocalIdDetails, FolksNameDetails, FolksNoteDetails, FolksPhoneDetails, FolksRoleDetails, FolksUrlDetails, FolksPostalAddressDetails and FolksWebServiceDetails.

Properties

  "avatar"                   GLoadableIcon*        : Read / Write
  "birthday"                 GDateTime*            : Read / Write
  "calendar-event-id"        gchar*                : Read / Write
  "contact"                  EContact*             : Read / Write / Construct Only
  "contact-id"               gchar*                : Read / Write / Construct Only
  "email-addresses"          GeeSet*               : Read / Write
  "full-name"                gchar*                : Read / Write
  "gender"                   FolksGender           : Read / Write
  "groups"                   GeeSet*               : Read / Write
  "im-addresses"             GeeMultiMap*          : Read / Write
  "is-favourite"             gboolean              : Read / Write
  "linkable-properties"      GStrv                 : Read
  "local-ids"                GeeSet*               : Read / Write
  "nickname"                 gchar*                : Read / Write
  "notes"                    GeeSet*               : Read / Write
  "phone-numbers"            GeeSet*               : Read / Write
  "postal-addresses"         GeeSet*               : Read / Write
  "roles"                    GeeSet*               : Read / Write
  "structured-name"          FolksStructuredName*  : Read / Write
  "urls"                     GeeSet*               : Read / Write
  "web-service-addresses"    GeeMultiMap*          : Read / Write
  "writeable-properties"     GStrv                 : Read

Description

Details

EDSF_TYPE_PERSONA

#define EDSF_TYPE_PERSONA (edsf_persona_get_type ())

The type for EdsfPersona.


EDSF_PERSONA_gender_attribute_name

#define EDSF_PERSONA_gender_attribute_name "X-GENDER"

The vCard attribute used to specify a Contact's gender

Based on: http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-22

Note that the above document is a draft and the gender property is still considered experimental, hence the "X-" prefix in the attribute name. So this might change.

Since 0.6.0


EDSF_PERSONA_gender_male

#define EDSF_PERSONA_gender_male "M"

The value used to define the male gender for the X-GENDER vCard property.

Based on: http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-22

Since 0.6.0


EDSF_PERSONA_gender_female

#define EDSF_PERSONA_gender_female "F"

The value used to define the female gender for the X-GENDER vCard property.

Based on: http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-22

Since 0.6.0


edsf_persona_new ()

EdsfPersona *       edsf_persona_new                    (EdsfPersonaStore *store,
                                                         EContact *contact);

Create a new persona.

Create a new persona for the EdsfPersonaStore `store`, representing the EDS contact given by `contact`.

Since 0.6.0


edsf_persona_get_contact ()

EContact *          edsf_persona_get_contact            (EdsfPersona *self);

self :

the EdsfPersona instance to query

Returns :

the value of the "contact" property

edsf_persona_get_contact_id ()

const gchar *       edsf_persona_get_contact_id         (EdsfPersona *self);

self :

the EdsfPersona instance to query

Returns :

the value of the "contact-id" property

struct EdsfPersona

struct EdsfPersona;

A persona subclass which represents a single EDS contact.

Property Details

The "avatar" property

  "avatar"                   GLoadableIcon*        : Read / Write

avatar.


The "birthday" property

  "birthday"                 GDateTime*            : Read / Write

birthday.


The "calendar-event-id" property

  "calendar-event-id"        gchar*                : Read / Write

calendar-event-id.

Default value: NULL


The "contact" property

  "contact"                  EContact*             : Read / Write / Construct Only

The e-d-s contact represented by this Persona


The "contact-id" property

  "contact-id"               gchar*                : Read / Write / Construct Only

The e-d-s contact uid

Default value: NULL

Since 0.6.0


The "email-addresses" property

  "email-addresses"          GeeSet*               : Read / Write

email-addresses.


The "full-name" property

  "full-name"                gchar*                : Read / Write

full-name.

Default value: NULL


The "gender" property

  "gender"                   FolksGender           : Read / Write

gender.

Default value: FOLKS_GENDER_UNSPECIFIED


The "groups" property

  "groups"                   GeeSet*               : Read / Write

groups.


The "im-addresses" property

  "im-addresses"             GeeMultiMap*          : Read / Write

im-addresses.


The "is-favourite" property

  "is-favourite"             gboolean              : Read / Write

is-favourite.

Default value: FALSE


The "linkable-properties" property

  "linkable-properties"      GStrv                 : Read

linkable-properties.


The "local-ids" property

  "local-ids"                GeeSet*               : Read / Write

local-ids.


The "nickname" property

  "nickname"                 gchar*                : Read / Write

nickname.

Default value: NULL


The "notes" property

  "notes"                    GeeSet*               : Read / Write

notes.


The "phone-numbers" property

  "phone-numbers"            GeeSet*               : Read / Write

phone-numbers.


The "postal-addresses" property

  "postal-addresses"         GeeSet*               : Read / Write

postal-addresses.


The "roles" property

  "roles"                    GeeSet*               : Read / Write

roles.


The "structured-name" property

  "structured-name"          FolksStructuredName*  : Read / Write

structured-name.


The "urls" property

  "urls"                     GeeSet*               : Read / Write

urls.


The "web-service-addresses" property

  "web-service-addresses"    GeeMultiMap*          : Read / Write

web-service-addresses.


The "writeable-properties" property

  "writeable-properties"     GStrv                 : Read

writeable-properties.