## EContact

EContact — An individual contact in an addressbook.

## Synopsis

                EContact;
    enum        EContactField;
                EContactName;
                EContactPhoto;
                EContactAddress;
                EContactDate;
                EContactCert;
    EContact*   e_contact_new                   (void);
    EContact*   e_contact_new_from_vcard        (const char *vcard);
    EContact*   e_contact_duplicate             (EContact *contact);
    gpointer    e_contact_get                   (EContact *contact,
                                                 EContactField field_id);
    gconstpointer e_contact_get_const           (EContact *contact,
                                                 EContactField field_id);
    void        e_contact_set                   (EContact *contact,
                                                 EContactField field_id,
                                                 const gpointer value);
    EContactDate* e_contact_date_new            (void);
    EContactDate* e_contact_date_from_string    (const char *str);
    char*       e_contact_date_to_string        (EContactDate *dt);
    gboolean    e_contact_date_equal            (EContactDate *dt1,
                                                 EContactDate *dt2);
    EContactName* e_contact_name_new            (void);
    char*       e_contact_name_to_string        (const EContactName *name);
    EContactName* e_contact_name_from_string    (const char *name_str);
    EContactName* e_contact_name_copy           (EContactName *n);
    void        e_contact_date_free             (EContactDate *date);
    void        e_contact_name_free             (EContactName *name);
    void        e_contact_photo_free            (EContactPhoto *photo);
    void        e_contact_address_free          (EContactAddress *address);
    const char* e_contact_field_name            (EContactField field_id);
    const char* e_contact_pretty_name           (EContactField field_id);
    EContactField e_contact_field_id            (const char *field_name);
    void        e_contact_cert_free             (EContactCert *cert);
    GList*      e_contact_get_attributes        (EContact *contact,
                                                 EContactField field_id);
    void        e_contact_set_attributes        (EContact *contact,
                                                 EContactField field_id,
                                                 GList *attributes);
    const char* e_contact_vcard_attribute       (EContactField field_id);

## Object Hierarchy

      GObject
       +----EVCard
             +----EContact

