VCard
Object Hierarchy:
Description:
[ CCode ( type_id = "e_vcard_get_type ()" ) ]
public class VCard : Object
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:
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 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 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 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 value value
in this, or removes it from this, when value
is
null
.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref