Functions¶
| binding_bind_property(source, source_property, target, target_property, flags) | |
| binding_bind_property_full(source, source_property, target, target_property, flags, transform_to, transform_from) | |
| binding_transform_enum_nick_to_value(binding, source_value, target_value, not_used) | |
| binding_transform_enum_value_to_nick(binding, source_value, target_value, not_used) | |
| categories_add(category, unused, icon_file, searchable) | |
| categories_dup_icon_file_for(category) | |
| categories_dup_list() | |
| categories_exist(category) | |
| categories_get_icon_file_for(category) | |
| categories_get_list() | |
| categories_is_searchable(category) | |
| categories_register_change_listener(listener, *user_data) | |
| categories_remove(category) | |
| categories_set_icon_file_for(category, icon_file) | |
| categories_unregister_change_listener(listener, *user_data) | |
| collator_error_quark() | |
| data_server_util_get_dbus_call_timeout() | |
| data_server_util_set_dbus_call_timeout(timeout_msec) | |
| debug_log_clear() | |
| debug_log_disable_domains(domains) | |
| debug_log_dump(filename) | |
| debug_log_dump_to_dated_file() | |
| debug_log_enable_domains(domains) | |
| debug_log_get_max_lines() | |
| debug_log_is_domain_enabled(domain) | |
| debug_log_load_configuration(filename) | |
| debug_log_set_max_lines(num_lines) | |
| eds_check_version(required_major, required_minor, required_micro) | |
| enum_from_string(enum_type, string, enum_value) | |
| enum_to_string(enum_type, enum_value) | |
| file_recursive_delete(file, io_priority, cancellable, callback, *user_data) | |
| file_recursive_delete_finish(file, result) | |
| file_recursive_delete_sync(file, cancellable) | |
| filename_make_safe(string) | |
| filename_mkdir_encoded(basepath, fileprefix, filename, fileindex) | |
| free_form_exp_to_sexp(free_form_exp, symbols) | |
| get_user_cache_dir() | |
| get_user_config_dir() | |
| get_user_data_dir() | |
| localtime_with_offset(tt, tm, offset) | |
| mktime_utc(tm) | |
| oauth2_service_util_set_to_form(form, name, value) | |
| oauth2_service_util_take_to_form(form, name, value) | |
| queue_transfer(src_queue, dst_queue) | |
| secret_store_delete_sync(uid, cancellable) | |
| secret_store_lookup_sync(uid, cancellable) | |
| secret_store_store_sync(uid, secret, label, permanently, cancellable) | |
| soup_logger_attach(message, input_stream) | |
| soup_ssl_trust_connect(soup_message, source) | |
| strftime(string, max, fmt, tm) | |
| time_format_date_and_time(date_tm, use_24_hour_format, show_midnight, show_zero_seconds, buffer, buffer_size) | |
| time_format_time(date_tm, use_24_hour_format, show_zero_seconds, buffer, buffer_size) | |
| time_get_d_fmt_with_4digit_year() | |
| time_parse_date(value, result) | |
| time_parse_date_and_time(value, result) | |
| time_parse_date_and_time_ex(value, result, two_digit_year) | |
| time_parse_date_ex(value, result, two_digit_year) | |
| time_parse_time(value, result) | |
| timeout_add_seconds_with_name(priority, interval, name, function, *data) | |
| timeout_add_with_name(priority, interval, name, function, *data) | |
| type_traverse(parent_type, func, *user_data) | |
| uid_new() | |
| utf8_strftime(string, max, fmt, tm) | |
| util_can_use_collection_as_credential_source(collection_source, child_source) | |
| util_copy_object_slist(copy_to, objects) | |
| util_copy_string_slist(copy_to, strings) | |
| util_ensure_gdbus_string(str, gdbus_str) | |
| util_free_nullable_object_slist(objects) | |
| util_free_object_slist(objects) | |
| util_free_string_slist(strings) | |
| util_generate_uid() | |
| util_get_source_full_name(registry, source) | |
| util_gthread_id(thread) | |
| util_identity_can_send(registry, identity_source) | |
| util_safe_free_string(str) | |
| util_slist_to_strv(strings) | |
| util_strcmp0(str1, str2) | |
| util_strdup_strip(string) | |
| util_strstrcase(haystack, needle) | |
| util_strv_equal(v1, v2) | |
| util_strv_to_slist(strv) | |
| util_unicode_get_utf8(text, out) | |
| util_unref_in_thread(object) | |
| util_utf8_data_make_valid(data, data_bytes) | |
| util_utf8_decompose(text) | |
| util_utf8_make_valid(str) | |
| util_utf8_normalize(str) | |
| util_utf8_remove_accents(str) | |
| util_utf8_strcasecmp(s1, s2) | |
| util_utf8_strstrcase(haystack, needle) | |
| util_utf8_strstrcasedecomp(haystack, needle) | |
| webdav_access_control_entry_free(ptr) | |
| webdav_discover_free_discovered_sources(discovered_sources) | |
| webdav_discover_sources(source, url_use_path, only_supports, credentials, cancellable, callback, *user_data) | |
| webdav_discover_sources_finish(source, result) | |
| webdav_discover_sources_full(source, url_use_path, only_supports, credentials, ref_source_func, ref_source_func_user_data, cancellable, callback, *user_data) | |
| webdav_discover_sources_full_sync(source, url_use_path, only_supports, credentials, ref_source_func, ref_source_func_user_data, cancellable) | |
| webdav_discover_sources_sync(source, url_use_path, only_supports, credentials, cancellable) | |
| webdav_privilege_free(ptr) | |
| webdav_property_change_free(ptr) | |
| webdav_resource_free(ptr) | |
| xml_destroy_hash(hash) | |
| xml_save_file(filename, doc) | |
| xml_to_hash(doc, type) | |
| xmlhash_add(hash, key, data) | |
| xmlhash_compare(hash, key, compare_data) | |
| xmlhash_destroy(hash) | |
| xmlhash_foreach_key(hash, func, *user_data) | |
| xmlhash_foreach_key_remove(hash, func, *user_data) | |
| xmlhash_remove(hash, key) | |
| xmlhash_write(hash) | 
Details¶
- 
EDataServer.binding_bind_property(source, source_property, target, target_property, flags)¶
- Parameters: - source (GObject.Object) – the sourceGObject.Object
- source_property (str) – the property on source to bind
- target (GObject.Object) – the targetGObject.Object
- target_property (str) – the property on target to bind
- flags (GObject.BindingFlags) – flags to pass toGObject.Binding
 - Return type: - Thread safe variant of - GObject.Object.bind_property(). See its documentation for more information on arguments and return value.- New in version 3.16. 
