EBackend.WebDAVCollectionBackend¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | EBackend.CollectionBackend (22), EBackend.Backend (20), GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| discover_sync(calendar_url, contacts_url, credentials, cancellable) | |
| get_resource_id(source) | |
| is_custom_source(source) | 
Virtual Methods¶
| Inherited: | EBackend.CollectionBackend (10), EBackend.Backend (3), GObject.Object (7) | 
|---|
| do_get_resource_id(source) | |
| do_is_custom_source(source) | 
Properties¶
| Inherited: | EBackend.CollectionBackend (2), EBackend.Backend (5) | 
|---|
Signals¶
| Inherited: | EBackend.CollectionBackend (2), GObject.Object (1) | 
|---|
Fields¶
| Inherited: | EBackend.CollectionBackend (2), GObject.Object (1) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| parent | EBackend.CollectionBackend | r | 
Class Details¶
- 
class EBackend.WebDAVCollectionBackend(**kwargs)¶
- Bases: - EBackend.CollectionBackend- Abstract: - No - Structure: - EBackend.WebDAVCollectionBackendClass- Contains only private data that should be read and manipulated using the functions below. - New in version 3.26. - 
discover_sync(calendar_url, contacts_url, credentials, cancellable)¶
- Parameters: - calendar_url (strorNone) – a URL to search calendars at, orNone
- contacts_url (strorNone) – a URL to search contacts at, orNone
- credentials (EDataServer.NamedParameters) – credentials to use when running the discovery
- cancellable (Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
 - Raises: - Returns: - an - EDataServer.SourceAuthenticationResultdescribing whether discovery on given addresses succeeded.- 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- Return type: - ( - EDataServer.SourceAuthenticationResult, out_certificate_pem:- stror- None, out_certificate_errors:- Gio.TlsCertificateFlags)- This function is usually called in EBackend::authenticate_sync() implementation of the descendant, causing discovery of CalDAV and CardDAV sources on given URLs. If either of calendar_url and contacts_url is - None, that that- Camel.partis skipped. The calendar_url covers all calendars, memo lists and task lists.- The function also takes care of - EBackend.CollectionBackend.authenticate_children() on success.- New in version 3.26. 
- calendar_url (
 - 
get_resource_id(source)¶
- Parameters: - source ( - EDataServer.Source) – an- EDataServer.Source- Returns: - a resource ID corresponding to source, or - None, when the source should be removed.- Return type: - stror- None- Verifies that the source is expected here and returns its resource ID, which is used in call to - EBackend.CollectionBackend.new_child(). It returns- None, when the source is not- Camel.partof the backend and should be removed instead. The default implementation allows all sources, which has- EDataServer.SourceResourceextension defined.- New in version 3.26. 
 - 
is_custom_source(source)¶
- Parameters: - source ( - EDataServer.Source) – an- EDataServer.Source- Returns: - True, when the source is a custom source, thus it should not be removed as an obsolete source;- Falseto not force to keep it. It still can be left, when it’s one of the WebDAV-discovered sources.- Return type: - bool- New in version 3.26. 
 - 
do_get_resource_id(source) virtual¶
- Parameters: - source ( - EDataServer.Source) – an- EDataServer.Source- Returns: - a resource ID corresponding to source, or - None, when the source should be removed.- Return type: - stror- None- Verifies that the source is expected here and returns its resource ID, which is used in call to - EBackend.CollectionBackend.new_child(). It returns- None, when the source is not- Camel.partof the backend and should be removed instead. The default implementation allows all sources, which has- EDataServer.SourceResourceextension defined.- New in version 3.26. 
 - 
do_is_custom_source(source) virtual¶
- Parameters: - source ( - EDataServer.Source) – an- EDataServer.Source- Returns: - True, when the source is a custom source, thus it should not be removed as an obsolete source;- Falseto not force to keep it. It still can be left, when it’s one of the WebDAV-discovered sources.- Return type: - bool- New in version 3.26. 
 
-