EDataCal.CalBackendSync¶
- Subclasses:
Methods¶
- Inherited:
EDataCal.CalBackend (73), EBackend.Backend (21), GObject.Object (37), ECal.TimezoneCache (3)
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
EDataCal.CalBackend (15), EBackend.Backend (3), GObject.Object (7), ECal.TimezoneCache (2)
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class EDataCal.CalBackendSync(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Contains only private data that should be read and manipulated using the functions below.
- add_timezone(cal, cancellable, tzobject)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operationtzobject (
str) – VTIMEZONE object to be added.
- Raises:
Calls the add_timezone_sync method on the given backend.
- create_objects(cal, cancellable, calobjs, opflags)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operationcalobjs ([
str]) – The objects to be added.opflags (
ECal.OperationFlags) – bit-or ofECal.OperationFlags
- Raises:
- Returns:
- uids:
Placeholder for server-generated UIDs.
- new_components:
Placeholder for returned
ECal.Componentobjects.
- Return type:
(uids: [
str], new_components: [ECal.Component])
Calls the create_objects_sync method on the given backend.
New in version 3.6.
- discard_alarm(cal, cancellable, uid, rid, auid, opflags)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operationuid (
str) – Unique id of the calendar object.rid (
str) – Recurrence id of the calendar object.auid (
str) – Alarm ID to remove.opflags (
ECal.OperationFlags) – bit-or ofECal.OperationFlags
- Raises:
Calls the discard_alarm_sync method on the given backend.
- get_attachment_uris(cal, cancellable, uid, rid, attachments)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operationuid (
str) – Unique id of the calendar object.rid (
str) – Recurrence id of the calendar object.attachments ([
str]) – Placeholder for list of returned attachment uris.
- Raises:
Calls the get_attachment_uris_sync method on the given backend.
New in version 3.2.
- get_free_busy(cal, cancellable, users, start, end)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operationusers ([
str]) – List of users to get F/B info from.start (
int) – Time range start.end (
int) – Time range end.
- Raises:
- Returns:
Placeholder for F/B information.
- Return type:
freebusyobjects: [
str]
Calls the get_free_busy_sync method on the given backend.
- get_object(cal, cancellable, uid, rid)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operationuid (
str) – UID of the object to get.rid (
strorNone) – Recurrence ID of the specific instance to get, orNoneif getting the master object.
- Raises:
- Returns:
Placeholder for returned object.
- Return type:
calobj:
str
Calls the get_object_sync method on the given backend.
- get_object_list(cal, cancellable, sexp)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operationsexp (
str) – Search query.
- Raises:
- Returns:
Placeholder for list of returned objects.
- Return type:
calobjs: [
str]
Calls the get_object_list_sync method on the given backend.
- get_timezone(cal, cancellable, tzid, tzobject)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operationtzid (
str) – ID of the timezone to retrieve.tzobject (
str) – Placeholder for the returned timezone.
- Raises:
Calls the get_timezone_sync method on the given backend. This method is not mandatory on the backend, because here is used internal_get_timezone call to fetch timezone from it and that is transformed to a string. In other words, any object deriving from
EDataCal.CalBackendSynccan implement only internal_get_timezone and can skip implementation of get_timezone_sync completely.
- modify_objects(cal, cancellable, calobjs, mod, opflags)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operationcalobjs ([
str]) – Objects to be modified.mod (
ECal.ObjModType) – Type of modification to be done.opflags (
ECal.OperationFlags) – bit-or ofECal.OperationFlags
- Raises:
- Returns:
- old_components:
Placeholder for returning the old components as they were stored on the backend.
- new_components:
Placeholder for returning the new components as they have been stored on the backend.
- Return type:
(old_components: [
ECal.Component], new_components: [ECal.Component])
Calls the modify_objects_sync method on the given backend.
New in version 3.6.
- open(cal, cancellable)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operation or just create it when it does not exist.
- Raises:
Calls the open_sync method on the given backend.
- receive_objects(cal, cancellable, calobj, opflags)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operationcalobj (
str) – iCalendar object to receive.opflags (
ECal.OperationFlags) – bit-or ofECal.OperationFlags
- Raises:
Calls the receive_objects_sync method on the given backend.
- refresh(cal, cancellable)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operation
- Raises:
Calls the refresh_sync method on the given backend.
New in version 2.30.
- remove_objects(cal, cancellable, ids, mod, opflags)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operationids ([
ECal.ComponentId]) – List ofECal.ComponentIdobjects identifying the objects to remove.mod (
ECal.ObjModType) – Type of removal.opflags (
ECal.OperationFlags) – bit-or ofECal.OperationFlags
- Raises:
- Returns:
- old_components:
Placeholder for returning the old components as they were stored on the backend.
- new_components:
Placeholder for returning the new components as they have been stored on the backend (when removing individual instances). If removing whole objects, they will be set to
None.
- Return type:
(old_components: [
ECal.Component], new_components: [ECal.Component])
Calls the remove_objects_sync method on the given backend.
New in version 3.6.
- send_objects(cal, cancellable, calobj, opflags, users)¶
- Parameters:
cal (
EDataCal.DataCal) – AnEDataCal.DataCalobject.cancellable (
Gio.CancellableorNone) – aGio.Cancellablefor the operationcalobj (
str) – The iCalendar object to send.opflags (
ECal.OperationFlags) – bit-or ofECal.OperationFlagsusers ([
str]) – List of users to send notifications to.
- Raises:
- Returns:
Placeholder for the iCalendar object after being modified.
- Return type:
modified_calobj:
str
Calls the send_objects_sync method on the given backend.
- do_add_timezone_sync(cal, cancellable, tzobject) virtual¶
- Parameters:
cal (
EDataCal.DataCal) –cancellable (
Gio.CancellableorNone) –tzobject (
str) –
Add specified timezone
- do_discard_alarm_sync(cal, cancellable, uid, rid, auid, opflags) virtual¶
- Parameters:
cal (
EDataCal.DataCal) –cancellable (
Gio.CancellableorNone) –uid (
str) –rid (
str) –auid (
str) –opflags (
ECal.OperationFlags) –
Discard alarm
- do_get_object_sync(cal, cancellable, uid, rid, calobj) virtual¶
- Parameters:
cal (
EDataCal.DataCal) –cancellable (
Gio.CancellableorNone) –uid (
str) –rid (
str) –calobj (
str) –
Get single object
- do_get_timezone_sync(cal, cancellable, tzid, tzobject) virtual¶
- Parameters:
cal (
EDataCal.DataCal) –cancellable (
Gio.CancellableorNone) –tzid (
str) –tzobject (
str) –
Get specified timezone
- do_open_sync(cal, cancellable) virtual¶
- Parameters:
cal (
EDataCal.DataCal) –cancellable (
Gio.CancellableorNone) –
Open the calendar
- do_receive_objects_sync(cal, cancellable, calobj, opflags) virtual¶
- Parameters:
cal (
EDataCal.DataCal) –cancellable (
Gio.CancellableorNone) –calobj (
str) –opflags (
ECal.OperationFlags) –
Receive objects
- do_refresh_sync(cal, cancellable) virtual¶
- Parameters:
cal (
EDataCal.DataCal) –cancellable (
Gio.CancellableorNone) –
Refresh the calendar