webdav_discover_sources


Description:

[ CCode ( cname = "e_webdav_discover_sources" ) ]
[ Version ( since = "3.18" ) ]
public async bool webdav_discover_sources (string? url_use_path, uint32 only_supports, NamedParameters? credentials, Cancellable? cancellable, out string out_certificate_pem, out TlsCertificateFlags out_certificate_errors, out SList<WebDAVDiscoveredSource> out_discovered_sources, out SList<string> out_calendar_user_addresses) throws Error

Asynchronously runs discovery of the WebDAV sources (CalDAV and CardDAV), eventually limited by the only_supports filter, which can be NONE to 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 webdav_discover_sources.end to get the result of the operation.

Parameters:

url_use_path

optional URL override, or null

only_supports

bit-or of EWebDAVDiscoverSupports, to limit what type of sources to search

credentials

credentials to use for authentication to the server

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when the request is satisfied

source

an Source from which to take connection details

user_data

data to pass to the callback function