VCardAttribute
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "e_vcard_attribute_get_type ()" ) ]
[ Compact ]
public class VCardAttribute
Content:
Creation methods:
Methods:
- public void add_param (owned VCardAttributeParam param)
Prepends param
to this
's list of parameters.
- public void add_param_with_value (owned VCardAttributeParam param, string value)
Appends value
to param
, then prepends
param
to this.
- public void add_value (string value)
Appends value
to this's
list of values.
- public void add_value_decoded (string value, int len)
Encodes value
according to the encoding used for
this, and appends it to this's list of values.
- public VCardAttribute copy ()
Makes a copy of this.
- public void free ()
Frees an attribute, its values and its parameters.
- public unowned string? get_group ()
Gets the group name of this.
- public unowned string get_name ()
Gets the name of this.
- public unowned List<string>? get_param (string name)
Gets the list of values for the paramater name
from
this.
- public unowned List<VCardAttributeParam> get_params ()
- public string? get_value ()
Gets the value of a single-valued VCardAttribute
, this.
- public StringBuilder? get_value_decoded ()
Gets the value of a single-valued VCardAttribute
, this, decoding it if necessary according to the encoding given in the vCard’s
ENCODING
attribute.
- public unowned List<string> get_values ()
Gets the ordered list of values from this
.
- public unowned List<StringBuilder> get_values_decoded ()
Gets the ordered list of values from this
, decoding them if necessary according to the encoding given in the vCard’s ENCODING
attribute.
- public bool has_type (string typestr)
- public bool is_single_valued ()
Checks if this has a single value.
- public void remove_param (string param_name)
Removes and frees parameter param_name
from the attribute
this.
- public void remove_param_value (string param_name, string s)
Removes the value s
from the parameter param_name
on the attribute this.
- public void remove_params ()
Removes and frees all parameters from this
.
- public void remove_value (string s)
Removes value s
from the value list in
this.
- public void remove_values ()
Removes and frees all values from this
.