## Properties

      "Rev"                  gchararray            : Read / Write
      "address"              gpointer              : Read / Write
      "address-home"         EContactAddress       : Read / Write
      "address-label-home"   gchararray            : Read / Write
      "address-label-other"  gchararray            : Read / Write
      "address-label-work"   gchararray            : Read / Write
      "address-other"        EContactAddress       : Read / Write
      "address-work"         EContactAddress       : Read / Write
      "anniversary"          EContactDate          : Read / Write
      "assistant"            gchararray            : Read / Write
      "assistant-phone"      gchararray            : Read / Write
      "birth-date"           EContactDate          : Read / Write
      "blog-url"             gchararray            : Read / Write
      "book-uri"             gchararray            : Read / Write
      "business-fax"         gchararray            : Read / Write
      "business-phone"       gchararray            : Read / Write
      "business-phone-2"     gchararray            : Read / Write
      "callback-phone"       gchararray            : Read / Write
      "caluri"               gchararray            : Read / Write
      "car-phone"            gchararray            : Read / Write
      "categories"           gchararray            : Read / Write
      "category-list"        gpointer              : Read / Write
      "company-phone"        gchararray            : Read / Write
      "email"                gpointer              : Read / Write
      "email-1"              gchararray            : Read / Write
      "email-2"              gchararray            : Read / Write
      "email-3"              gchararray            : Read / Write
      "email-4"              gchararray            : Read / Write
      "family-name"          gchararray            : Read / Write
      "fburl"                gchararray            : Read / Write
      "file-as"              gchararray            : Read / Write
      "full-name"            gchararray            : Read / Write
      "given-name"           gchararray            : Read / Write
      "home-fax"             gchararray            : Read / Write
      "home-phone"           gchararray            : Read / Write
      "home-phone-2"         gchararray            : Read / Write
      "homepage-url"         gchararray            : Read / Write
      "icscalendar"          gchararray            : Read / Write
      "id"                   gchararray            : Read / Write
      "im-aim"               gpointer              : Read / Write
      "im-aim-home-1"        gchararray            : Read / Write
      "im-aim-home-2"        gchararray            : Read / Write
      "im-aim-home-3"        gchararray            : Read / Write
      "im-aim-work-1"        gchararray            : Read / Write
      "im-aim-work-2"        gchararray            : Read / Write
      "im-aim-work-3"        gchararray            : Read / Write
      "im-gadugadu"          gpointer              : Read / Write
      "im-gadugadu-home-1"   gchararray            : Read / Write
      "im-gadugadu-home-2"   gchararray            : Read / Write
      "im-gadugadu-home-3"   gchararray            : Read / Write
      "im-gadugadu-work-1"   gchararray            : Read / Write
      "im-gadugadu-work-2"   gchararray            : Read / Write
      "im-gadugadu-work-3"   gchararray            : Read / Write
      "im-groupwise"         gpointer              : Read / Write
      "im-groupwise-home-1"  gchararray            : Read / Write
      "im-groupwise-home-2"  gchararray            : Read / Write
      "im-groupwise-home-3"  gchararray            : Read / Write
      "im-groupwise-work-1"  gchararray            : Read / Write
      "im-groupwise-work-2"  gchararray            : Read / Write
      "im-groupwise-work-3"  gchararray            : Read / Write
      "im-icq"               gpointer              : Read / Write
      "im-icq-home-1"        gchararray            : Read / Write
      "im-icq-home-2"        gchararray            : Read / Write
      "im-icq-home-3"        gchararray            : Read / Write
      "im-icq-work-1"        gchararray            : Read / Write
      "im-icq-work-2"        gchararray            : Read / Write
      "im-icq-work-3"        gchararray            : Read / Write
      "im-jabber"            gpointer              : Read / Write
      "im-jabber-home-1"     gchararray            : Read / Write
      "im-jabber-home-2"     gchararray            : Read / Write
      "im-jabber-home-3"     gchararray            : Read / Write
      "im-jabber-work-1"     gchararray            : Read / Write
      "im-jabber-work-2"     gchararray            : Read / Write
      "im-jabber-work-3"     gchararray            : Read / Write
      "im-msn"               gpointer              : Read / Write
      "im-msn-home-1"        gchararray            : Read / Write
      "im-msn-home-2"        gchararray            : Read / Write
      "im-msn-home-3"        gchararray            : Read / Write
      "im-msn-work-1"        gchararray            : Read / Write
      "im-msn-work-2"        gchararray            : Read / Write
      "im-msn-work-3"        gchararray            : Read / Write
      "im-yahoo"             gpointer              : Read / Write
      "im-yahoo-home-1"      gchararray            : Read / Write
      "im-yahoo-home-2"      gchararray            : Read / Write
      "im-yahoo-home-3"      gchararray            : Read / Write
      "im-yahoo-work-1"      gchararray            : Read / Write
      "im-yahoo-work-2"      gchararray            : Read / Write
      "im-yahoo-work-3"      gchararray            : Read / Write
      "isdn-phone"           gchararray            : Read / Write
      "list"                 gboolean              : Read / Write
      "list-show-addresses"  gboolean              : Read / Write
      "logo"                 EContactPhoto         : Read / Write
      "mailer"               gchararray            : Read / Write
      "manager"              gchararray            : Read / Write
      "mobile-phone"         gchararray            : Read / Write
      "name"                 EContactName          : Read / Write
      "name-or-org"          gchararray            : Read
      "nickname"             gchararray            : Read / Write
      "note"                 gchararray            : Read / Write
      "office"               gchararray            : Read / Write
      "org"                  gchararray            : Read / Write
      "org-unit"             gchararray            : Read / Write
      "other-fax"            gchararray            : Read / Write
      "other-phone"          gchararray            : Read / Write
      "pager"                gchararray            : Read / Write
      "photo"                EContactPhoto         : Read / Write
      "primary-phone"        gchararray            : Read / Write
      "radio"                gchararray            : Read / Write
      "role"                 gchararray            : Read / Write
      "spouse"               gchararray            : Read / Write
      "telex"                gchararray            : Read / Write
      "title"                gchararray            : Read / Write
      "tty"                  gchararray            : Read / Write
      "video-url"            gchararray            : Read / Write
      "wants-html"           gboolean              : Read / Write
      "x509Cert"             EContactCert          : Read / Write

## Description

A convenient way of accessing the contact information in EVCard objects.

## Details

### EContact

    typedef struct _EContact EContact;

EContact has no publicly available members.

