- public void @construct (string str)
Constructs the existing VCard,
this, setting its vCard data to str.
- public void @foreach (VCardForeachFlags flags, VCardForeachFunc func)
Calls func for each attribute in the
this.
- public void add_attribute (owned VCardAttribute attr)
Prepends attr to this.
- public void add_attribute_with_value (owned VCardAttribute attr, string value)
Prepends attr to this,
setting it to value.
- public void add_attribute_with_value_take (owned VCardAttribute attr, owned string value)
Prepends attr to this,
setting it to value.
- public void append_attribute (owned VCardAttribute attr)
Appends attr to this to
the end of a list of attributes.
- public void append_attribute_with_value (owned VCardAttribute attr, string value)
Appends attr to this,
setting it to value.
- public void append_attribute_with_value_take (owned VCardAttribute attr, owned string value)
Appends attr to this,
setting it to value.
- public void append_attributes (List<VCardAttribute> attrs)
- public void append_attributes_take (owned List<VCardAttribute> attrs)
- public void construct_full (string str, ssize_t len, string? uid)
Similar to
construct_with_uid, but can also be used with an str that is not null terminated.
- public void construct_with_uid (string str, string? uid)
Constructs the existing VCard,
this, setting its vCard data to str, and adding a new UID attribute with the value
given in uid (if uid is non-null).
- public VCard? convert (VCardVersion to_version)
Converts the this into the vCard
version to_version and returns a converted copy of the this.
- public string convert_to_string (VCardVersion version)
Exports evc to a string representation conforming to
vCard version version.
- public void dump_structure ()
Prints a dump of this's structure to
stdout.
- public uint foreach_remove (VCardForeachFunc func)
Removes all attributes the func returns
true for.
- public unowned VCardAttribute? get_attribute (string name)
Get the attribute name from
this.
- public unowned VCardAttribute? get_attribute_if_parsed (string name)
Similar to
get_attribute but this method will not attempt to parse the vCard if it is not already parsed.
- public unowned List<VCardAttribute> get_attributes ()
Gets the list of all attributes from this
.
- public List<unowned VCardAttribute>? get_attributes_by_name (string name)
Returns all attributes of the name name stored in the
this.
- public VCardVersion get_version ()
Gets a vCard version of the this.
- public bool is_parsed ()
Check if the this has been parsed
already, as VCard implements lazy parsing of its vCard data.
- public void remove_attribute (owned VCardAttribute attr)
Removes attr from this
and frees it.
- public void remove_attributes (string? attr_group, string attr_name)
Removes all the attributes with group name and attribute name equal to
the passed in values.
- public string to_string ()
Exports this to a string
representation.
- public string? util_dup_x_attribute (string x_name)
- public void util_set_x_attribute (string x_name, string? value)
Sets an "X-" attribute x_name to value value
in this, or removes it from this, when value is
null.