|
Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
|
Implements the data structure representing vCard components. More...
Go to the source code of this file.
Macros | |
| #define | UUID_PREFIX "urn:uuid:" |
| #define | UUID_PREFIX_LEN 9 |
Functions | |
| void | vcardcomponent_add_component (vcardcomponent *parent, vcardcomponent *child) |
| void | vcardcomponent_add_property (vcardcomponent *comp, vcardproperty *property) |
| char * | vcardcomponent_as_vcard_string (vcardcomponent *comp) |
| char * | vcardcomponent_as_vcard_string_r (vcardcomponent *comp) |
| int | vcardcomponent_check_restrictions (vcardcomponent *comp) |
| vcardcomponent * | vcardcomponent_clone (const vcardcomponent *old) |
| Deeply clones an vcard. Returns a pointer to the memory for the newly cloned vcard. | |
| int | vcardcomponent_count_components (vcardcomponent *component, vcardcomponent_kind kind) |
| int | vcardcomponent_count_errors (vcardcomponent *comp) |
| Returns the number of errors encountered parsing the data. | |
| int | vcardcomponent_count_properties (vcardcomponent *comp, vcardproperty_kind kind, int ignore_alts) |
| void | vcardcomponent_free (vcardcomponent *c) |
| vcardcomponent * | vcardcomponent_get_current_component (vcardcomponent *component) |
| vcardproperty * | vcardcomponent_get_current_property (vcardcomponent *comp) |
| vcardcomponent * | vcardcomponent_get_first_component (vcardcomponent *c, vcardcomponent_kind kind) |
| vcardproperty * | vcardcomponent_get_first_property (vcardcomponent *c, vcardproperty_kind kind) |
| const char * | vcardcomponent_get_fn (vcardcomponent *comp) |
| vcardcomponent * | vcardcomponent_get_next_component (vcardcomponent *c, vcardcomponent_kind kind) |
| vcardproperty * | vcardcomponent_get_next_property (vcardcomponent *c, vcardproperty_kind kind) |
| vcardproperty ** | vcardcomponent_get_properties (vcardcomponent *comp, vcardproperty_kind kind) |
| const char * | vcardcomponent_get_uid (vcardcomponent *comp) |
| enum vcardproperty_version | vcardcomponent_get_version (vcardcomponent *comp) |
| bool | vcardcomponent_is_valid (const vcardcomponent *component) |
| vcardcomponent_kind | vcardcomponent_isa (const vcardcomponent *component) |
| bool | vcardcomponent_isa_component (const void *component) |
| bool | vcardcomponent_kind_is_valid (const vcardcomponent_kind kind) |
| const char * | vcardcomponent_kind_to_string (vcardcomponent_kind kind) |
| vcardcomponent * | vcardcomponent_new (vcardcomponent_kind kind) |
| Constructor. | |
| vcardcomponent * | vcardcomponent_new_from_string (const char *str) |
| Constructor. | |
| void | vcardcomponent_normalize (vcardcomponent *comp) |
Normalizes (reorders and sorts the properties) the specified vcard comp. | |
| void | vcardcomponent_remove_component (vcardcomponent *parent, vcardcomponent *child) |
| void | vcardcomponent_remove_property (vcardcomponent *comp, vcardproperty *property) |
| vcardcomponent_kind | vcardcomponent_string_to_kind (const char *string) |
| void | vcardcomponent_strip_errors (vcardcomponent *comp) |
| Removes all X-LIC-ERROR properties. | |
| void | vcardcomponent_transform (vcardcomponent *impl, vcardproperty_version version) |
| vcardcomponent * | vcardcomponent_vanew (vcardcomponent_kind kind,...) |
| Constructor. | |
Implements the data structure representing vCard components.
Definition in file vcardcomponent.c.
| #define UUID_PREFIX "urn:uuid:" |
Definition at line 775 of file vcardcomponent.c.
| #define UUID_PREFIX_LEN 9 |
Definition at line 776 of file vcardcomponent.c.
| void vcardcomponent_add_component | ( | vcardcomponent * | parent, |
| vcardcomponent * | child ) |
Definition at line 430 of file vcardcomponent.c.
| void vcardcomponent_add_property | ( | vcardcomponent * | comp, |
| vcardproperty * | property ) |
Definition at line 285 of file vcardcomponent.c.
| char * vcardcomponent_as_vcard_string | ( | vcardcomponent * | comp | ) |
Definition at line 177 of file vcardcomponent.c.
| char * vcardcomponent_as_vcard_string_r | ( | vcardcomponent * | comp | ) |
Definition at line 188 of file vcardcomponent.c.
| int vcardcomponent_check_restrictions | ( | vcardcomponent * | comp | ) |
Definition at line 538 of file vcardcomponent.c.
| vcardcomponent * vcardcomponent_clone | ( | const vcardcomponent * | old | ) |
Deeply clones an vcard. Returns a pointer to the memory for the newly cloned vcard.
Definition at line 114 of file vcardcomponent.c.
| int vcardcomponent_count_components | ( | vcardcomponent * | component, |
| vcardcomponent_kind | kind ) |
Definition at line 469 of file vcardcomponent.c.
| int vcardcomponent_count_errors | ( | vcardcomponent * | comp | ) |
Returns the number of errors encountered parsing the data.
This function counts the number times the X-LIC-ERROR occurs in the data structure.
Definition at line 544 of file vcardcomponent.c.
| int vcardcomponent_count_properties | ( | vcardcomponent * | comp, |
| vcardproperty_kind | kind, | ||
| int | ignore_alts ) |
Definition at line 333 of file vcardcomponent.c.
| void vcardcomponent_free | ( | vcardcomponent * | c | ) |
Definition at line 136 of file vcardcomponent.c.
| vcardcomponent * vcardcomponent_get_current_component | ( | vcardcomponent * | component | ) |
Definition at line 487 of file vcardcomponent.c.
| vcardproperty * vcardcomponent_get_current_property | ( | vcardcomponent * | comp | ) |
Definition at line 377 of file vcardcomponent.c.
| vcardcomponent * vcardcomponent_get_first_component | ( | vcardcomponent * | c, |
| vcardcomponent_kind | kind ) |
Definition at line 498 of file vcardcomponent.c.
| vcardproperty * vcardcomponent_get_first_property | ( | vcardcomponent * | c, |
| vcardproperty_kind | kind ) |
Definition at line 388 of file vcardcomponent.c.
| const char * vcardcomponent_get_fn | ( | vcardcomponent * | comp | ) |
Definition at line 1331 of file vcardcomponent.c.
| vcardcomponent * vcardcomponent_get_next_component | ( | vcardcomponent * | c, |
| vcardcomponent_kind | kind ) |
Definition at line 516 of file vcardcomponent.c.
| vcardproperty * vcardcomponent_get_next_property | ( | vcardcomponent * | c, |
| vcardproperty_kind | kind ) |
Definition at line 405 of file vcardcomponent.c.
| const char * vcardcomponent_get_uid | ( | vcardcomponent * | comp | ) |
Definition at line 1316 of file vcardcomponent.c.
| enum vcardproperty_version vcardcomponent_get_version | ( | vcardcomponent * | comp | ) |
Definition at line 1300 of file vcardcomponent.c.
| bool vcardcomponent_is_valid | ( | const vcardcomponent * | component | ) |
Definition at line 259 of file vcardcomponent.c.
| vcardcomponent_kind vcardcomponent_isa | ( | const vcardcomponent * | component | ) |
Definition at line 269 of file vcardcomponent.c.
| bool vcardcomponent_isa_component | ( | const void * | component | ) |
Definition at line 276 of file vcardcomponent.c.
| bool vcardcomponent_kind_is_valid | ( | const vcardcomponent_kind | kind | ) |
Definition at line 591 of file vcardcomponent.c.
| const char * vcardcomponent_kind_to_string | ( | vcardcomponent_kind | kind | ) |
Definition at line 604 of file vcardcomponent.c.
| vcardcomponent * vcardcomponent_new | ( | vcardcomponent_kind | kind | ) |
Constructor.
Definition at line 80 of file vcardcomponent.c.
| vcardcomponent * vcardcomponent_new_from_string | ( | const char * | str | ) |
Constructor.
Definition at line 109 of file vcardcomponent.c.
| void vcardcomponent_normalize | ( | vcardcomponent * | comp | ) |
Normalizes (reorders and sorts the properties) the specified vcard comp.
Definition at line 725 of file vcardcomponent.c.
| void vcardcomponent_remove_component | ( | vcardcomponent * | parent, |
| vcardcomponent * | child ) |
Definition at line 444 of file vcardcomponent.c.
| void vcardcomponent_remove_property | ( | vcardcomponent * | comp, |
| vcardproperty * | property ) |
Definition at line 304 of file vcardcomponent.c.
| vcardcomponent_kind vcardcomponent_string_to_kind | ( | const char * | string | ) |
Definition at line 617 of file vcardcomponent.c.
| void vcardcomponent_strip_errors | ( | vcardcomponent * | comp | ) |
Removes all X-LIC-ERROR properties.
Definition at line 561 of file vcardcomponent.c.
| void vcardcomponent_transform | ( | vcardcomponent * | impl, |
| vcardproperty_version | version ) |
Definition at line 1274 of file vcardcomponent.c.
| vcardcomponent * vcardcomponent_vanew | ( | vcardcomponent_kind | kind, |
| ... ) |
Constructor.
Definition at line 89 of file vcardcomponent.c.