14#ifndef VCARDCOMPONENT_H
15#define VCARDCOMPONENT_H
17#include "libical_sentinel.h"
18#include "libical_vcard_export.h"
32typedef struct vcardcomponent_impl vcardcomponent;
70 vcardproperty *property);
73 vcardproperty *property);
84 vcardcomponent *child);
115 vcardcomponent *comp);
enum icalrequeststatus kind
void vcardcomponent_strip_errors(vcardcomponent *comp)
Removes all X-LIC-ERROR properties.
void vcardcomponent_remove_property(vcardcomponent *comp, vcardproperty *property)
void vcardcomponent_add_property(vcardcomponent *comp, vcardproperty *property)
void vcardcomponent_remove_component(vcardcomponent *parent, vcardcomponent *child)
vcardcomponent_kind vcardcomponent_string_to_kind(const char *string)
vcardcomponent * vcardcomponent_get_next_component(vcardcomponent *comp, vcardcomponent_kind kind)
enum vcardproperty_version vcardcomponent_get_version(vcardcomponent *comp)
bool vcardcomponent_kind_is_valid(const vcardcomponent_kind kind)
vcardproperty * vcardcomponent_get_next_property(vcardcomponent *comp, vcardproperty_kind kind)
int vcardcomponent_check_restrictions(vcardcomponent *comp)
void vcardcomponent_add_component(vcardcomponent *parent, vcardcomponent *child)
char * vcardcomponent_as_vcard_string_r(vcardcomponent *comp)
vcardproperty * vcardcomponent_get_first_property(vcardcomponent *comp, vcardproperty_kind kind)
vcardcomponent * vcardcomponent_clone(const vcardcomponent *old)
Deeply clones an vcard. Returns a pointer to the memory for the newly cloned vcard.
const char * vcardcomponent_kind_to_string(vcardcomponent_kind kind)
bool vcardcomponent_isa_component(const void *comp)
int vcardcomponent_count_errors(vcardcomponent *comp)
Returns the number of errors encountered parsing the data.
vcardcomponent_kind vcardcomponent_isa(const vcardcomponent *comp)
const char * vcardcomponent_get_uid(vcardcomponent *comp)
int vcardcomponent_count_properties(vcardcomponent *comp, vcardproperty_kind kind, int ignore_alts)
bool vcardcomponent_is_valid(const vcardcomponent *comp)
void vcardcomponent_transform(vcardcomponent *impl, vcardproperty_version version)
void vcardcomponent_free(vcardcomponent *comp)
@ VCARD_NUM_COMPONENT_TYPES
vcardcomponent * vcardproperty_get_parent(const vcardproperty *property)
Returns the parent vcard for the specified property.
vcardcomponent * vcardcomponent_get_first_component(vcardcomponent *comp, vcardcomponent_kind kind)
char * vcardcomponent_as_vcard_string(vcardcomponent *comp)
void vcardproperty_set_parent(vcardproperty *property, vcardcomponent *comp)
Sets the parent vcard for the specified vcardproperty property.
vcardcomponent * vcardcomponent_get_current_component(vcardcomponent *comp)
vcardcomponent * vcardcomponent_vanew(vcardcomponent_kind kind,...)
Constructor.
const char * vcardcomponent_get_fn(vcardcomponent *comp)
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.
int vcardcomponent_count_components(vcardcomponent *comp, vcardcomponent_kind kind)
vcardproperty * vcardcomponent_get_current_property(vcardcomponent *comp)
Defines the data structure representing vCard properties.