EVCard

EVCard — Contact data in the VCard format.

Synopsis

                    EVCard;
enum                EVCardFormat;
                    EVCardAttribute;
                    EVCardAttributeParam;
EVCard*             e_vcard_new                         (void);
EVCard*             e_vcard_new_from_string             (const char *str);
char*               e_vcard_to_string                   (EVCard *evc,
                                                         EVCardFormat format);
void                e_vcard_dump_structure              (EVCard *evc);
EVCardAttribute*    e_vcard_attribute_new               (const char *attr_group,
                                                         const char *attr_name);
void                e_vcard_attribute_free              (EVCardAttribute *attr);
EVCardAttribute*    e_vcard_attribute_copy              (EVCardAttribute *attr);
void                e_vcard_remove_attributes           (EVCard *evc,
                                                         const char *attr_group,
                                                         const char *attr_name);
void                e_vcard_remove_attribute            (EVCard *evc,
                                                         EVCardAttribute *attr);
void                e_vcard_add_attribute               (EVCard *evc,
                                                         EVCardAttribute *attr);
void                e_vcard_add_attribute_with_value    (EVCard *evcard,
                                                         EVCardAttribute *attr,
                                                         const char *value);
void                e_vcard_add_attribute_with_values   (EVCard *evcard,
                                                         EVCardAttribute *attr,
                                                         ...);
void                e_vcard_attribute_add_value         (EVCardAttribute *attr,
                                                         const char *value);
void                e_vcard_attribute_add_value_decoded (EVCardAttribute *attr,
                                                         const char *value,
                                                         int len);
void                e_vcard_attribute_add_values        (EVCardAttribute *attr,
                                                         ...);
void                e_vcard_attribute_remove_values     (EVCardAttribute *attr);
void                e_vcard_attribute_remove_value      (EVCardAttribute *attr,
                                                         const char *s);
void                e_vcard_attribute_remove_params     (EVCardAttribute *attr);
void                e_vcard_attribute_remove_param      (EVCardAttribute *attr,
                                                         const char *param_name);
void                e_vcard_attribute_remove_param_value
                                                        (EVCardAttribute *attr,
                                                         const char *param_name,
                                                         const char *s);
EVCardAttributeParam* e_vcard_attribute_param_new       (const char *name);
void                e_vcard_attribute_param_free        (EVCardAttributeParam *param);
EVCardAttributeParam* e_vcard_attribute_param_copy      (EVCardAttributeParam *param);
void                e_vcard_attribute_add_param         (EVCardAttribute *attr,
                                                         EVCardAttributeParam *param);
void                e_vcard_attribute_add_param_with_value
                                                        (EVCardAttribute *attr,
                                                         EVCardAttributeParam *param,
                                                         const char *value);
void                e_vcard_attribute_add_param_with_values
                                                        (EVCardAttribute *attr,
                                                         EVCardAttributeParam *param,
                                                         ...);
void                e_vcard_attribute_param_add_value   (EVCardAttributeParam *param,
                                                         const char *value);
void                e_vcard_attribute_param_add_values  (EVCardAttributeParam *param,
                                                         ...);
void                e_vcard_attribute_param_remove_values
                                                        (EVCardAttributeParam *param);
const char*         e_vcard_attribute_param_get_name    (EVCardAttributeParam *param);
GList*              e_vcard_attribute_param_get_values  (EVCardAttributeParam *param);
EVCardAttribute*    e_vcard_get_attribute               (EVCard *evc,
                                                         const char *name);
GList*              e_vcard_get_attributes              (EVCard *evcard);
const char*         e_vcard_attribute_get_group         (EVCardAttribute *attr);
const char*         e_vcard_attribute_get_name          (EVCardAttribute *attr);
GList*              e_vcard_attribute_get_values        (EVCardAttribute *attr);
GList*              e_vcard_attribute_get_values_decoded
                                                        (EVCardAttribute *attr);
GList*              e_vcard_attribute_get_params        (EVCardAttribute *attr);
GList*              e_vcard_attribute_get_param         (EVCardAttribute *attr,
                                                         const char *name);