### enum EContactField

    typedef enum {

    	E_CONTACT_UID = 1,     	 /* string field */
    	E_CONTACT_FILE_AS,     	 /* string field */
    	E_CONTACT_BOOK_URI,      /* string field */

    	/* Name fields */
    	E_CONTACT_FULL_NAME,   	 /* string field */
    	E_CONTACT_GIVEN_NAME,  	 /* synthetic string field */
    	E_CONTACT_FAMILY_NAME, 	 /* synthetic string field */
    	E_CONTACT_NICKNAME,    	 /* string field */

    	/* Email fields */
    	E_CONTACT_EMAIL_1,     	 /* synthetic string field */
    	E_CONTACT_EMAIL_2,     	 /* synthetic string field */
    	E_CONTACT_EMAIL_3,     	 /* synthetic string field */
    	E_CONTACT_EMAIL_4,       /* synthetic string field */

    	E_CONTACT_MAILER,        /* string field */

    	/* Address Labels */
    	E_CONTACT_ADDRESS_LABEL_HOME,  /* synthetic string field */
    	E_CONTACT_ADDRESS_LABEL_WORK,  /* synthetic string field */
    	E_CONTACT_ADDRESS_LABEL_OTHER, /* synthetic string field */

    	/* Phone fields */
    	E_CONTACT_PHONE_ASSISTANT,
    	E_CONTACT_PHONE_BUSINESS,
    	E_CONTACT_PHONE_BUSINESS_2,
    	E_CONTACT_PHONE_BUSINESS_FAX,
    	E_CONTACT_PHONE_CALLBACK,
    	E_CONTACT_PHONE_CAR,
    	E_CONTACT_PHONE_COMPANY,
    	E_CONTACT_PHONE_HOME,
    	E_CONTACT_PHONE_HOME_2,
    	E_CONTACT_PHONE_HOME_FAX,
    	E_CONTACT_PHONE_ISDN,
    	E_CONTACT_PHONE_MOBILE,
    	E_CONTACT_PHONE_OTHER,
    	E_CONTACT_PHONE_OTHER_FAX,
    	E_CONTACT_PHONE_PAGER,
    	E_CONTACT_PHONE_PRIMARY,
    	E_CONTACT_PHONE_RADIO,
    	E_CONTACT_PHONE_TELEX,
    	E_CONTACT_PHONE_TTYTDD,

    	/* Organizational fields */
    	E_CONTACT_ORG,        	 /* string field */
    	E_CONTACT_ORG_UNIT,   	 /* string field */
    	E_CONTACT_OFFICE,     	 /* string field */
    	E_CONTACT_TITLE,      	 /* string field */
    	E_CONTACT_ROLE,       	 /* string field */
    	E_CONTACT_MANAGER,    	 /* string field */
    	E_CONTACT_ASSISTANT,  	 /* string field */

    	/* Web fields */
    	E_CONTACT_HOMEPAGE_URL,  /* string field */
    	E_CONTACT_BLOG_URL,      /* string field */

    	/* Contact categories */
    	E_CONTACT_CATEGORIES,    /* string field */

    	/* Collaboration fields */
    	E_CONTACT_CALENDAR_URI,  /* string field */
    	E_CONTACT_FREEBUSY_URL,  /* string field */
    	E_CONTACT_ICS_CALENDAR,  /* string field */
    	E_CONTACT_VIDEO_URL,      /* string field */

    	/* misc fields */
    	E_CONTACT_SPOUSE,        /* string field */
    	E_CONTACT_NOTE,          /* string field */

    	E_CONTACT_IM_AIM_HOME_1,       /* Synthetic string field */
    	E_CONTACT_IM_AIM_HOME_2,       /* Synthetic string field */
    	E_CONTACT_IM_AIM_HOME_3,       /* Synthetic string field */
    	E_CONTACT_IM_AIM_WORK_1,       /* Synthetic string field */
    	E_CONTACT_IM_AIM_WORK_2,       /* Synthetic string field */
    	E_CONTACT_IM_AIM_WORK_3,       /* Synthetic string field */
    	E_CONTACT_IM_GROUPWISE_HOME_1, /* Synthetic string field */
    	E_CONTACT_IM_GROUPWISE_HOME_2, /* Synthetic string field */
    	E_CONTACT_IM_GROUPWISE_HOME_3, /* Synthetic string field */
    	E_CONTACT_IM_GROUPWISE_WORK_1, /* Synthetic string field */
    	E_CONTACT_IM_GROUPWISE_WORK_2, /* Synthetic string field */
    	E_CONTACT_IM_GROUPWISE_WORK_3, /* Synthetic string field */
    	E_CONTACT_IM_JABBER_HOME_1,    /* Synthetic string field */
    	E_CONTACT_IM_JABBER_HOME_2,    /* Synthetic string field */
    	E_CONTACT_IM_JABBER_HOME_3,    /* Synthetic string field */
    	E_CONTACT_IM_JABBER_WORK_1,    /* Synthetic string field */
    	E_CONTACT_IM_JABBER_WORK_2,    /* Synthetic string field */
    	E_CONTACT_IM_JABBER_WORK_3,    /* Synthetic string field */
    	E_CONTACT_IM_YAHOO_HOME_1,     /* Synthetic string field */
    	E_CONTACT_IM_YAHOO_HOME_2,     /* Synthetic string field */
    	E_CONTACT_IM_YAHOO_HOME_3,     /* Synthetic string field */
    	E_CONTACT_IM_YAHOO_WORK_1,     /* Synthetic string field */
    	E_CONTACT_IM_YAHOO_WORK_2,     /* Synthetic string field */
    	E_CONTACT_IM_YAHOO_WORK_3,     /* Synthetic string field */
    	E_CONTACT_IM_MSN_HOME_1,       /* Synthetic string field */
    	E_CONTACT_IM_MSN_HOME_2,       /* Synthetic string field */
    	E_CONTACT_IM_MSN_HOME_3,       /* Synthetic string field */
    	E_CONTACT_IM_MSN_WORK_1,       /* Synthetic string field */
    	E_CONTACT_IM_MSN_WORK_2,       /* Synthetic string field */
    	E_CONTACT_IM_MSN_WORK_3,       /* Synthetic string field */
    	E_CONTACT_IM_ICQ_HOME_1,       /* Synthetic string field */
    	E_CONTACT_IM_ICQ_HOME_2,       /* Synthetic string field */
    	E_CONTACT_IM_ICQ_HOME_3,       /* Synthetic string field */
    	E_CONTACT_IM_ICQ_WORK_1,       /* Synthetic string field */
    	E_CONTACT_IM_ICQ_WORK_2,       /* Synthetic string field */
    	E_CONTACT_IM_ICQ_WORK_3,       /* Synthetic string field */

    	/* Convenience field for getting a name from the contact.
    	   Returns the first one of [File-As, Full Name, Org, Email1]
    	   to be set */
    	E_CONTACT_REV,     /* string field to hold  time of last update to this vcard*/
    	E_CONTACT_NAME_OR_ORG,

    	/* Address fields */
    	E_CONTACT_ADDRESS,       /* Multi-valued structured (EContactAddress) */
    	E_CONTACT_ADDRESS_HOME,  /* synthetic structured field (EContactAddress) */
    	E_CONTACT_ADDRESS_WORK,  /* synthetic structured field (EContactAddress) */
    	E_CONTACT_ADDRESS_OTHER, /* synthetic structured field (EContactAddress) */

    	E_CONTACT_CATEGORY_LIST, /* multi-valued */

    	/* Photo/Logo */
    	E_CONTACT_PHOTO,       	 /* structured field (EContactPhoto) */
    	E_CONTACT_LOGO,       	 /* structured field (EContactPhoto) */

    	E_CONTACT_NAME,        	 /* structured field (EContactName) */
    	E_CONTACT_EMAIL,       	 /* Multi-valued */

    	/* Instant Messaging fields */
    	E_CONTACT_IM_AIM,     	 /* Multi-valued */
    	E_CONTACT_IM_GROUPWISE,  /* Multi-valued */
    	E_CONTACT_IM_JABBER,  	 /* Multi-valued */
    	E_CONTACT_IM_YAHOO,   	 /* Multi-valued */
    	E_CONTACT_IM_MSN,     	 /* Multi-valued */
    	E_CONTACT_IM_ICQ,     	 /* Multi-valued */

    	E_CONTACT_WANTS_HTML,    /* boolean field */

    	/* fields used for describing contact lists.  a contact list
    	   is just a contact with _IS_LIST set to true.  the members
    	   are listed in the _EMAIL field. */
    	E_CONTACT_IS_LIST,             /* boolean field */
    	E_CONTACT_LIST_SHOW_ADDRESSES, /* boolean field */

    	E_CONTACT_BIRTH_DATE,    /* structured field (EContactDate) */
    	E_CONTACT_ANNIVERSARY,   /* structured field (EContactDate) */

    	/* Security Fields */
    	E_CONTACT_X509_CERT,     /* structured field (EContactCert) */

    	/*New Fields Added to the Enum and Padding for future*/

    	E_CONTACT_IM_GADUGADU_HOME_1,  /* Synthetic string field */
    	E_CONTACT_IM_GADUGADU_HOME_2,  /* Synthetic string field */
    	E_CONTACT_IM_GADUGADU_HOME_3,  /* Synthetic string field */
    	E_CONTACT_IM_GADUGADU_WORK_1,  /* Synthetic string field */
    	E_CONTACT_IM_GADUGADU_WORK_2,  /* Synthetic string field */
    	E_CONTACT_IM_GADUGADU_WORK_3,  /* Synthetic string field */

    	E_CONTACT_IM_GADUGADU,   /* Multi-valued */

    	E_CONTACT_FIELD_LAST,
    	E_CONTACT_FIELD_FIRST        = E_CONTACT_UID,

    	/* useful constants */
    	E_CONTACT_LAST_SIMPLE_STRING = E_CONTACT_NAME_OR_ORG,
    	E_CONTACT_FIRST_PHONE_ID     = E_CONTACT_PHONE_ASSISTANT,
    	E_CONTACT_LAST_PHONE_ID      = E_CONTACT_PHONE_TTYTDD,
    	E_CONTACT_FIRST_EMAIL_ID     = E_CONTACT_EMAIL_1,
    	E_CONTACT_LAST_EMAIL_ID      = E_CONTACT_EMAIL_4,
    	E_CONTACT_FIRST_ADDRESS_ID   = E_CONTACT_ADDRESS_HOME,
    	E_CONTACT_LAST_ADDRESS_ID    = E_CONTACT_ADDRESS_OTHER,
    	E_CONTACT_FIRST_LABEL_ID     = E_CONTACT_ADDRESS_LABEL_HOME,
    	E_CONTACT_LAST_LABEL_ID      = E_CONTACT_ADDRESS_LABEL_OTHER

    } EContactField;

