- public unowned Binding binding_bind_property (Object source, string source_property, Object target, string target_property, BindingFlags flags)
Thread safe variant of g_object_bind_property
.
- public unowned Binding binding_bind_property_full (Object source, string source_property, Object target, string target_property, BindingFlags flags, BindingTransformFunc? transform_to, owned BindingTransformFunc? transform_from)
Thread safe variant of g_object_bind_property_full
.
- public unowned Binding binding_bind_property_with_closures (Object source, string source_property, Object target, string target_property, BindingFlags flags, Closure? transform_to, Closure? transform_from)
Thread safe variant of bind_property.
- public bool binding_transform_enum_nick_to_value (Binding binding, Value source_value, Value target_value, void* not_used)
Transforms an enumeration nickname to its corresponding value.
- public bool binding_transform_enum_value_to_nick (Binding binding, Value source_value, Value target_value, void* not_used)
Transforms an enumeration value to its corresponding nickname.
- public void categories_add (string category, string unused, string icon_file, bool searchable)
Adds a new category, with its corresponding icon, to the
configuration database.
- public string categories_dup_icon_file_for (string category)
Gets the icon file associated with the given category and returns a
copy of it.
- public List<string> categories_dup_list ()
Returns a sorted list of all the category names currently
configured.
- public bool categories_exist (string category)
Checks whether the given category is available in the configuration.
- public unowned string categories_get_icon_file_for (string category)
Gets the icon file associated with the given category.
- public List<unowned string> categories_get_list ()
Returns a sorted list of all the category names currently
configured.
- public bool categories_is_searchable (string category)
Gets whether the given calendar is to be used for searches in the
GUI.
- public void categories_register_change_listener (Callback listener)
Registers callback to be called on change of any category.
- public void categories_remove (string category)
Removes the given category from the configuration.
- public void categories_set_icon_file_for (string category, string icon_file)
Sets the icon file associated with the given category.
- public void categories_unregister_change_listener (Callback listener)
Removes previously registered callback from the list of listeners on
changes.
- public int data_server_util_get_dbus_call_timeout ()
- public void data_server_util_set_dbus_call_timeout (int timeout_msec)
Sets default timeout, in milliseconds, for calls of
call family functions.
- public void debug_log_clear ()
- public void debug_log_disable_domains (string[] domains)
Disables all domains from the domains
array.
- public bool debug_log_dump (string filename) throws Error
Saves current log information to the given filename
.
- public bool debug_log_dump_to_dated_file () throws Error
Saves current log information to a file
"e-debug-log-YYYY-MM-DD-HH-mm-ss.
- public void debug_log_enable_domains (string[] domains)
Enables all domains from the domains
array.
- public int debug_log_get_max_lines ()
- public bool debug_log_is_domain_enabled (string domain)
- public bool debug_log_load_configuration (string filename) throws Error
Loads configuration for the logging from the given filename
.
- public void debug_log_set_max_lines (int num_lines)
Limits how many lines the log can have.
- public unowned string? eds_check_version (uint required_major, uint required_minor, uint required_micro)
Checks that the Evolution-Data-Server library in use is compatible
with the given version.
- public bool enum_from_string (Type enum_type, string string, int enum_value)
Fetches the appropriate enumeration value for string
in
the given enum type type
and stores the result in enum_value
- public unowned string enum_to_string (Type enum_type, int enum_value)
Converts an enum value to a string using strings from the GType
system.
- public async bool file_recursive_delete (File file, int io_priority, Cancellable? cancellable) throws Error
Asynchronously deletes file
.
- public bool file_recursive_delete_sync (File file, Cancellable? cancellable = null) throws Error
Deletes file
.
- public void filename_make_safe (string string)
- public string? filename_mkdir_encoded (string basepath, string fileprefix, string? filename, int fileindex)
Creates a local path constructed from basepath
/
fileprefix
+ "-" + filename
, and makes sure the path basepath
exists.
- public string? free_form_exp_to_sexp (string free_form_exp, FreeFormExpSymbol symbols)
Converts the free_form_exp
to an S-Expression using the
S-Expression builders defined in the symbols
.
- public unowned string get_user_cache_dir ()
Returns a base directory in which to store user-specific,
non-essential cached data for Evolution or Evolution-Data-Server.
- public unowned string get_user_config_dir ()
Returns a base directory in which to store user-specific
configuration information for Evolution or Evolution-Data-Server.
- public unowned string get_user_data_dir ()
Returns a base directory in which to store user-specific data for
Evolution or Evolution-Data-Server.
- public void localtime_with_offset (long tt, tm tm, int offset)
Converts the calendar time time representation tt
to a
broken-down time representation, store in tm
, and provides the offset in seconds from UTC time, stored in offset
.
- public long mktime_utc (tm tm)
Like mktime(3), but assumes UTC instead of local timezone.
- public unowned string oauth2_service_util_compile_value (string compile_value, out unowned string out_glob_buff, size_t out_glob_buff_size)
- public void oauth2_service_util_set_to_form (HashTable<string,string> form, string name, string? value)
- public void oauth2_service_util_take_to_form (HashTable<string,string> form, string name, owned string? value)
- public void queue_transfer (Queue src_queue, Queue dst_queue)
Transfers the contents of src_queue
to the tail of
dst_queue
.
- public bool secret_store_delete_sync (string uid, Cancellable? cancellable = null) throws Error
Deletes the secret for uid
from either the default
keyring or session keyring.
- public bool secret_store_lookup_sync (string uid, out string out_secret, Cancellable? cancellable = null) throws Error
Looks up a secret for the uid
.
- public bool secret_store_store_sync (string uid, string secret, string label, bool permanently, Cancellable? cancellable = null) throws Error
Stores the secret
for the uid
.
- public void soup_ssl_trust_connect (Message soup_message, Source source)
Sets up automatic SSL certificate trust handling for
soup_message
using the trust data stored in source
's WebDAV extension.
- public size_t strftime (string string, size_t max, string fmt, tm tm)
This function is a wrapper around the strftime (3) function, which
converts the %l and %k (12h and 24h) format variables if necessary.
- public void time_format_date_and_time (tm date_tm, bool use_24_hour_format, bool show_midnight, bool show_zero_seconds, string buffer, int buffer_size)
Creates a string representation of the time value date_tm
and stores it in buffer
.
- public void time_format_time (tm date_tm, bool use_24_hour_format, bool show_zero_seconds, string buffer, int buffer_size)
Creates a string representation of a time value in date_tm
and stores it in buffer
.
- public string time_get_d_fmt_with_4digit_year ()
Retrieves a date format string with a 4-digit year (D_FMT on systems
with to_string available).
- public TimeParseStatus time_parse_date (string value, tm result)
Takes in a date string entered by the user and tries to convert it
to a struct tm
.
- public TimeParseStatus time_parse_date_and_time (string value, tm result)
Parses a string value
containing a date and a time and
stores the result in result
.
- public TimeParseStatus time_parse_date_and_time_ex (string value, tm result, bool two_digit_year)
Parses a string value
containing a date and a time and
stores the result in result
.
- public TimeParseStatus time_parse_date_ex (string value, tm result, bool two_digit_year)
Takes in a date string entered by the user and tries to convert it
to a struct tm
.
- public TimeParseStatus time_parse_time (string value, tm result)
Parses value
, a string containing a time.
- public uint timeout_add_seconds_with_name (int priority, uint interval, string? name, owned SourceFunc function)
Similar to add_seconds_full, but also
names the SocketSource as name
.
- public uint timeout_add_with_name (int priority, uint interval, string? name, owned SourceFunc function)
Similar to add_full, but also names the
SocketSource as name
.
- public void type_traverse (Type parent_type, TypeFunc func)
Calls func
for all instantiable subtypes of
parent_type
.
- public string uid_new ()
Generate a new unique string for use e.g. in account lists.
- public size_t utf8_strftime (string string, size_t max, string fmt, tm tm)
- public bool util_can_use_collection_as_credential_source (void* collection_source, void* child_source)
Checks whether the collection_source
can be used as a
credential source for the child_source
.
- public void util_change_uri_component (ref Uri inout_uri, URIComponent component, string? value)
Changes component component
in the inout_uri
to value value
.
- public void util_change_uri_port (ref Uri inout_uri, int port)
Changes the port in the inout_uri
to value port
.
- public SList<Object> util_copy_object_slist (owned SList<Object>? copy_to, SList<Object> objects)
Copies SList of
Objects at the end of copy_to
.
- public SList<string> util_copy_string_slist (owned SList<string>? copy_to, SList<string> strings)
Copies SList of strings at the end of
copy_to
.
- public unowned string util_ensure_gdbus_string (string? str, string gdbus_str)
If str
is a valid UTF-8 string, the function returns
str
and does not set gdbus_str
.
- public void util_free_nullable_object_slist (SList<Object> objects)
Calls unref on each member of
objects
if non-%NULL and then frees also objects
itself.
- public void util_free_object_slist (SList<Object> objects)
Calls unref on each member of
objects
and then frees also objects
itself.
- public void util_free_string_slist (SList<string> strings)
- public string util_generate_uid ()
Generates a unique identificator, which can be used as part of the
Message-ID header, or iCalendar component UID, or vCard UID.
- public GenericArray<unowned string> util_get_directory_variants (string main_path, string replace_prefix, bool with_modules_dir)
The main_path
is a directory, which will be always
used.
- public string util_get_source_full_name (void* registry, void* source)
Constructs a full name of the source
with all of its
parents of the form: "<account-name> : <parent>/<source>" where the "<parent>/" part can be repeated zero or
more times, depending on the deep level of the source
.
- public uint64 util_gthread_id (Thread thread)
Returns a 64-bit integer hopefully uniquely identifying the thread.
- public bool util_identity_can_send (void* registry, void* identity_source)
Checks whether the identity_source
can be used for
sending, which means whether it has configures send mail source.
- public void util_safe_free_string (string str)
Calls g_free on string
, but
before it rewrites its content with zeros.
- public string[] util_slist_to_strv (SList<string> strings)
Convert list of strings into NULL-terminates array of strings.
- public int util_source_compare_for_sort (void* source_a, void* source_b)
Compares two Source-s in a
way suitable for user interface.
- public int util_strcmp0 (string? str1, string? str2)
Compares str1
and str2
like
g_strcmp0
, except it handles null
and empty strings as equal.
- public string? util_strdup_strip (string? string)
Duplicates string
and strips off any leading or
trailing whitespace.
- public string? util_strstrcase (string haystack, string needle)
Find the first instance of needle
in haystack
, ignoring case for bytes that are ASCII characters.
- public bool util_strv_equal (string[] v1, string[] v2)
Compares v1
and v2
for equality, handling
null
gracefully.
- public SList<string> util_strv_to_slist (string strv)
Convert NULL-terminated array of strings to a list of strings.
- public string? util_unicode_get_utf8 (string text, unichar @out)
Get a UTF-8 character from the beginning of text
.
- public void util_unref_in_thread (void* object)
Unrefs the given object
in a dedicated thread.
- public string util_utf8_data_make_valid (string? data, size_t data_bytes)
Returns a newly-allocated NULL-terminated string with invalid
characters replaced by Unicode replacement characters (U+FFFD).
- public string util_utf8_decompose (string text)
Converts the text
into a decomposed variant and strips
it, which allows also cheap case insensitive comparision afterwards.
- public string util_utf8_make_valid (string? str)
Returns a newly-allocated copy of str
, with invalid
characters replaced by Unicode replacement characters (U+FFFD).
- public string? util_utf8_normalize (string? str)
Normalizes str
by making it all lower case and removing
any accents from it.
- public string? util_utf8_remove_accents (string? str)
Returns a newly-allocated copy of str
with accents
removed.
- public int util_utf8_strcasecmp (string s1, string s2)
Compares two UTF-8 strings using approximate case-insensitive
ordering.
- public unowned string? util_utf8_strstrcase (string? haystack, string? needle)
Find the first instance of needle
in haystack
, ignoring case.
- public unowned string? util_utf8_strstrcasedecomp (string haystack, string needle)
Find the first instance of needle
in haystack
, where both needle
and haystack
are UTF-8 strings.
- public void webdav_access_control_entry_free (void* ptr)
- public void webdav_discover_free_discovered_sources (SList<WebDAVDiscoveredSource> discovered_sources)
- public void webdav_privilege_free (void* ptr)
- public void webdav_property_change_free (void* ptr)
- public void webdav_resource_free (void* ptr)
- public void xml_destroy_hash (HashTable<string,string> hash)
Frees the memory used by hash
and its contents.
- public unowned Doc* xml_from_hash (HashTable<string,string> hash, XmlHashType type, string root_name)
Uses the key/value pair representation of an XML structure in
hash
to build an equivalent Doc.
- public unowned Node* xml_get_child_by_name (unowned Node* parent, string child_name)
Attempts to find a child element of parent
named
child_name
.
- public unowned Doc* xml_parse_file (string filename)
Reads a local XML file and parses the contents into an XML document
structure.
- public int xml_save_file (string filename, Doc doc)
Writes the given XML document structure to the file given by
filename
.
- public HashTable<string,string> xml_to_hash (Doc doc, XmlHashType type)
Creates a GenericSet representation of
the Doc doc
.