char*               e_vcard_attribute_get_value         (EVCardAttribute *attr);
GString*            e_vcard_attribute_get_value_decoded (EVCardAttribute *attr);
gboolean            e_vcard_attribute_has_type          (EVCardAttribute *attr,
                                                         const char *typestr);
gboolean            e_vcard_attribute_is_single_valued  (EVCardAttribute *attr);
char*               e_vcard_escape_string               (const char *s);
char*               e_vcard_unescape_string             (const char *s);
#define             EVC_ADR
#define             EVC_BDAY
#define             EVC_CALURI
#define             EVC_CATEGORIES
#define             EVC_EMAIL
#define             EVC_ENCODING
#define             EVC_FBURL
#define             EVC_FN
#define             EVC_GEO
#define             EVC_ICSCALENDAR
#define             EVC_KEY
#define             EVC_LABEL
#define             EVC_LOGO
#define             EVC_MAILER
#define             EVC_NICKNAME
#define             EVC_N
#define             EVC_NOTE
#define             EVC_ORG
#define             EVC_PHOTO
#define             EVC_PRODID
#define             EVC_QUOTEDPRINTABLE
#define             EVC_REV
#define             EVC_ROLE
#define             EVC_TEL
#define             EVC_TITLE
#define             EVC_TYPE
#define             EVC_UID
#define             EVC_URL
#define             EVC_VALUE
#define             EVC_VERSION
#define             EVC_X_AIM
#define             EVC_X_ANNIVERSARY
#define             EVC_X_ASSISTANT
#define             EVC_X_BIRTHDAY
#define             EVC_X_BLOG_URL
#define             EVC_X_FILE_AS
#define             EVC_X_GADUGADU
#define             EVC_X_ICQ
#define             EVC_X_JABBER
#define             EVC_X_LIST_SHOW_ADDRESSES
#define             EVC_X_LIST
#define             EVC_X_MANAGER
#define             EVC_X_MSN
#define             EVC_X_SPOUSE
#define             EVC_X_WANTS_HTML
#define             EVC_X_YAHOO
#define             EVC_X_BOOK_URI
#define             EVC_X_CALLBACK
#define             EVC_X_COMPANY
#define             EVC_X_DEST_CONTACT_UID
#define             EVC_X_DEST_EMAIL
#define             EVC_X_DEST_EMAIL_NUM
#define             EVC_X_DEST_HTML_MAIL
#define             EVC_X_DEST_NAME
#define             EVC_X_DEST_SOURCE_UID
#define             EVC_X_GROUPWISE
#define             EVC_X_RADIO
#define             EVC_X_TELEX
#define             EVC_X_TTYTDD
#define             EVC_X_VIDEO_URL

Object Hierarchy

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

Description

Does the low-level parsing work for contact information. This data is more conveniently accessed through the EContact object.

Details

EVCard

typedef struct _EVCard EVCard;


enum EVCardFormat

typedef enum {
	EVC_FORMAT_VCARD_21,
	EVC_FORMAT_VCARD_30
} EVCardFormat;


EVCardAttribute

typedef struct _EVCardAttribute EVCardAttribute;


EVCardAttributeParam

typedef struct _EVCardAttributeParam EVCardAttributeParam;


e_vcard_new ()

EVCard*             e_vcard_new                         (void);

Returns :


e_vcard_new_from_string ()

EVCard*             e_vcard_new_from_string             (const char *str);

str :

Returns :


e_vcard_to_string ()

char*               e_vcard_to_string                   (EVCard *evc,
                                                         EVCardFormat format);

evc :

format :

Returns :


e_vcard_dump_structure ()

void                e_vcard_dump_structure              (EVCard *evc);

evc :


e_vcard_attribute_new ()

EVCardAttribute*    e_vcard_attribute_new               (const char *attr_group,
                                                         const char *attr_name);

attr_group :

attr_name :

Returns :


e_vcard_attribute_free ()

void                e_vcard_attribute_free              (EVCardAttribute *attr);

attr :


e_vcard_attribute_copy ()

EVCardAttribute*    e_vcard_attribute_copy              (EVCardAttribute *attr);

attr :

Returns :


e_vcard_remove_attributes ()

void                e_vcard_remove_attributes           (EVCard *evc,
                                                         const char *attr_group,
                                                         const char *attr_name);