### EContactName

    typedef struct {
    	char *family;
    	char *given;
    	char *additional;
     	char *prefixes;
    	char *suffixes;
    } EContactName;

### EContactPhoto

    typedef struct {
    	EContactPhotoType type;
    	union {
    		struct {
    			char *mime_type;
    			int length;
    			guchar *data;
    		} inlined;
    		char *uri;
    	} data;
    } EContactPhoto;

### EContactAddress

    typedef struct {
    	char *address_format; /* the two letter country code that
    				 determines the format/meaning of the
    				 following fields */
    	char *po;
    	char *ext;
    	char *street;
    	char *locality;
    	char *region;
    	char *code;
    	char *country;
    } EContactAddress;

### EContactDate

    typedef struct {
    	int year;
    	int month;
    	int day;
    } EContactDate;

### EContactCert

    typedef struct {
    	int length;
    	char *data;
    } EContactCert;

### e_contact_new ()

    EContact*   e_contact_new                   (void);

Creates a new, blank EContact.

Returns : | A new EContact.

### e_contact_new_from_vcard ()

    EContact*   e_contact_new_from_vcard        (const char *vcard);

Creates a new EContact based on a vcard.

`vcard` : | a string representing a vcard
Returns : | A new EContact.

### e_contact_duplicate ()

    EContact*   e_contact_duplicate             (EContact *contact);