- source (
- 
EDataServer.binding_bind_property_full(source, source_property, target, target_property, flags, transform_to, transform_from)¶
- Parameters: - source (GObject.Object) – the sourceGObject.Object
- source_property (str) – the property on source to bind
- target (GObject.Object) – the targetGObject.Object
- target_property (str) – the property on target to bind
- flags (GObject.BindingFlags) – flags to pass toGObject.Binding
- transform_to (GObject.Closure) – aGObject.Closurewrapping the transformation function from the source to the target, orNoneto use the default
- transform_from (GObject.Closure) – aGObject.Closurewrapping the transformation function from the target to the source, orNoneto use the default
 - Returns: - the - GObject.Bindinginstance representing the binding between the two- GObject.Objectinstances. The binding is released whenever the- GObject.Bindingreference count reaches zero.- Return type: - Thread safe variant of - GObject.Object.bind_property_full(). See its documentation for more information on arguments and return value.- New in version 3.16. 
- source (
- 
EDataServer.binding_transform_enum_nick_to_value(binding, source_value, target_value, not_used)¶
- Parameters: - binding (GObject.Binding) – aGObject.Binding
- source_value (GObject.Value) – aGObject.Valueof typeGObject.TYPE_STRING
- target_value (GObject.Value) – aGObject.Valuewhose type is derived fromGObject.TYPE_ENUM
- not_used (objectorNone) – not used
 - Returns: - Trueif the enum nickname has a corresponding value- Return type: - Transforms an enumeration nickname to its corresponding value. - New in version 3.4. 
- binding (
- 
EDataServer.binding_transform_enum_value_to_nick(binding, source_value, target_value, not_used)¶
- Parameters: - binding (GObject.Binding) – aGObject.Binding
- source_value (GObject.Value) – aGObject.Valuewhose type is derived fromGObject.TYPE_ENUM
- target_value (GObject.Value) – aGObject.Valueof typeGObject.TYPE_STRING
- not_used (objectorNone) – not used
 - Returns: - Trueif the enum value has a corresponding nickname- Return type: - Transforms an enumeration value to its corresponding nickname. - New in version 3.4. 
- binding (
- 
EDataServer.categories_add(category, unused, icon_file, searchable)¶
- Parameters: - Adds a new category, with its corresponding icon, to the configuration database. - This function is thread safe. 
- 
EDataServer.categories_dup_icon_file_for(category)¶
- Parameters: - category ( - str) – category to retrieve the icon file for.- Returns: - icon file name; free with - GLib.free().- Return type: - str- Gets the icon file associated with the given category and returns a copy of it. - This function is thread safe. - New in version 3.16. 
- 
EDataServer.categories_dup_list()¶
- Returns: - a sorted - GLib.Listcontaining the names of the categories. The list should be freed using g_list_free(), and the names of the categories should be freed using- GLib.free(). Everything can be freed simultaneously using g_list_free_full().- Return type: - [ - str]- Returns a sorted list of all the category names currently configured. - This function is thread safe. - New in version 3.16. 
- 
EDataServer.categories_exist(category)¶
- Parameters: - category ( - str) – category to be searched.- Returns: - Trueif the category is available,- Falseotherwise.- Return type: - bool- Checks whether the given category is available in the configuration. - This function is thread safe. 
- 
EDataServer.categories_get_icon_file_for(category)¶
- Parameters: - category ( - str) – category to retrieve the icon file for.- Returns: - icon file name. - Return type: - str- Gets the icon file associated with the given category. - This function is mostly thread safe, but as the icon file name is not copied, it may be freed by another thread after being returned by this function. Use - EDataServer.categories_dup_icon_file_for() instead.- Deprecated since version 3.16: This function is not entirely thread safe. Use - EDataServer.categories_dup_icon_file_for() instead.
- 
EDataServer.categories_get_list()¶
- Returns: - a sorted - GLib.Listcontaining the names of the categories. The list should be freed using g_list_free(), but the names of the categories should not be touched at all, they are internal strings.- Return type: - [ - str]- Returns a sorted list of all the category names currently configured. - This function is mostly thread safe, but as the category names are not copied, they may be freed by another thread after being returned by this function. Use - EDataServer.categories_dup_list() instead.- Deprecated since version 3.16: This function is not entirely thread safe. Use - EDataServer.categories_dup_list() instead.
- 
EDataServer.categories_is_searchable(category)¶
- Parameters: - category ( - str) – category name.- Return type: - bool- Gets whether the given calendar is to be used for searches in the GUI. - This function is thread safe. - Return value; - True% if the category is searchable,- False% if not.
- 
EDataServer.categories_register_change_listener(listener, *user_data)¶
- Parameters: - listener (GObject.Callback) – the callback to be called on any category change.
- user_data (objectorNone) – used data passed to the listener when called.
 - Registers callback to be called on change of any category. Pair listener and user_data is used to distinguish between listeners. Listeners can be unregistered with e_categories_unregister_change_listener. - This function is thread safe. - New in version 2.24. 
- listener (
- 
EDataServer.categories_remove(category)¶
- Parameters: - category ( - str) – category to be removed.- Removes the given category from the configuration. - This function is thread safe. 
- 
EDataServer.categories_set_icon_file_for(category, icon_file)¶
- Parameters: - Sets the icon file associated with the given category. - This function is thread safe. 
- 
EDataServer.categories_unregister_change_listener(listener, *user_data)¶
- Parameters: - listener (GObject.Callback) – Callback to be removed.
- user_data (objectorNone) – User data as passed with call to e_categories_register_change_listener.
 - Removes previously registered callback from the list of listeners on changes. If it was not registered, then does nothing. - This function is thread safe. - New in version 2.24. 
- listener (
- 
EDataServer.data_server_util_get_dbus_call_timeout()¶
- Returns: - the D-Bus call timeout in milliseconds - Return type: - int- Returns the value set by - EDataServer.data_server_util_set_dbus_call_timeout().- New in version 3.0. - Deprecated since version 3.8: This value is not used anywhere. 
- 
EDataServer.data_server_util_set_dbus_call_timeout(timeout_msec)¶
- Parameters: - timeout_msec ( - int) – default timeout for D-Bus calls in miliseconds- Sets default timeout, in milliseconds, for calls of - Gio.DBusProxy.call() family functions.- -1 means the default value as set by D-Bus itself. - GObject.G_MAXINTmeans no timeout at all.- Default value is set also by configure option –with-dbus-call-timeout=ms and -1 is used when not set. - New in version 3.0. - Deprecated since version 3.8: This value is not used anywhere. 
- 
EDataServer.debug_log_clear()¶
- New in version 2.32. 
- 
EDataServer.debug_log_disable_domains(domains)¶
- Parameters: - domains ([ - str]) – an array of domains to disable- Disables all domains from the domains array. - New in version 2.32. 
- 
EDataServer.debug_log_dump(filename)¶
- Parameters: - filename ( - str) – a filename to save logged information to- Raises: - GLib.Error- Returns: - whether succeeded - Return type: - bool- Saves current log information to the given filename. - New in version 2.32. 
- 
EDataServer.debug_log_dump_to_dated_file()¶
- Raises: - GLib.Error- Returns: - whether succeeded - Return type: - bool- Saves current log information to a file “e-debug-log-YYYY-MM-DD-HH-mm-ss.txt” in the user’s HOME directory. - New in version 2.32. 
- 
EDataServer.debug_log_enable_domains(domains)¶
- Parameters: - domains ([ - str]) – an array of domains to enable- Enables all domains from the domains array. - New in version 2.32. 
- 
EDataServer.debug_log_is_domain_enabled(domain)¶
- Parameters: - domain ( - str) – a log domain- Returns: - whether the given log domain is enabled, which means that any logging to this domain is recorded. - Return type: - bool- New in version 2.32. 
- 
EDataServer.debug_log_load_configuration(filename)¶
- Parameters: - filename ( - str) – a configuration file name- Raises: - GLib.Error- Returns: - whether succeeded - Return type: - bool- Loads configuration for the logging from the given filename. - New in version 2.32. 
- 
EDataServer.debug_log_set_max_lines(num_lines)¶
- Parameters: - num_lines ( - int) – number of lines- Limits how many lines the log can have. - New in version 2.32. 
- 
EDataServer.eds_check_version(required_major, required_minor, required_micro)¶
- Parameters: - Returns: - Noneif the Evolution-Data-Server library is compatible with the given version, or a string describing the version mismatch. The returned string is owned by libedataserver and must not be modified or freed.- Return type: - Checks that the Evolution-Data-Server library in use is compatible with the given version. Generally you would pass in the constants - EDataServer.EDS_MAJOR_VERSION,- EDataServer.EDS_MINOR_VERSION,- EDataServer.EDS_MICRO_VERSIONas the three arguments to this function. That produces a check that the library in use is compatible with the version of Evolution-Data-Server the application or module was compiled against.- New in version 2.24. 
- 
EDataServer.enum_from_string(enum_type, string, enum_value)¶
- Parameters: - enum_type (GObject.GType) – The enum type
- string (str) – The string containing the enum value or nick
- enum_value (int) – A return location to store the result
 - Returns: - Trueif the string was a valid name or nick for the given type,- Falseif the conversion failed.- Return type: - Fetches the appropriate enumeration value for string in the given enum type type and stores the result in enum_value - New in version 3.8. 
- enum_type (
- 
EDataServer.enum_to_string(enum_type, enum_value)¶
- Parameters: - enum_type (GObject.GType) – An enum type
- enum_value (int) – The enum value to convert
 - Returns: - the string representing eval - Return type: - Converts an enum value to a string using strings from the - GObject.GTypesystem.- New in version 3.8. 
- enum_type (
- 
EDataServer.file_recursive_delete(file, io_priority, cancellable, callback, *user_data)¶
- Parameters: - file (Gio.File) – aGio.Fileto delete
- io_priority (int) – the I/O priority of the request
- cancellable (Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- callback (Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied
- user_data (objectorNone) – data to pass to the callback function
 - Asynchronously deletes file. If file is a directory, its contents are deleted recursively before file itself is deleted. The recursive delete operation will stop on the first error. - If cancellable is not - None, then the operation can be cancelled by triggering the cancellable object before the operation finishes.- When the operation is finished, callback will be called. You can then call - EDataServer.file_recursive_delete_finish() to get the result of the operation.- New in version 3.6. 
- file (
- 
EDataServer.file_recursive_delete_finish(file, result)¶
- Parameters: - file (Gio.File) – aGio.Fileto delete
- result (Gio.AsyncResult) – aGio.AsyncResult
 - Raises: - Returns: - Return type: - Finishes the operation started with - EDataServer.file_recursive_delete().- If the operation was cancelled, the error - Gio.IOErrorEnum.CANCELLEDwill be returned.- New in version 3.6. 
- file (
- 
EDataServer.file_recursive_delete_sync(file, cancellable)¶
- Parameters: - file (Gio.File) – aGio.Fileto delete
- cancellable (Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
 - Raises: - Returns: - Return type: - Deletes file. If file is a directory, its contents are deleted recursively before file itself is deleted. The recursive delete operation will stop on the first error. - If cancellable is not - None, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error- Gio.IOErrorEnum.CANCELLEDwill be returned.- New in version 3.6. 
- file (
- 
EDataServer.filename_mkdir_encoded(basepath, fileprefix, filename, fileindex)¶
- Parameters: - Returns: - Full local path like g_build_filename() except that fileprefix and filename are encoded to create a proper file elements for a file system. Free returned pointer with - GLib.free().- Return type: - Creates a local path constructed from basepath / fileprefix + “-” + filename, and makes sure the path basepath exists. If creation of the path fails, then - Noneis returned.- New in version 3.4. 
- 
EDataServer.free_form_exp_to_sexp(free_form_exp, symbols)¶
- Parameters: - free_form_exp (str) – a Free Form Expression
- symbols (EDataServer.FreeFormExpSymbol) – known symbols, which can be used in the Free From Expression
 - Returns: - converted free_form_exp into S-Expression, - Noneon error. Free the returned string with a- GLib.free(), when done with it.- Return type: - Converts the free_form_exp to an S-Expression using the S-Expression builders defined in the symbols. The symbols should have one symbol with an empty string as its name, which is used for words which do not have a symbol name prefix. - The symbols is a - None-terminated array of known symbols. The- Noneshould be set for the symbol’s name.- New in version 3.16. 
- free_form_exp (
- 
EDataServer.get_user_cache_dir()¶
- Returns: - base directory for user-specific, non-essential data - Return type: - str- Returns a base directory in which to store user-specific, non-essential cached data for Evolution or Evolution-Data-Server. - The returned string is owned by libedataserver and must not be modified or freed. - New in version 2.32. 
- 
EDataServer.get_user_config_dir()¶
- Returns: - base directory for user-specific configuration information - Return type: - str- Returns a base directory in which to store user-specific configuration information for Evolution or Evolution-Data-Server. - The returned string is owned by libedataserver and must not be modified or freed. - New in version 2.32. 
- 
EDataServer.get_user_data_dir()¶
- Returns: - base directory for user-specific data - Return type: - str- Returns a base directory in which to store user-specific data for Evolution or Evolution-Data-Server. - The returned string is owned by libedataserver and must not be modified or freed. - New in version 2.32. 
- 
EDataServer.localtime_with_offset(tt, tm, offset)¶
- Parameters: - 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. 
- 
EDataServer.mktime_utc(tm)¶
- Parameters: - tm ( - objector- None) – The #tm to convert to a calendar time representation.- Returns: - The calendar time representation of tm. - Return type: - int- Like mktime(3), but assumes UTC instead of local timezone. 
- 
EDataServer.oauth2_service_util_set_to_form(form, name, value)¶
- Parameters: - Sets value for name to form. The form should be the one used in - EDataServer.OAuth2Service.prepare_authentication_uri_query(),- EDataServer.OAuth2Service.prepare_get_token_form() or- EDataServer.OAuth2Service.prepare_refresh_token_form().- If the value is - None, then the property named name is removed from the form instead.- New in version 3.28. 
- 
EDataServer.oauth2_service_util_take_to_form(form, name, value)¶
- Parameters: - Takes ownership of value and sets it for name to form. The value will be freed with - GLib.free(), when no longer needed. The form should be the one used in- EDataServer.OAuth2Service.prepare_authentication_uri_query(),- EDataServer.OAuth2Service.prepare_get_token_form() or- EDataServer.OAuth2Service.prepare_refresh_token_form().- If the value is - None, then the property named name is removed from the form instead.- New in version 3.28. 
- 
EDataServer.queue_transfer(src_queue, dst_queue)¶
- Parameters: - src_queue (GLib.Queue) – a sourceGLib.Queue
- dst_queue (GLib.Queue) – a destinationGLib.Queue
 - Transfers the contents of src_queue to the tail of dst_queue. When the operation is complete, src_queue will be empty. - New in version 3.8. 
- src_queue (
- 
EDataServer.secret_store_delete_sync(uid, cancellable)¶
- Parameters: - uid (str) – a unique identifier of the secret
- cancellable (Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
 - Raises: - Returns: - Return type: - Deletes the secret for uid from either the default keyring or session keyring. - Note the boolean return value indicates whether the delete operation itself completed successfully, not whether the secret was found and deleted. If no such secret was found, the function will still return - True. If an error occurs, the function sets error and returns- False.- New in version 3.18. 
- uid (
- 
EDataServer.secret_store_lookup_sync(uid, cancellable)¶
- Parameters: - uid (str) – a unique identifier of the secret
- cancellable (Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
 - Raises: - Returns: - Trueon success,- Falseon error- out_secret: - return location for the secret, or - None- Return type: - Looks up a secret for the uid. Both the default and session keyrings are queried. - Note the boolean return value indicates whether the lookup operation itself completed successfully, not whether the secret was found. If no secret was found, the function will set out_secret to - None, but still return- True. If an error occurs, the function sets error and returns- False.- New in version 3.18. 
- uid (
- 
EDataServer.secret_store_store_sync(uid, secret, label, permanently, cancellable)¶
- Parameters: - uid (str) – a unique identifier of the secret
- secret (str) – the secret to store
- label (str) – human readable description of the secret
- permanently (bool) – store permanently or just for the session
- cancellable (Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
 - Raises: - Returns: - Return type: - Stores the secret for the uid. - If permanently is - True, the secret is stored in the default keyring. Otherwise the secret is stored in the memory-only session keyring. If an error occurs, the function sets error and returns- False.- New in version 3.18. 
- uid (
- 
EDataServer.soup_logger_attach(message, input_stream)¶
- Parameters: - message (Soup.Message) – aSoup.Message
- input_stream (Gio.InputStream) – aGio.InputStream, associated with the message
 - Returns: - a new input stream, to be used instead of the input_stream. It should be freed with - GObject.Object.unref(), when no longer needed.- Return type: - Remembers what had been read from the input_stream and prints it to stdout when the message is finished. The function assumes ownership of the input_stream. - New in version 3.38. 
- message (
- 
EDataServer.soup_ssl_trust_connect(soup_message, source)¶
- Parameters: - soup_message (Soup.Message) – aSoup.Messageabout to be sent to the source
- source (EDataServer.Source) – anEDataServer.Sourcethat uses WebDAV
 - Sets up automatic SSL certificate trust handling for soup_message using the trust data stored in source’s WebDAV extension. If soup_message is about to be sent on an SSL connection with an invalid certificate, the code checks if the WebDAV extension already has a trust response for that certificate and verifies it with - EDataServer.SourceWebdav.verify_ssl_trust(). If the verification fails, then the soup_message send also fails.- This works by connecting to the “network-event” signal on soup_message and connecting to the “accept-certificate” signal on each - Gio.TlsConnectionfor which soup_message reports a- Gio.SocketClientEvent.TLS_HANDSHAKINGevent. These handlers are torn down automatically when soup_message is disposed. This process is not thread-safe; it is sufficient for safety if all use of soup_message’s session and the disposal of soup_message occur in the same thread.- New in version 3.16. 
- soup_message (
- 
EDataServer.strftime(string, max, fmt, tm)¶
- Parameters: - Returns: - The number of characters placed in s. - Return type: - This function is a wrapper around the strftime (3) function, which converts the %l and %k (12h and 24h) format variables if necessary. 
- 
EDataServer.time_format_date_and_time(date_tm, use_24_hour_format, show_midnight, show_zero_seconds, buffer, buffer_size)¶
- Parameters: - Creates a string representation of the time value date_tm and stores it in buffer. buffer_size should be at least 64 to be safe. If show_midnight is - False, and the time is midnight, then only the date is stored in buffer. If show_zero_seconds is- False, then if the time has zero seconds only the hour and minute of the time are stored in buffer.
- 
EDataServer.time_format_time(date_tm, use_24_hour_format, show_zero_seconds, buffer, buffer_size)¶
- Parameters: - Creates a string representation of a time value in date_tm and stores it in buffer. buffer_size should be at least 64. 
- 
EDataServer.time_get_d_fmt_with_4digit_year()¶
- Returns: - a newly-allocated date format string - Return type: - str- Retrieves a date format string with a 4-digit year (D_FMT on systems with nl_langinfo() available). In case the current locale doesn’t support 4-digit year, the function returns format as specified by the locale. - Free the returned string with - GLib.free().- New in version 2.22. 
- 
EDataServer.time_parse_date(value, result)¶
- Parameters: - Returns: - An - EDataServer.TimeParseStatusresult code indicating whether value was an empty string, a valid date, or an invalid date.- Return type: - Takes in a date string entered by the user and tries to convert it to a struct #tm. 
- 
EDataServer.time_parse_date_and_time(value, result)¶
- Parameters: - Returns: - EDataServer.TimeParseStatus.OKif the string was successfully parsed,- EDataServer.TimeParseStatus.NONEif the string was empty, or- EDataServer.TimeParseStatus.INVALIDif the string could not be parsed.- Return type: - Parses a string value containing a date and a time and stores the result in result. The date in value is expected to be in a format like “Wed 3/13/00 14:20:00”, though gettext() is used to support the appropriate local formats. There is also some leniency on the format of the string, e.g. the weekday can be skipped or 12-hour formats with am/pm can be used. 
- 
EDataServer.time_parse_date_and_time_ex(value, result, two_digit_year)¶
- Parameters: - Returns: - EDataServer.TimeParseStatus.OKif the string was successfully parsed,- EDataServer.TimeParseStatus.NONEif the string was empty, or- EDataServer.TimeParseStatus.INVALIDif the string could not be parsed.- Return type: - Parses a string value containing a date and a time and stores the result in result. The date in value is expected to be in a format like “Wed 3/13/00 14:20:00”, though gettext() is used to support the appropriate local formats. There is also some leniency on the format of the string, e.g. the weekday can be skipped or 12-hour formats with am/pm can be used. - New in version 2.22. 
- 
EDataServer.time_parse_date_ex(value, result, two_digit_year)¶
- Parameters: - Returns: - An - EDataServer.TimeParseStatusresult code indicating whether value was an empty string, a valid date, or an invalid date.- Return type: - Takes in a date string entered by the user and tries to convert it to a struct #tm. - New in version 2.22. 
- 
EDataServer.time_parse_time(value, result)¶
- Parameters: - Returns: - An - EDataServer.TimeParseStatusresult code indicating whether value was an empty string, a valid date, or an invalid date.- Return type: - Parses value, a string containing a time. value is expected to be in a format like “14:20:00”. gettext() is used to support the appropriate local formats and slightly different formats, such as 12-hour formats with am/pm, are accepted as well. 
- 
EDataServer.timeout_add_seconds_with_name(priority, interval, name, function, *data)¶
- Parameters: - priority (int) – the priority of the timeout source, typically in the range betweenGLib.PRIORITY_DEFAULTandGLib.PRIORITY_HIGH
- interval (int) – the time between calls to the function, in seconds
- name (strorNone) – debug name for the source
- function (GLib.SourceFunc) – function to call
- data (objectorNone) – data to pass to function
 - Returns: - the ID (greater than 0) of the event source - Return type: - Similar to - GLib.timeout_add_seconds(), but also names the- GLib.Sourceas name.- You might find e_named_timeout_add_seconds() or e_named_timeout_add_seconds_full() more convenient. Those macros name the - GLib.Sourceimplicitly.- New in version 3.12. 
- priority (
- 
EDataServer.timeout_add_with_name(priority, interval, name, function, *data)¶
- Parameters: - priority (int) – the priority of the timeout source, typically in the range betweenGLib.PRIORITY_DEFAULTandGLib.PRIORITY_HIGH
- interval (int) – the time between calls to the function, in milliseconds (1/1000ths of a second)
- name (strorNone) – debug name for the source
- function (GLib.SourceFunc) – function to call
- data (objectorNone) – data to pass to function
 - Returns: - the ID (greather than 0) of the event source - Return type: - Similar to - GLib.timeout_add(), but also names the- GLib.Sourceas name.- You might find e_named_timeout_add() or e_named_timeout_add_full() more convenient. Those macros name the - GLib.Sourceimplicitly.- New in version 3.12. 
- priority (
- 
EDataServer.type_traverse(parent_type, func, *user_data)¶
- Parameters: - parent_type (GObject.GType) – the rootGObject.GTypeto traverse from
- func (EDataServer.TypeFunc) – the function to call for each visitedGObject.GType
- user_data (objectorNone) – user data to pass to the function
 - Calls func for all instantiable subtypes of parent_type. - This is often useful for extending functionality by way of - EDataServer.Module. A module may register a subtype of parent_type in its e_module_load() function. Then later on the application will call- EDataServer.type_traverse() to instantiate all registered subtypes of parent_type.- New in version 3.4. 
- parent_type (
- 
EDataServer.uid_new()¶
- Returns: - The newly generated UID. The caller should free the string when it’s done with it. - Return type: - str- Generate a new unique string for use e.g. in account lists. - Deprecated since version 3.26: Use - EDataServer.util_generate_uid() instead.
- 
EDataServer.utf8_strftime(string, max, fmt, tm)¶
- Parameters: - Returns: - The number of characters placed in s. - Return type: - The UTF-8 equivalent of - EDataServer.strftime().
- 
EDataServer.util_can_use_collection_as_credential_source(collection_source, child_source)¶
- Parameters: - Returns: - whether collection_source can be used as a credential source for child_source, that is, whether they share credentials. - Return type: - Checks whether the collection_source can be used as a credential source for the child_source. The relationship is not tested in the function. When the collection_source is - None, then it simply returns- False.- New in version 3.28. 
- 
EDataServer.util_copy_object_slist(copy_to, objects)¶
- Parameters: - copy_to ([GObject.Object] orNone) – Where to copy; can beNone
- objects ([GObject.Object]) –GLib.SListofGObject.Objects to be copied
 - Returns: - New head of copy_to. Returned pointer can be freed with - EDataServer.util_free_object_slist().- Return type: - Copies - GLib.SListof- GObject.Objects at the end of copy_to.- New in version 3.4. - Deprecated since version 3.8: Use g_slist_copy_deep() instead, and optionally g_slist_concat() to concatenate the copied list to another - GLib.SList.
- copy_to ([
- 
EDataServer.util_copy_string_slist(copy_to, strings)¶
- Parameters: - copy_to ([str] orNone) – Where to copy; can beNone
- strings ([str]) –GLib.SListof strings to be copied
 - Returns: - New head of copy_to. Returned pointer can be freed with - EDataServer.util_free_string_slist().- Return type: - [ - str]- Copies - GLib.SListof strings at the end of copy_to.- New in version 3.4. - Deprecated since version 3.8: Use g_slist_copy_deep() instead, and optionally g_slist_concat() to concatenate the copied list to another - GLib.SList.
- copy_to ([
- 
EDataServer.util_ensure_gdbus_string(str, gdbus_str)¶
- Parameters: - Returns: - a valid UTF-8 string - Return type: - If str is a valid UTF-8 string, the function returns str and does not set gdbus_str. - If str is an invalid UTF-8 string, the function calls - EDataServer.util_utf8_make_valid() and points gdbus_str to the newly-allocated, valid UTF-8 string, and also returns it. The caller should free the string pointed to by gdbus_str with- GLib.free().- If str is - None, the function returns an empty string and does not set gdbus_str.- Admittedly, the function semantics are a little awkward. The example below illustrates the easiest way to cope with the gdbus_str argument: - const gchar *trusted_utf8; gchar *allocated = NULL; trusted_utf8 = e_util_ensure_gdbus_string (untrusted_utf8, &allocated); Do stuff with trusted_utf8, then clear it. trusted_utf8 = NULL; g_free (allocated); allocated = NULL; - New in version 3.0. 
- 
EDataServer.util_free_nullable_object_slist(objects)¶
- Parameters: - objects ([ - GObject.Object]) – a- GLib.SListof nullable- GObject.Objects- Calls - GObject.Object.unref() on each member of objects if non-- Noneand then frees also objects itself.- New in version 3.6. 
- 
EDataServer.util_free_object_slist(objects)¶
- Parameters: - objects ([ - GObject.Object]) – a- GLib.SListof- GObject.Objects- Calls - GObject.Object.unref() on each member of objects and then frees also objects itself.- New in version 3.4. - Deprecated since version 3.8: Use g_slist_free_full() instead. 
- 
EDataServer.util_free_string_slist(strings)¶
- Parameters: - strings ([ - str]) – a- GLib.SListof strings (- str*)- Frees memory previously allocated by - EDataServer.util_strv_to_slist().- New in version 3.4. - Deprecated since version 3.8: Use g_slist_free_full() instead. 
- 
EDataServer.util_generate_uid()¶
- Returns: - generated unique identificator as a newly allocated string - Return type: - str- Generates a unique identificator, which can be used as - Camel.partof the Message-ID header, or iCalendar component UID, or vCard UID. The resulting string doesn’t contain any host name, it’s a hexa-decimal string with no particular meaning.- Free the returned string with - GLib.free(), when no longer needed.- New in version 3.26. 
- 
EDataServer.util_get_source_full_name(registry, source)¶
- Parameters: - registry (objectorNone) – anEDataServer.SourceRegistry
- source (objectorNone) – anEDataServer.Source
 - Returns: - Full name of the source as a newly allocated string, which should be freed with - GLib.free() when done with it.- Return type: - Constructs a full name of the source with all of its parents of the form: “<account-name> : <parent>/<source>” where the “<parent>/” - Camel.partcan be repeated zero or more times, depending on the deep level of the source.
- registry (
- 
EDataServer.util_gthread_id(thread)¶
- Parameters: - thread ( - GLib.Thread) – A- GLib.Threadpointer- Returns: - A 64-bit integer. - Return type: - int- Returns a 64-bit integer hopefully uniquely identifying the thread. To be used in debugging output and logging only. The returned value is just a cast of a pointer to the 64-bit integer. - There is no guarantee that calling - EDataServer.util_gthread_id() on one thread first and later after that thread has dies on another won’t return the same integer.- On Linux and Win32, known to really return a unique id for each thread existing at a certain time. No guarantee that ids won’t be reused after a thread has terminated, though. - New in version 2.32. 
- 
EDataServer.util_identity_can_send(registry, identity_source)¶
- Parameters: - registry (objectorNone) – anEDataServer.SourceRegistry
- identity_source (objectorNone) – anEDataServer.Sourcewith mail identity extension
 - Returns: - Whether identity_source can be used to send messages - Return type: - Checks whether the identity_source can be used for sending, which means whether it has configures send mail source. - New in version 3.26. 
- registry (
- 
EDataServer.util_safe_free_string(str)¶
- Parameters: - str ( - str) – a string to free- Calls - GLib.free() on string, but before it rewrites its content with zeros. This is suitable to free strings with passwords.- New in version 3.16. 
- 
EDataServer.util_slist_to_strv(strings)¶
- Parameters: - strings ([ - str]) – a- GLib.SListof strings (const- str*)- Returns: - Newly allocated - None-terminated array of strings. Returned pointer should be freed with- GLib.strfreev().- Note: Pair function for this is - EDataServer.util_strv_to_slist().- Return type: - [ - str]- Convert list of strings into - None-terminates array of strings.- New in version 3.4. 
- 
EDataServer.util_strcmp0(str1, str2)¶
- Parameters: - Returns: - an integer less than 0 when str1 is before str2; 0 when the strings are equal and an integer greated than 0 when str1 is after str2. - Return type: - Compares str1 and str2 like - GLib.strcmp0(), except it handles- Noneand empty strings as equal.- New in version 3.32. 
- 
EDataServer.util_strdup_strip(string)¶
- Parameters: - string ( - stror- None) – a string value, or- None- Returns: - a newly-allocated, stripped copy of string, or - None- Return type: - str- Duplicates string and strips off any leading or trailing whitespace. The resulting string is returned unless it is empty or - None, in which case the function returns- None.- Free the returned string with - GLib.free().- New in version 3.6. 
- 
EDataServer.util_strstrcase(haystack, needle)¶
- Parameters: - Returns: - A pointer to the start of needle in haystack, or - Noneif needle is not found.- Return type: - Find the first instance of needle in haystack, ignoring case for bytes that are ASCII characters. 
- 
EDataServer.util_strv_equal(v1, v2)¶
- Parameters: - Returns: - whether v1 and v2 are identical - Return type: - Compares v1 and v2 for equality, handling - Nonegracefully.- The arguments types are generic for compatibility with - GLib.EqualFunc.- New in version 3.12. 
- 
EDataServer.util_strv_to_slist(strv)¶
- Parameters: - strv ( - str) – a- None-terminated array of strings (const- str*)- Returns: - Newly allocated - GLib.SListof newly allocated strings. The returned pointer should be freed with- EDataServer.util_free_string_slist().- Note: Pair function for this is - EDataServer.util_slist_to_strv().- Return type: - [ - str]- Convert - None-terminated array of strings to a list of strings.- New in version 3.4. 
- 
EDataServer.util_unicode_get_utf8(text, out)¶
- Parameters: - Returns: - A pointer to the next character in text after out. - Return type: - Get a UTF-8 character from the beginning of text. 
- 
EDataServer.util_unref_in_thread(object)¶
- Parameters: - object ( - objector- None) – a- GObject.Object- Unrefs the given object in a dedicated thread. This is useful when unreffing object deep in call stack when the caller might still use the object and this being the last reference to it. - New in version 3.26. 
- 
EDataServer.util_utf8_data_make_valid(data, data_bytes)¶
- Parameters: - Returns: - a newly-allocated string - Return type: - Returns a newly-allocated - None-terminated string with invalid characters replaced by Unicode replacement characters (U+FFFD). For- Nonedata returns newly allocated empty string (“”).- New in version 3.6. 
- 
EDataServer.util_utf8_decompose(text)¶
- Parameters: - text ( - str) – a UTF-8 string- Returns: - A newly allocated string, a decomposed variant of the text. Free with - GLib.free(), when no longer needed.- Return type: - str- Converts the text into a decomposed variant and strips it, which allows also cheap case insensitive comparision afterwards. This produces an output as being used in - EDataServer.util_utf8_strstrcasedecomp().- New in version 3.26. 
- 
EDataServer.util_utf8_make_valid(str)¶
- Parameters: - str ( - str) – a UTF-8 string- Returns: - a newly-allocated string - Return type: - str- Returns a newly-allocated copy of str, with invalid characters replaced by Unicode replacement characters (U+FFFD). For - Nonestr returns newly allocated empty string (“”).- New in version 3.0. 
- 
EDataServer.util_utf8_normalize(str)¶
- Parameters: - str ( - str) – a UTF-8 string- Returns: - The normalized version of str, or - Noneif str was not valid UTF-8- Return type: - str- Normalizes str by making it all lower case and removing any accents from it. - New in version 3.8. 
- 
EDataServer.util_utf8_remove_accents(str)¶
- Parameters: - str ( - str) – a UTF-8 string, or- None- Returns: - a newly-allocated string - Return type: - str- Returns a newly-allocated copy of str with accents removed. - New in version 2.28. 
- 
EDataServer.util_utf8_strcasecmp(s1, s2)¶
- Parameters: - Returns: - < 0 if s1 compares before s2, 0 if they compare equal, > 0 if s1 compares after s2 - Return type: - Compares two UTF-8 strings using approximate case-insensitive ordering. 
- 
EDataServer.util_utf8_strstrcase(haystack, needle)¶
- Parameters: - Returns: - A pointer to the first instance of needle in haystack, or - Noneif no match is found, or if either of the strings are not legal UTF-8 strings.- Return type: - Find the first instance of needle in haystack, ignoring case. (No proper case folding or decomposing is done.) Both needle and haystack are UTF-8 strings. 
- 
EDataServer.util_utf8_strstrcasedecomp(haystack, needle)¶
- Parameters: - Returns: - A pointer to the first instance of needle in haystack, or - Noneif either of the strings are not legal UTF-8 strings.- Return type: - Find the first instance of needle in haystack, where both needle and haystack are UTF-8 strings. Both strings are stripped and decomposed for comparison, and case is ignored. 
- 
EDataServer.webdav_access_control_entry_free(ptr)¶
- Parameters: - ptr ( - objector- None) – an- EDataServer.WebDAVAccessControlEntry- Frees an - EDataServer.WebDAVAccessControlEntrypreviously created with- EDataServer.WebDAVAccessControlEntry.new() or- EDataServer.WebDAVAccessControlEntry.copy(). The function does nothing, if ptr is- None.- New in version 3.26. 
- 
EDataServer.webdav_discover_free_discovered_sources(discovered_sources)¶
- Parameters: - discovered_sources ([ - EDataServer.WebDAVDiscoveredSource]) – A- GLib.SListof discovered sources- Frees a GSList of discovered sources returned from - EDataServer.webdav_discover_sources_finish() or- EDataServer.webdav_discover_sources_sync().- New in version 3.18. 
- 
EDataServer.webdav_discover_sources(source, url_use_path, only_supports, credentials, cancellable, callback, *user_data)¶
- Parameters: - source (EDataServer.Source) – anEDataServer.Sourcefrom which to take connection details
- url_use_path (strorNone) – optional URL override, orNone
- only_supports (int) – bit-or ofEDataServer.WebDAVDiscoverSupports, to limit what type of sources to search
- credentials (EDataServer.NamedParametersorNone) – credentials to use for authentication to the server
- cancellable (Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- callback (Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied
- user_data (objectorNone) – data to pass to the callback function
 - Asynchronously runs discovery of the WebDAV sources (CalDAV and CardDAV), eventually limited by the only_supports filter, which can be - EDataServer.WebDAVDiscoverSupports.NONEto search all types. Note that the list of returned calendars can be more general, thus check for its actual support type for further filtering of the results. The url_use_path can be used to override actual server path, or even complete URL, for the given source.- When the operation is finished, callback will be called. You can then call - EDataServer.webdav_discover_sources_finish() to get the result of the operation.- New in version 3.18. 
- source (
- 
EDataServer.webdav_discover_sources_finish(source, result)¶
- Parameters: - source (EDataServer.Source) – anEDataServer.Sourceon which the operation was started
- result (Gio.AsyncResult) – aGio.AsyncResult
 - Raises: - Returns: - Trueon success,- Falseon failure- out_certificate_pem: - optional return location for a server SSL certificate in PEM format, when the operation failed with an SSL error - out_certificate_errors: - optional - Gio.TlsCertificateFlags, with certificate error flags when the operation failed with SSL error- out_discovered_sources: - a - GLib.SListof all discovered sources- out_calendar_user_addresses: - a - GLib.SListof all discovered mail addresses for calendar sources- Return type: - ( - bool, out_certificate_pem:- str, out_certificate_errors:- Gio.TlsCertificateFlags, out_discovered_sources: [- EDataServer.WebDAVDiscoveredSource], out_calendar_user_addresses: [- str])- Finishes the operation started with - EDataServer.webdav_discover_sources(). If an error occurred, the function will set error and return- False. The function can return success and no discovered sources, the same as it can return failure, but still set some output arguments, like the certificate related output arguments with- Soup.Status.SSL_FAILEDerror.- The return value of out_certificate_pem should be freed with - GLib.free() when no longer needed.- The return value of out_discovered_sources should be freed with - EDataServer.webdav_discover_free_discovered_sources() when no longer needed.- The return value of out_calendar_user_addresses should be freed with g_slist_free_full (calendar_user_addresses, - GLib.free); when no longer needed.- New in version 3.18. 
- source (
- 
EDataServer.webdav_discover_sources_full(source, url_use_path, only_supports, credentials, ref_source_func, ref_source_func_user_data, cancellable, callback, *user_data)¶
- Parameters: - source (EDataServer.Source) – anEDataServer.Sourcefrom which to take connection details
- url_use_path (strorNone) – optional URL override, orNone
- only_supports (int) – bit-or ofEDataServer.WebDAVDiscoverSupports, to limit what type of sources to search
- credentials (EDataServer.NamedParametersorNone) – credentials to use for authentication to the server
- ref_source_func (EDataServer.WebDAVDiscoverRefSourceFuncorNone) – optional callback to use to get anEDataServer.Source
- ref_source_func_user_data (objectorNone) – user data for ref_source_func
- cancellable (Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- callback (Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied
- user_data (objectorNone) – data to pass to the callback function
 - This is the same as - EDataServer.webdav_discover_sources(), it only allows to provide a callback function (with its user_data), to reference an additional- EDataServer.Source. It’s good to avoid creating its own- EDataServer.SourceRegistryinstance to get it.- When the operation is finished, callback will be called. You can then call - EDataServer.webdav_discover_sources_finish() to get the result of the operation.- New in version 3.30. 
- source (
- 
EDataServer.webdav_discover_sources_full_sync(source, url_use_path, only_supports, credentials, ref_source_func, ref_source_func_user_data, cancellable)¶
- Parameters: - source (EDataServer.Source) – anEDataServer.Sourcefrom which to take connection details
- url_use_path (strorNone) – optional URL override, orNone
- only_supports (int) – bit-or ofEDataServer.WebDAVDiscoverSupports, to limit what type of sources to search
- credentials (EDataServer.NamedParametersorNone) – credentials to use for authentication to the server
- ref_source_func (EDataServer.WebDAVDiscoverRefSourceFuncorNone) – optional callback to use to get anEDataServer.Source
- ref_source_func_user_data (objectorNone) – user data for ref_source_func
- cancellable (Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
 - Raises: - Returns: - Trueon success,- Falseon failure- out_certificate_pem: - optional return location for a server SSL certificate in PEM format, when the operation failed with an SSL error - out_certificate_errors: - optional - Gio.TlsCertificateFlags, with certificate error flags when the operation failed with SSL error- out_discovered_sources: - a - GLib.SListof all discovered sources- out_calendar_user_addresses: - a - GLib.SListof all discovered mail addresses for calendar sources- Return type: - ( - bool, out_certificate_pem:- stror- None, out_certificate_errors:- Gio.TlsCertificateFlags, out_discovered_sources: [- EDataServer.WebDAVDiscoveredSource], out_calendar_user_addresses: [- str])- This is the same as - EDataServer.webdav_discover_sources_sync(), it only allows to provide a callback function (with its user_data), to reference an additional- EDataServer.Source. It’s good to avoid creating its own- EDataServer.SourceRegistryinstance to get it.- New in version 3.30. 
- source (
- 
EDataServer.webdav_discover_sources_sync(source, url_use_path, only_supports, credentials, cancellable)¶
- Parameters: - source (EDataServer.Source) – anEDataServer.Sourcefrom which to take connection details
- url_use_path (strorNone) – optional URL override, orNone
- only_supports (int) – bit-or ofEDataServer.WebDAVDiscoverSupports, to limit what type of sources to search
- credentials (EDataServer.NamedParametersorNone) – credentials to use for authentication to the server
- cancellable (Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
 - Raises: - Returns: - Trueon success,- Falseon failure- out_certificate_pem: - optional return location for a server SSL certificate in PEM format, when the operation failed with an SSL error - out_certificate_errors: - optional - Gio.TlsCertificateFlags, with certificate error flags when the operation failed with SSL error- out_discovered_sources: - a - GLib.SListof all discovered sources- out_calendar_user_addresses: - a - GLib.SListof all discovered mail addresses for calendar sources- Return type: - ( - bool, out_certificate_pem:- str, out_certificate_errors:- Gio.TlsCertificateFlags, out_discovered_sources: [- EDataServer.WebDAVDiscoveredSource], out_calendar_user_addresses: [- str])- Synchronously runs discovery of the WebDAV sources (CalDAV and CardDAV), eventually limited by the only_supports filter, which can be - EDataServer.WebDAVDiscoverSupports.NONEto search all types. Note that the list of returned calendars can be more general, thus check for its actual support type for further filtering of the results. The url_use_path can be used to override actual server path, or even complete URL, for the given source.- If an error occurred, the function will set error and return - False. The function can return success and no discovered sources, the same as it can return failure, but still set some output arguments, like the certificate related output arguments with- Soup.Status.SSL_FAILEDerror.- The return value of out_certificate_pem should be freed with - GLib.free() when no longer needed.- The return value of out_discovered_sources should be freed with - EDataServer.webdav_discover_free_discovered_sources() when no longer needed.- The return value of out_calendar_user_addresses should be freed with g_slist_free_full (calendar_user_addresses, - GLib.free); when no longer needed.- New in version 3.18. 
- source (
- 
EDataServer.webdav_privilege_free(ptr)¶
- Parameters: - ptr ( - objector- None) – an- EDataServer.WebDAVPrivilege- Frees an - EDataServer.WebDAVPrivilegepreviously created with- EDataServer.WebDAVPrivilege.new() or- EDataServer.WebDAVPrivilege.copy(). The function does nothing, if ptr is- None.- New in version 3.26. 
- 
EDataServer.webdav_property_change_free(ptr)¶
- Parameters: - ptr ( - objector- None) – an- EDataServer.WebDAVPropertyChange- Frees an - EDataServer.WebDAVPropertyChangepreviously created with- EDataServer.WebDAVPropertyChange.new_set(),- EDataServer.WebDAVPropertyChange.new_remove() or or- EDataServer.WebDAVPropertyChange.copy(). The function does nothing, if ptr is- None.- New in version 3.26. 
- 
EDataServer.webdav_resource_free(ptr)¶
- Parameters: - ptr ( - objector- None) – an- EDataServer.WebDAVResource- Frees an - EDataServer.WebDAVResourcepreviously created with- EDataServer.WebDAVResource.new() or- EDataServer.WebDAVResource.copy(). The function does nothing, if ptr is- None.- New in version 3.26. 
- 
EDataServer.xml_destroy_hash(hash)¶
- Parameters: - hash ({ - str:- str}) – the- GLib.HashTableto destroy- Frees the memory used by hash and its contents. 
- 
EDataServer.xml_save_file(filename, doc)¶
- Parameters: - filename (str) – path to a file to save to
- doc (libxml2.Doc) – an XML document structure
 - Returns: - 0 on success, -1 on failure - Return type: - Writes the given XML document structure to the file given by filename. If an error occurs while saving, the function returns -1 and sets errno. 
- filename (
- 
EDataServer.xml_to_hash(doc, type)¶
- Parameters: - doc (libxml2.Doc) – Thelibxml2.Docto store in a hash table.
- type (EDataServer.XmlHashType) – The value type to use as a key in the hash table.
 - Returns: - The newly-created - GLib.HashTablerepresentation of doc.- Return type: - Creates a - GLib.HashTablerepresentation of the- libxml2.Docdoc. If type is *- EDataServer.XmlHashType.PROPERTY, all XML nodes will be indexed in the- GLib.HashTableby name. If type is- EDataServer.XmlHashType.OBJECT_UID, then XML objects will be indexed in the hash by their UID (other nodes will still be indexed by name).
- doc (
- 
EDataServer.xmlhash_add(hash, key, data)¶
- Parameters: - hash (EDataServer.XmlHash) – theEDataServer.XmlHashto add an entry to
- key (str) – the key to use for the entry
- data (str) – the value of the new entry
 - Adds a new key/value pair to the - EDataServer.XmlHashhash.
- hash (
- 
EDataServer.xmlhash_compare(hash, key, compare_data)¶
- Parameters: - hash (EDataServer.XmlHash) – theEDataServer.XmlHashto compare against
- key (str) – the key of the hash entry to compare with
- compare_data (str) – the data to compare against the hash entry
 - Returns: - EDataServer.XmlHashStatus.SAMEif the value and compare_data are equal,:obj:EDataServer.XmlHashStatus.DIFFERENT if they are different, or- EDataServer.XmlHashStatus.NOT_FOUNDif there is no entry in hash with its key equal to key.- Return type: - Compares the value with key equal to key in hash against compare_data. 
- hash (
- 
EDataServer.xmlhash_destroy(hash)¶
- Parameters: - hash ( - EDataServer.XmlHash) – The- EDataServer.XmlHashto destroy.- Frees the memory associated with hash. 
- 
EDataServer.xmlhash_foreach_key(hash, func, *user_data)¶
- Parameters: - hash (EDataServer.XmlHash) – anEDataServer.XmlHash
- func (EDataServer.XmlHashFunc) – theEDataServer.XmlHashFuncto execute on the data in hash
- user_data (objectorNone) – the data to pass to func
 - Executes func against each key/value pair in hash. 
- hash (
- 
EDataServer.xmlhash_foreach_key_remove(hash, func, *user_data)¶
- Parameters: - hash (EDataServer.XmlHash) – anEDataServer.XmlHash
- func (EDataServer.XmlHashRemoveFunc) – theEDataServer.XmlHashFuncto execute on the data in hash
- user_data (objectorNone) – the data to pass to func
 - Calls g_hash_table_foreach_remove() on hash ‘s internal hash table. See g_hash_table_foreach_remove() for details. 
- hash (
- 
EDataServer.xmlhash_remove(hash, key)¶
- Parameters: - hash (EDataServer.XmlHash) – theEDataServer.XmlHashto remove an entry from
- key (str) – the key of the entry to remove
 - Remove the entry in hash with key equal to key, if it exists. 
- hash (
- 
EDataServer.xmlhash_write(hash)¶
- Parameters: - hash ( - EDataServer.XmlHash) – The- EDataServer.XmlHashto write.- Writes the XML represented by hash to the file originally passed to e_xmlhash_new().