evc :

attr_group :

attr_name :


e_vcard_remove_attribute ()

void                e_vcard_remove_attribute            (EVCard *evc,
                                                         EVCardAttribute *attr);

evc :

attr :


e_vcard_add_attribute ()

void                e_vcard_add_attribute               (EVCard *evc,
                                                         EVCardAttribute *attr);

evc :

attr :


e_vcard_add_attribute_with_value ()

void                e_vcard_add_attribute_with_value    (EVCard *evcard,
                                                         EVCardAttribute *attr,
                                                         const char *value);

evcard :

attr :

value :


e_vcard_add_attribute_with_values ()

void                e_vcard_add_attribute_with_values   (EVCard *evcard,
                                                         EVCardAttribute *attr,
                                                         ...);

evcard :

attr :

... :


e_vcard_attribute_add_value ()

void                e_vcard_attribute_add_value         (EVCardAttribute *attr,
                                                         const char *value);

attr :

value :


e_vcard_attribute_add_value_decoded ()

void                e_vcard_attribute_add_value_decoded (EVCardAttribute *attr,
                                                         const char *value,
                                                         int len);

attr :

value :

len :


e_vcard_attribute_add_values ()

void                e_vcard_attribute_add_values        (EVCardAttribute *attr,
                                                         ...);

attr :

... :


e_vcard_attribute_remove_values ()

void                e_vcard_attribute_remove_values     (EVCardAttribute *attr);

attr :


e_vcard_attribute_remove_value ()

void                e_vcard_attribute_remove_value      (EVCardAttribute *attr,
                                                         const char *s);

attr :

s :


e_vcard_attribute_remove_params ()

void                e_vcard_attribute_remove_params     (EVCardAttribute *attr);

attr :


e_vcard_attribute_remove_param ()

void                e_vcard_attribute_remove_param      (EVCardAttribute *attr,
                                                         const char *param_name);

attr :

param_name :


e_vcard_attribute_remove_param_value ()

void                e_vcard_attribute_remove_param_value
                                                        (EVCardAttribute *attr,
                                                         const char *param_name,
                                                         const char *s);

attr :

param_name :

s :


e_vcard_attribute_param_new ()

EVCardAttributeParam* e_vcard_attribute_param_new       (const char *name);

name :

Returns :


e_vcard_attribute_param_free ()

void                e_vcard_attribute_param_free        (EVCardAttributeParam *param);

param :


e_vcard_attribute_param_copy ()

EVCardAttributeParam* e_vcard_attribute_param_copy      (EVCardAttributeParam *param);

param :

Returns :


e_vcard_attribute_add_param ()

void                e_vcard_attribute_add_param         (EVCardAttribute *attr,
                                                         EVCardAttributeParam *param);

attr :

param :


e_vcard_attribute_add_param_with_value ()

void                e_vcard_attribute_add_param_with_value
                                                        (EVCardAttribute *attr,
                                                         EVCardAttributeParam *param,
                                                         const char *value);

attr :

param :

value :


e_vcard_attribute_add_param_with_values ()

void                e_vcard_attribute_add_param_with_values
                                                        (EVCardAttribute *attr,
                                                         EVCardAttributeParam *param,
                                                         ...);

attr :

param :

... :


e_vcard_attribute_param_add_value ()

void                e_vcard_attribute_param_add_value   (EVCardAttributeParam *param,
                                                         const char *value);

param :

value :


e_vcard_attribute_param_add_values ()

void                e_vcard_attribute_param_add_values  (EVCardAttributeParam *param,
                                                         ...);

param :

... :


e_vcard_attribute_param_remove_values ()

void                e_vcard_attribute_param_remove_values
                                                        (EVCardAttributeParam *param);

param :


e_vcard_attribute_param_get_name ()

const char*         e_vcard_attribute_param_get_name    (EVCardAttributeParam *param);

param :

Returns :


e_vcard_attribute_param_get_values ()

GList*              e_vcard_attribute_param_get_values  (EVCardAttributeParam *param);

param :

Returns :


e_vcard_get_attribute ()

EVCardAttribute*    e_vcard_get_attribute               (EVCard *evc,
                                                         const char *name);