Creates a copy of `contact`.

`contact` : | an EContact
Returns : | A new EContact identical to `contact`.

### e_contact_get ()

    gpointer    e_contact_get                   (EContact *contact,
                                                 EContactField field_id);

Gets the value of `contact`'s field specified by `field_id`.

`contact` : | an EContact
`field_id` : | an EContactField
Returns : | Depends on the field's type, owned by the caller.

### e_contact_get_const ()

    gconstpointer e_contact_get_const           (EContact *contact,
                                                 EContactField field_id);

Gets the value of `contact`'s field specified by `field_id`, caching the result so it can be freed later.

`contact` : | an EContact
`field_id` : | an EContactField
Returns : | Depends on the field's type, owned by the EContact.

### e_contact_set ()

    void        e_contact_set                   (EContact *contact,
                                                 EContactField field_id,
                                                 const gpointer value);

Sets the value of `contact`'s field specified by `field_id` to `value`.

`contact` : | an EContact
`field_id` : | an EContactField
`value` : | a value whose type depends on the `field_id`

### e_contact_date_new ()

    EContactDate* e_contact_date_new            (void);

Creates a new EContactDate struct.

Returns : | A new EContactDate struct.

### e_contact_date_from_string ()

    EContactDate* e_contact_date_from_string    (const char *str);

Creates a new EContactDate based on `str`.

`str` : | a date string in the format YYYY-MM-DD or YYYYMMDD
Returns : | A new EContactDate struct.

### e_contact_date_to_string ()

    char*       e_contact_date_to_string        (EContactDate *dt);

Generates a date string in the format YYYY-MM-DD based on the values of `dt`.

`dt` : | an EContactDate
Returns : | A date string, owned by the caller.

### e_contact_date_equal ()

    gboolean    e_contact_date_equal            (EContactDate *dt1,
                                                 EContactDate *dt2);

Checks if `dt1` and `dt2` are the same date.

`dt1` : | an EContactDate
`dt2` : | an EContactDate
Returns : | `TRUE` if `dt1` and `dt2` are equal, `FALSE` otherwise.

### e_contact_name_new ()

    EContactName* e_contact_name_new            (void);

Creates a new EContactName struct.

Returns : | A new EContactName struct.

### e_contact_name_to_string ()

    char*       e_contact_name_to_string        (const EContactName *name);

Generates a string representation of `name`.

`name` : | an EContactName
Returns : | The string representation of `name`.

### e_contact_name_from_string ()

    EContactName* e_contact_name_from_string    (const char *name_str);

Creates a new EContactName based on the parsed `name_str`.

`name_str` : | a string representing a contact's full name
Returns : | A new EContactName struct.

### e_contact_name_copy ()

    EContactName* e_contact_name_copy           (EContactName *n);

Creates a copy of `n`.

`n` : | an EContactName
Returns : | A new EContactName identical to `n`.

### e_contact_date_free ()

    void        e_contact_date_free             (EContactDate *date);

Frees the `date` struct and its contents.

`date` : | an EContactDate

### e_contact_name_free ()

    void        e_contact_name_free             (EContactName *name);

Frees `name` and its contents.

`name` : | an EContactName

### e_contact_photo_free ()

    void        e_contact_photo_free            (EContactPhoto *photo);

Frees the `photo` struct and its contents.

