|
Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
|
Defines the data structure representing vCard parameters. More...
Go to the source code of this file.
Functions | |
| void | vcardparameter_add_value_from_string (vcardparameter *param, const char *val) |
| char * | vcardparameter_as_vcard_string (vcardparameter *parameter) |
| Converts vcardparameter into a string representation. | |
| char * | vcardparameter_as_vcard_string_r (vcardparameter *parameter) |
| Converts vcardparameter into an string representation according to RFC5445/RFC6868. | |
| vcardparameter * | vcardparameter_clone (const vcardparameter *old) |
| Creates new vcardparameter as a clone of the given one. | |
| void | vcardparameter_free (vcardparameter *parameter) |
| Frees an vcardparameter object. | |
| const char * | vcardparameter_get_iana_name (const vcardparameter *param) |
| Returns the IANA name of param. | |
| const char * | vcardparameter_get_iana_value (const vcardparameter *param) |
| Returns the IANA value of param. | |
| const char * | vcardparameter_get_xname (const vcardparameter *param) |
| Returns the X-name of param. | |
| const char * | vcardparameter_get_xvalue (const vcardparameter *param) |
| Returns the X-value of param. | |
| bool | vcardparameter_has_same_name (const vcardparameter *param1, const vcardparameter *param2) |
| Determines if two parameters have the same name. | |
| bool | vcardparameter_is_multivalued (const vcardparameter *param) |
| bool | vcardparameter_is_structured (const vcardparameter *param) |
| vcardparameter_kind | vcardparameter_isa (const vcardparameter *parameter) |
| bool | vcardparameter_isa_parameter (void *param) |
| bool | vcardparameter_kind_is_valid (const vcardparameter_kind kind) |
| Checks the validity of a vcardparameter_kind. | |
| const char * | vcardparameter_kind_to_string (vcardparameter_kind kind) |
| Returns a string representing the given vcardparameter_kind. | |
| vcardvalue_kind | vcardparameter_kind_value_kind (const vcardparameter_kind kind, int *is_multivalued) |
| vcardparameter * | vcardparameter_new (vcardparameter_kind kind) |
| Creates new vcardparameter object. | |
| vcardparameter * | vcardparameter_new_from_string (const char *str) |
| Creates new vcardparameter object from string. | |
| vcardparameter * | vcardparameter_new_from_value_string (vcardparameter_kind kind, const char *value) |
| Creates new vcardparameter of a given kind with a given value. | |
| void | vcardparameter_set_iana_name (vcardparameter *param, const char *v) |
| Sets the IANA name of param to v. | |
| void | vcardparameter_set_iana_value (vcardparameter *param, const char *v) |
| Sets the IANA value of param to v. | |
| void | vcardparameter_set_value_from_string (vcardparameter *param, const char *val) |
| void | vcardparameter_set_xname (vcardparameter *param, const char *v) |
| Sets the X-name of param to v. | |
| void | vcardparameter_set_xvalue (vcardparameter *param, const char *v) |
| Sets the X-value of param to v. | |
| vcardparameter_kind | vcardparameter_string_to_kind (const char *string) |
| Returns the vcardparameter_kind for a given string. | |
Defines the data structure representing vCard parameters.
Definition in file vcardparameter.h.
| char * vcardparameter_as_vcard_string | ( | vcardparameter * | parameter | ) |
Converts vcardparameter into a string representation.
| parameter | The vcardparameter to convert |
Definition at line 174 of file vcardparameter.c.
| char * vcardparameter_as_vcard_string_r | ( | vcardparameter * | parameter | ) |
Converts vcardparameter into an string representation according to RFC5445/RFC6868.
| parameter | The vcardparameter to convert |
Definition at line 192 of file vcardparameter.c.
| vcardparameter * vcardparameter_clone | ( | const vcardparameter * | old | ) |
Creates new vcardparameter as a clone of the given one.
| old | The existing, non-NULL parameter to clone. |
Definition at line 81 of file vcardparameter.c.
| void vcardparameter_free | ( | vcardparameter * | parameter | ) |
Frees an vcardparameter object.
| parameter | The vcardparameter to free |
This method needs to be used on all parameter objects returned from any of the _new() methods including vcardparameter_new(), vcardparameter_new_from_string() and vcardparameter_new_from_value_string() and on cloned parameter objects returned by vcardparameter_clone() when these object are not needed anymore and to be released.
Definition at line 52 of file vcardparameter.c.
| const char * vcardparameter_get_iana_name | ( | const vcardparameter * | param | ) |
Returns the IANA name of param.
| param | The vcardparameter whose IANA name is to be returned |
Definition at line 378 of file vcardparameter.c.
| const char * vcardparameter_get_iana_value | ( | const vcardparameter * | param | ) |
Returns the IANA value of param.
| param | The vcardparameter whose value is to be returned |
Definition at line 368 of file vcardparameter.c.
| const char * vcardparameter_get_xname | ( | const vcardparameter * | param | ) |
Returns the X-name of param.
| param | The vcardparameter whose X-name is to be returned |
Definition at line 333 of file vcardparameter.c.
| const char * vcardparameter_get_xvalue | ( | const vcardparameter * | param | ) |
Returns the X-value of param.
| param | The vcardparameter whose X-value is to be returned |
Definition at line 356 of file vcardparameter.c.
| bool vcardparameter_has_same_name | ( | const vcardparameter * | param1, |
| const vcardparameter * | param2 ) |
Determines if two parameters have the same name.
| param1 | First parameter to compare |
| param2 | Second parameter to compare |
Definition at line 397 of file vcardparameter.c.
| bool vcardparameter_is_multivalued | ( | const vcardparameter * | param | ) |
Definition at line 430 of file vcardparameter.c.
| bool vcardparameter_is_structured | ( | const vcardparameter * | param | ) |
Definition at line 437 of file vcardparameter.c.
| vcardparameter_kind vcardparameter_isa | ( | const vcardparameter * | parameter | ) |
Returns the vcardparameter_kind of parameter.
| parameter | The vcardparameter whose kind to determine |
Error handling Returns ICAL_NO_PARAMETER when passed NULL.
Usage
Definition at line 293 of file vcardparameter.c.
| bool vcardparameter_isa_parameter | ( | void * | param | ) |
Determines if the given param is an vcardparameter
| param | The libical-originated object to check |
Error handling When given a NULL object, it returns 0.
Usage
Definition at line 302 of file vcardparameter.c.
| bool vcardparameter_kind_is_valid | ( | const vcardparameter_kind | kind | ) |
Checks the validity of a vcardparameter_kind.
| kind | The vcardparameter_kind |
| const char * vcardparameter_kind_to_string | ( | vcardparameter_kind | kind | ) |
Returns a string representing the given vcardparameter_kind.
| kind | The vcardparameter_kind |
| vcardparameter * vcardparameter_new | ( | vcardparameter_kind | kind | ) |
Creates new vcardparameter object.
| kind | The kind of vcardparameter to create. |
Definition at line 45 of file vcardparameter.c.
| vcardparameter * vcardparameter_new_from_string | ( | const char * | str | ) |
Creates new vcardparameter object from string.
| str | The string from which to create the vcardparameter, in the form "PARAMNAME=VALUE" |
Definition at line 125 of file vcardparameter.c.
| vcardparameter * vcardparameter_new_from_value_string | ( | vcardparameter_kind | kind, |
| const char * | value ) |
Creates new vcardparameter of a given kind with a given value.
| kind | The kind of vcardparameter to create |
| value | The value of the parameter |
| void vcardparameter_set_iana_name | ( | vcardparameter * | param, |
| const char * | v ) |
Sets the IANA name of param to v.
| param | The vcardparameter to change |
| v | The IANA name to set param to |
Definition at line 373 of file vcardparameter.c.
| void vcardparameter_set_iana_value | ( | vcardparameter * | param, |
| const char * | v ) |
Sets the IANA value of param to v.
| param | The vcardparameter to change |
| v | The IANA value to set param to |
Definition at line 363 of file vcardparameter.c.
| void vcardparameter_set_xname | ( | vcardparameter * | param, |
| const char * | v ) |
Sets the X-name of param to v.
| param | The vcardparameter to change |
| v | The X-name to set param to |
Definition at line 317 of file vcardparameter.c.
| void vcardparameter_set_xvalue | ( | vcardparameter * | param, |
| const char * | v ) |
Sets the X-value of param to v.
| param | The vcardparameter to change |
| v | The X-value to set param to |
Definition at line 340 of file vcardparameter.c.
| vcardparameter_kind vcardparameter_string_to_kind | ( | const char * | string | ) |
Returns the vcardparameter_kind for a given string.
| string | A string describing an vcardparameter_kind |