evc :

name :

Returns :


e_vcard_get_attributes ()

GList*              e_vcard_get_attributes              (EVCard *evcard);

evcard :

Returns :


e_vcard_attribute_get_group ()

const char*         e_vcard_attribute_get_group         (EVCardAttribute *attr);

attr :

Returns :


e_vcard_attribute_get_name ()

const char*         e_vcard_attribute_get_name          (EVCardAttribute *attr);

attr :

Returns :


e_vcard_attribute_get_values ()

GList*              e_vcard_attribute_get_values        (EVCardAttribute *attr);

attr :

Returns :


e_vcard_attribute_get_values_decoded ()

GList*              e_vcard_attribute_get_values_decoded
                                                        (EVCardAttribute *attr);

attr :

Returns :


e_vcard_attribute_get_params ()

GList*              e_vcard_attribute_get_params        (EVCardAttribute *attr);

attr :

Returns :


e_vcard_attribute_get_param ()

GList*              e_vcard_attribute_get_param         (EVCardAttribute *attr,
                                                         const char *name);

attr :

name :

Returns :


e_vcard_attribute_get_value ()

char*               e_vcard_attribute_get_value         (EVCardAttribute *attr);

attr :

Returns :


e_vcard_attribute_get_value_decoded ()

GString*            e_vcard_attribute_get_value_decoded (EVCardAttribute *attr);

attr :

Returns :


e_vcard_attribute_has_type ()

gboolean            e_vcard_attribute_has_type          (EVCardAttribute *attr,
                                                         const char *typestr);

attr :

typestr :

Returns :


e_vcard_attribute_is_single_valued ()

gboolean            e_vcard_attribute_is_single_valued  (EVCardAttribute *attr);

attr :

Returns :


e_vcard_escape_string ()

char*               e_vcard_escape_string               (const char *s);

s :

Returns :


e_vcard_unescape_string ()

char*               e_vcard_unescape_string             (const char *s);

s :

Returns :


EVC_ADR

#define EVC_ADR             "ADR"


EVC_BDAY

#define EVC_BDAY            "BDAY"

Birthday


EVC_CALURI

#define EVC_CALURI          "CALURI"

Calendar URL


EVC_CATEGORIES

#define EVC_CATEGORIES      "CATEGORIES"

Categories


EVC_EMAIL

#define EVC_EMAIL           "EMAIL"

Email address


EVC_ENCODING

#define EVC_ENCODING        "ENCODING"


EVC_FBURL

#define EVC_FBURL           "FBURL"


EVC_FN

#define EVC_FN              "FN"


EVC_GEO

#define EVC_GEO		    "GEO"


EVC_ICSCALENDAR

#define EVC_ICSCALENDAR     "ICSCALENDAR" /* XXX should this be X-EVOLUTION-ICSCALENDAR? */


EVC_KEY

#define EVC_KEY             "KEY"


EVC_LABEL

#define EVC_LABEL           "LABEL"


EVC_LOGO

#define EVC_LOGO            "LOGO"


EVC_MAILER

#define EVC_MAILER          "MAILER"


EVC_NICKNAME

#define EVC_NICKNAME        "NICKNAME"

Nickname


EVC_N

#define EVC_N               "N"


EVC_NOTE

#define EVC_NOTE            "NOTE"


EVC_ORG

#define EVC_ORG             "ORG"

Organisation


EVC_PHOTO

#define EVC_PHOTO           "PHOTO"

Photo


EVC_PRODID

#define EVC_PRODID          "PRODID"


EVC_QUOTEDPRINTABLE

#define EVC_QUOTEDPRINTABLE "QUOTED-PRINTABLE"


EVC_REV

#define EVC_REV             "REV"


EVC_ROLE

#define EVC_ROLE            "ROLE"

Role


EVC_TEL

#define EVC_TEL             "TEL"

Telephone


EVC_TITLE

#define EVC_TITLE           "TITLE"

Title


EVC_TYPE

#define EVC_TYPE            "TYPE"


EVC_UID

#define EVC_UID             "UID"

Unique ID


EVC_URL

#define EVC_URL             "URL"

Home page URL


EVC_VALUE