`photo` : | an EContactPhoto struct

### e_contact_address_free ()

    void        e_contact_address_free          (EContactAddress *address);

Frees the `address` struct and its contents.

`address` : | an EContactAddress

### e_contact_field_name ()

    const char* e_contact_field_name            (EContactField field_id);

Gets the string representation of `field_id`.

`field_id` : | an EContactField
Returns : | The string representation of `field_id`, or `NULL` if it doesn't exist.

### e_contact_pretty_name ()

    const char* e_contact_pretty_name           (EContactField field_id);

Gets a human-readable, translated string representation of `field_id`.

`field_id` : | an EContactField
Returns : | The human-readable representation of `field_id`, or `NULL` if it doesn't exist.

### e_contact_field_id ()

    EContactField e_contact_field_id            (const char *field_name);

Gets the EContactField corresponding to the `field_name`.

`field_name` : | a string representing a contact field
Returns : | An EContactField corresponding to `field_name`, or `0` if it doesn't exist.

### e_contact_cert_free ()

    void        e_contact_cert_free             (EContactCert *cert);

Frees the `cert` struct and its contents.

`cert` : | an EContactCert

### e_contact_get_attributes ()

    GList*      e_contact_get_attributes        (EContact *contact,
                                                 EContactField field_id);

Gets a list of the vcard attributes for `contact`'s `field_id`.

`contact` : | an EContact
`field_id` : | an EContactField
Returns : | A GList of pointers to EVCardAttribute, owned by the caller.

### e_contact_set_attributes ()

    void        e_contact_set_attributes        (EContact *contact,
                                                 EContactField field_id,
                                                 GList *attributes);

Sets the vcard attributes for `contact`'s `field_id`.

`contact` : | an EContact
`field_id` : | an EContactField
`attributes` : | a GList of pointers to EVCardAttribute

### e_contact_vcard_attribute ()

    const char* e_contact_vcard_attribute       (EContactField field_id);

Gets the vcard attribute corresponding to `field_id`, as a string.

`field_id` : | an EContactField
Returns : | The vcard attribute corresponding to `field_id`, or `NULL` if it doesn't exist.

## Property Details

### The "`Rev`" property

      "Rev"                  gchararray            : Read / Write

The revision of the vCard.

Default value: NULL

### The "`address`" property

      "address"              gpointer              : Read / Write

### The "`address-home`" property

      "address-home"         EContactAddress       : Read / Write

### The "`address-label-home`" property

      "address-label-home"   gchararray            : Read / Write

Default value: NULL

### The "`address-label-other`" property

      "address-label-other"  gchararray            : Read / Write

Default value: NULL

### The "`address-label-work`" property

      "address-label-work"   gchararray            : Read / Write

Default value: NULL

### The "`address-other`" property

      "address-other"        EContactAddress       : Read / Write

### The "`address-work`" property

      "address-work"         EContactAddress       : Read / Write

### The "`anniversary`" property

      "anniversary"          EContactDate          : Read / Write

### The "`assistant`" property

      "assistant"            gchararray            : Read / Write

Default value: NULL

### The "`assistant-phone`" property

      "assistant-phone"      gchararray            : Read / Write

Default value: NULL

### The "`birth-date`" property

      "birth-date"           EContactDate          : Read / Write

The birth date.

### The "`blog-url`" property

      "blog-url"             gchararray            : Read / Write

The blog URL.

Default value: NULL

### The "`book-uri`" property

      "book-uri"             gchararray            : Read / Write

Default value: NULL

### The "`business-fax`" property

      "business-fax"         gchararray            : Read / Write

Default value: NULL

### The "`business-phone`" property

      "business-phone"       gchararray            : Read / Write

Default value: NULL

### The "`business-phone-2`" property

      "business-phone-2"     gchararray            : Read / Write

Default value: NULL

### The "`callback-phone`" property

      "callback-phone"       gchararray            : Read / Write

Default value: NULL

### The "`caluri`" property

      "caluri"               gchararray            : Read / Write

The URI of the contact's calendar.

Default value: NULL

### The "`car-phone`" property

      "car-phone"            gchararray            : Read / Write

Default value: NULL

### The "`categories`" property

      "categories"           gchararray            : Read / Write

Default value: NULL

### The "`category-list`" property

      "category-list"        gpointer              : Read / Write

### The "`company-phone`" property

      "company-phone"        gchararray            : Read / Write

Default value: NULL

### The "`email`" property

      "email"                gpointer              : Read / Write

### The "`email-1`" property

      "email-1"              gchararray            : Read / Write

Default value: NULL

### The "`email-2`" property

      "email-2"              gchararray            : Read / Write

Default value: NULL

### The "`email-3`" property

      "email-3"              gchararray            : Read / Write

Default value: NULL

### The "`email-4`" property

      "email-4"              gchararray            : Read / Write

