VCard
Object Hierarchy:
Description:
All known sub-classes:
Namespace: E
Package: libebook-contacts-1.2
Content:
Static methods:
- public static string escape_string (string s)
Escapes a string according to RFC2426, section 5.
- public static string unescape_string (string s)
Unescapes a string according to RFC2426, section 5.
Creation methods:
- public VCard ()
Creates a new, blank VCard.
- public VCard.from_string (string str)
Creates a new VCard from the passed-in string representation.
Methods:
- public void @construct (string str)
Constructs the existing VCard, this, setting its vCard data to
str
. - 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 tovalue
. - 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 tovalue
. - 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 notnull
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 inuid
(ifuid
is non-%NULL). - public void dump_structure ()
Prints a dump of this's structure to stdout.
- 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 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 (VCardFormat format)
Exports this to a string representation, specified by the
format
argument. - 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 valuevalue
in this, or removes it from this, whenvalue
isnull
.
Inherited Members:
All known members inherited from class GLib.Object