#define EVC_VALUE           "VALUE"


EVC_VERSION

#define EVC_VERSION         "VERSION"


EVC_X_AIM

#define EVC_X_AIM              "X-AIM"

AIM ID


EVC_X_ANNIVERSARY

#define EVC_X_ANNIVERSARY      "X-EVOLUTION-ANNIVERSARY"

Wedding anniversary


EVC_X_ASSISTANT

#define EVC_X_ASSISTANT        "X-EVOLUTION-ASSISTANT"

Assistant


EVC_X_BIRTHDAY

#define EVC_X_BIRTHDAY         "X-EVOLUTION-BIRTHDAY"

Birthday


EVC_X_BLOG_URL

#define EVC_X_BLOG_URL         "X-EVOLUTION-BLOG-URL"

Blog URL


EVC_X_FILE_AS

#define EVC_X_FILE_AS          "X-EVOLUTION-FILE-AS"

File As


EVC_X_GADUGADU

#define EVC_X_GADUGADU        "X-GADUGADU"


EVC_X_ICQ

#define EVC_X_ICQ              "X-ICQ"

ICQ number


EVC_X_JABBER

#define EVC_X_JABBER           "X-JABBER"

Jabber ID


EVC_X_LIST_SHOW_ADDRESSES

#define EVC_X_LIST_SHOW_ADDRESSES "X-EVOLUTION-LIST-SHOW_ADDRESSES"


EVC_X_LIST

#define EVC_X_LIST          	"X-EVOLUTION-LIST"


EVC_X_MANAGER

#define EVC_X_MANAGER       	"X-EVOLUTION-MANAGER"

Mananger


EVC_X_MSN

#define EVC_X_MSN           	"X-MSN"

MSN ID


EVC_X_SPOUSE

#define EVC_X_SPOUSE        	"X-EVOLUTION-SPOUSE"

Spouse


EVC_X_WANTS_HTML

#define EVC_X_WANTS_HTML    	"X-MOZILLA-HTML"

Wants HTML mail


EVC_X_YAHOO

#define EVC_X_YAHOO         	"X-YAHOO"

Yahoo ID


EVC_X_BOOK_URI

#define EVC_X_BOOK_URI     	"X-EVOLUTION-BOOK-URI"


EVC_X_CALLBACK

#define EVC_X_CALLBACK         "X-EVOLUTION-CALLBACK"


EVC_X_COMPANY

#define EVC_X_COMPANY          "X-EVOLUTION-COMPANY"


EVC_X_DEST_CONTACT_UID

#define EVC_X_DEST_CONTACT_UID "X-EVOLUTION-DEST-CONTACT-UID"


EVC_X_DEST_EMAIL

#define EVC_X_DEST_EMAIL       "X-EVOLUTION-DEST-EMAIL"

Warning

EVC_X_DEST_EMAIL is deprecated and should not be used in newly-written code.


EVC_X_DEST_EMAIL_NUM

#define EVC_X_DEST_EMAIL_NUM   "X-EVOLUTION-DEST-EMAIL-NUM"


EVC_X_DEST_HTML_MAIL

#define EVC_X_DEST_HTML_MAIL   "X-EVOLUTION-DEST-HTML-MAIL"


EVC_X_DEST_NAME

#define EVC_X_DEST_NAME        "X-EVOLUTION-DEST-NAME"

Warning

EVC_X_DEST_NAME is deprecated and should not be used in newly-written code.


EVC_X_DEST_SOURCE_UID

#define EVC_X_DEST_SOURCE_UID  "X-EVOLUTION-DEST-SOURCE-UID"


EVC_X_GROUPWISE

#define EVC_X_GROUPWISE     	"X-GROUPWISE"


EVC_X_RADIO

#define EVC_X_RADIO         	"X-EVOLUTION-RADIO"


EVC_X_TELEX

#define EVC_X_TELEX         	"X-EVOLUTION-TELEX"


EVC_X_TTYTDD

#define EVC_X_TTYTDD        	"X-EVOLUTION-TTYTDD"


EVC_X_VIDEO_URL

#define EVC_X_VIDEO_URL     	"X-EVOLUTION-VIDEO-URL"

See Also

e-contact