Default value: NULL

### The "`family-name`" property

      "family-name"          gchararray            : Read / Write

Default value: NULL

### The "`fburl`" property

      "fburl"                gchararray            : Read / Write

Default value: NULL

### The "`file-as`" property

      "file-as"              gchararray            : Read / Write

Default value: NULL

### The "`full-name`" property

      "full-name"            gchararray            : Read / Write

Default value: NULL

### The "`given-name`" property

      "given-name"           gchararray            : Read / Write

Default value: NULL

### The "`home-fax`" property

      "home-fax"             gchararray            : Read / Write

Default value: NULL

### The "`home-phone`" property

      "home-phone"           gchararray            : Read / Write

Default value: NULL

### The "`home-phone-2`" property

      "home-phone-2"         gchararray            : Read / Write

Default value: NULL

### The "`homepage-url`" property

      "homepage-url"         gchararray            : Read / Write

Default value: NULL

### The "`icscalendar`" property

      "icscalendar"          gchararray            : Read / Write

Default value: NULL

### The "`id`" property

      "id"                   gchararray            : Read / Write

Default value: NULL

### The "`im-aim`" property

      "im-aim"               gpointer              : Read / Write

### The "`im-aim-home-1`" property

      "im-aim-home-1"        gchararray            : Read / Write

Default value: NULL

### The "`im-aim-home-2`" property

      "im-aim-home-2"        gchararray            : Read / Write

Default value: NULL

### The "`im-aim-home-3`" property

      "im-aim-home-3"        gchararray            : Read / Write

Default value: NULL

### The "`im-aim-work-1`" property

      "im-aim-work-1"        gchararray            : Read / Write

Default value: NULL

### The "`im-aim-work-2`" property

      "im-aim-work-2"        gchararray            : Read / Write

Default value: NULL

### The "`im-aim-work-3`" property

      "im-aim-work-3"        gchararray            : Read / Write

Default value: NULL

### The "`im-gadugadu`" property

      "im-gadugadu"          gpointer              : Read / Write

### The "`im-gadugadu-home-1`" property

      "im-gadugadu-home-1"   gchararray            : Read / Write

Default value: NULL

### The "`im-gadugadu-home-2`" property

      "im-gadugadu-home-2"   gchararray            : Read / Write

Default value: NULL

### The "`im-gadugadu-home-3`" property

      "im-gadugadu-home-3"   gchararray            : Read / Write

Default value: NULL

### The "`im-gadugadu-work-1`" property

      "im-gadugadu-work-1"   gchararray            : Read / Write

Default value: NULL

### The "`im-gadugadu-work-2`" property

      "im-gadugadu-work-2"   gchararray            : Read / Write

Default value: NULL

### The "`im-gadugadu-work-3`" property

      "im-gadugadu-work-3"   gchararray            : Read / Write

Default value: NULL

### The "`im-groupwise`" property

      "im-groupwise"         gpointer              : Read / Write

### The "`im-groupwise-home-1`" property

      "im-groupwise-home-1"  gchararray            : Read / Write

Default value: NULL

### The "`im-groupwise-home-2`" property

      "im-groupwise-home-2"  gchararray            : Read / Write

Default value: NULL

### The "`im-groupwise-home-3`" property

      "im-groupwise-home-3"  gchararray            : Read / Write

Default value: NULL

### The "`im-groupwise-work-1`" property

      "im-groupwise-work-1"  gchararray            : Read / Write

Default value: NULL

### The "`im-groupwise-work-2`" property

      "im-groupwise-work-2"  gchararray            : Read / Write

Default value: NULL

### The "`im-groupwise-work-3`" property

      "im-groupwise-work-3"  gchararray            : Read / Write

Default value: NULL

### The "`im-icq`" property

      "im-icq"               gpointer              : Read / Write

### The "`im-icq-home-1`" property

      "im-icq-home-1"        gchararray            : Read / Write

Default value: NULL

### The "`im-icq-home-2`" property

      "im-icq-home-2"        gchararray            : Read / Write

Default value: NULL

### The "`im-icq-home-3`" property

      "im-icq-home-3"        gchararray            : Read / Write

Default value: NULL

### The "`im-icq-work-1`" property

      "im-icq-work-1"        gchararray            : Read / Write

Default value: NULL

### The "`im-icq-work-2`" property

      "im-icq-work-2"        gchararray            : Read / Write

Default value: NULL

### The "`im-icq-work-3`" property

      "im-icq-work-3"        gchararray            : Read / Write

Default value: NULL

### The "`im-jabber`" property

      "im-jabber"            gpointer              : Read / Write

### The "`im-jabber-home-1`" property

      "im-jabber-home-1"     gchararray            : Read / Write

Default value: NULL

### The "`im-jabber-home-2`" property

      "im-jabber-home-2"     gchararray            : Read / Write

Default value: NULL

