Contact
Object Hierarchy:
Description:
[
CCode ( type_id =
"e_contact_get_type ()" ) ]
public class Contact :
VCard
Content:
Properties:
Static methods:
- public static ContactField field_id (string field_name)
- public static ContactField field_id_from_vcard (string vcard_field)
- public static bool field_is_string (ContactField field_id)
Returns whether the field_id is of a string type, thus it
can be used with get_const.
- public static unowned string field_name (ContactField field_id)
Gets the string representation of field_id.
- public static Type field_type (ContactField field_id)
Gets the Type
used for this contact field, this indicates what kind of value can be passed to @set
.
- public static unowned string? impp_field_to_scheme (ContactField field)
Gets a scheme (like "icq:") for the corresponding IM field
.
- public static ContactField impp_scheme_to_field (string scheme, out uint out_scheme_len)
Tries to find one of the predefined
ContactField for the scheme, which can be either the scheme itself, like
"icq:", or a scheme with the value, like "icq:1234".
- public static unowned string pretty_name (ContactField field_id)
Gets a human-readable, translated string representation of
field_id.
- public static unowned string vcard_attribute (ContactField field_id)
Gets the vcard attribute corresponding to field_id, as a
string.
- public static unowned string? vcard_attribute_fallback (ContactField field_id)
Gets the vCard attribute name corresponding to field_id,
which is used to hold vCard attributes in an earlier versions of the vCard standard than in which the attribute had been added for.
Creation methods:
Methods:
- public T @get<T> (ContactField field_id)
Gets the value of this's field
specified by field_id.
- public void @set<T> (ContactField field_id, T value)
Sets the value of this's field
specified by field_id to value.
- public Contact? convert (VCardVersion to_version)
Converts the this into the vCard
version to_version and returns a converted copy of the this.
- public Contact duplicate ()
Creates a copy of this.
- public unowned T get_const<T> (ContactField field_id)
Gets the value of this's field
specified by field_id, caching the result so it can be freed later.
- public bool inline_local_photos () throws Error
Tries to modify any
ContactPhoto fields which are stored on the local file system as type e_contact_photo_type_uri
to be inlined and stored as e_contact_photo_type_inlined instead.
Inherited Members:
All known members inherited from class E.VCard
All known members inherited from class GLib.Object