### The "`im-jabber-home-3`" property

      "im-jabber-home-3"     gchararray            : Read / Write

Default value: NULL

### The "`im-jabber-work-1`" property

      "im-jabber-work-1"     gchararray            : Read / Write

Default value: NULL

### The "`im-jabber-work-2`" property

      "im-jabber-work-2"     gchararray            : Read / Write

Default value: NULL

### The "`im-jabber-work-3`" property

      "im-jabber-work-3"     gchararray            : Read / Write

Default value: NULL

### The "`im-msn`" property

      "im-msn"               gpointer              : Read / Write

### The "`im-msn-home-1`" property

      "im-msn-home-1"        gchararray            : Read / Write

Default value: NULL

### The "`im-msn-home-2`" property

      "im-msn-home-2"        gchararray            : Read / Write

Default value: NULL

### The "`im-msn-home-3`" property

      "im-msn-home-3"        gchararray            : Read / Write

Default value: NULL

### The "`im-msn-work-1`" property

      "im-msn-work-1"        gchararray            : Read / Write

Default value: NULL

### The "`im-msn-work-2`" property

      "im-msn-work-2"        gchararray            : Read / Write

Default value: NULL

### The "`im-msn-work-3`" property

      "im-msn-work-3"        gchararray            : Read / Write

Default value: NULL

### The "`im-yahoo`" property

      "im-yahoo"             gpointer              : Read / Write

### The "`im-yahoo-home-1`" property

      "im-yahoo-home-1"      gchararray            : Read / Write

Default value: NULL

### The "`im-yahoo-home-2`" property

      "im-yahoo-home-2"      gchararray            : Read / Write

Default value: NULL

### The "`im-yahoo-home-3`" property

      "im-yahoo-home-3"      gchararray            : Read / Write

Default value: NULL

### The "`im-yahoo-work-1`" property

      "im-yahoo-work-1"      gchararray            : Read / Write

Default value: NULL

### The "`im-yahoo-work-2`" property

      "im-yahoo-work-2"      gchararray            : Read / Write

Default value: NULL

### The "`im-yahoo-work-3`" property

      "im-yahoo-work-3"      gchararray            : Read / Write

Default value: NULL

### The "`isdn-phone`" property

      "isdn-phone"           gchararray            : Read / Write

Default value: NULL

### The "`list`" property

      "list"                 gboolean              : Read / Write

Default value: FALSE

### The "`list-show-addresses`" property

      "list-show-addresses"  gboolean              : Read / Write

Default value: FALSE

### The "`logo`" property

      "logo"                 EContactPhoto         : Read / Write

### The "`mailer`" property

      "mailer"               gchararray            : Read / Write

Default value: NULL

### The "`manager`" property

      "manager"              gchararray            : Read / Write

Default value: NULL

### The "`mobile-phone`" property

      "mobile-phone"         gchararray            : Read / Write

Default value: NULL

### The "`name`" property

      "name"                 EContactName          : Read / Write

### The "`name-or-org`" property

      "name-or-org"          gchararray            : Read

Default value: NULL

### The "`nickname`" property

      "nickname"             gchararray            : Read / Write

Default value: NULL

### The "`note`" property

      "note"                 gchararray            : Read / Write

Default value: NULL

### The "`office`" property

      "office"               gchararray            : Read / Write

Default value: NULL

### The "`org`" property

      "org"                  gchararray            : Read / Write

Default value: NULL

### The "`org-unit`" property

      "org-unit"             gchararray            : Read / Write

Default value: NULL

### The "`other-fax`" property

      "other-fax"            gchararray            : Read / Write

Default value: NULL

### The "`other-phone`" property

      "other-phone"          gchararray            : Read / Write

Default value: NULL

### The "`pager`" property

      "pager"                gchararray            : Read / Write

Default value: NULL

### The "`photo`" property

      "photo"                EContactPhoto         : Read / Write

### The "`primary-phone`" property

      "primary-phone"        gchararray            : Read / Write

Default value: NULL

### The "`radio`" property

      "radio"                gchararray            : Read / Write

Default value: NULL

### The "`role`" property

      "role"                 gchararray            : Read / Write

Default value: NULL

### The "`spouse`" property

      "spouse"               gchararray            : Read / Write

Default value: NULL

### The "`telex`" property

      "telex"                gchararray            : Read / Write

Default value: NULL

### The "`title`" property

      "title"                gchararray            : Read / Write

Default value: NULL

### The "`tty`" property

      "tty"                  gchararray            : Read / Write

Default value: NULL

### The "`video-url`" property

      "video-url"            gchararray            : Read / Write

Default value: NULL

### The "`wants-html`" property

      "wants-html"           gboolean              : Read / Write

Default value: FALSE

### The "`x509Cert`" property

      "x509Cert"             EContactCert          : Read / Write

## See Also

e-vcard