ECalClient: Evolution-Data-Server Reference Manual

## ECalClient ECalClient — Accessing and modifying a calendar |

## Functions

GQuark | e_cal_client_error_quark ()
const gchar * | e_cal_client_error_to_string ()
GError * | e_cal_client_error_create ()
GError * | e_cal_client_error_create_fmt ()
EClient * | e_cal_client_connect_sync ()
void | e_cal_client_connect ()
EClient * | e_cal_client_connect_finish ()
ECalClientSourceType | e_cal_client_get_source_type ()
const gchar * | e_cal_client_get_local_attachment_store ()
void | e_cal_client_set_default_timezone ()
ICalTimezone * | e_cal_client_get_default_timezone ()
gboolean | e_cal_client_check_one_alarm_only ()
gboolean | e_cal_client_check_save_schedules ()
gboolean | e_cal_client_check_organizer_must_attend ()
gboolean | e_cal_client_check_organizer_must_accept ()
gboolean | e_cal_client_check_recurrences_no_master ()
void | e_cal_client_generate_instances ()
void | e_cal_client_generate_instances_sync ()
void | e_cal_client_generate_instances_for_object ()
void | e_cal_client_generate_instances_for_object_sync ()
void | e_cal_client_generate_instances_for_uid_sync ()
gchar * | e_cal_client_get_component_as_string ()
void | e_cal_client_get_default_object ()
gboolean | e_cal_client_get_default_object_finish ()
gboolean | e_cal_client_get_default_object_sync ()
void | e_cal_client_get_object ()
gboolean | e_cal_client_get_object_finish ()
gboolean | e_cal_client_get_object_sync ()
void | e_cal_client_get_objects_for_uid ()
gboolean | e_cal_client_get_objects_for_uid_finish ()
gboolean | e_cal_client_get_objects_for_uid_sync ()
void | e_cal_client_get_object_list ()
gboolean | e_cal_client_get_object_list_finish ()
gboolean | e_cal_client_get_object_list_sync ()
void | e_cal_client_get_object_list_as_comps ()
gboolean | e_cal_client_get_object_list_as_comps_finish ()
gboolean | e_cal_client_get_object_list_as_comps_sync ()
void | e_cal_client_get_free_busy ()
gboolean | e_cal_client_get_free_busy_finish ()
gboolean | e_cal_client_get_free_busy_sync ()
void | e_cal_client_create_object ()
gboolean | e_cal_client_create_object_finish ()
gboolean | e_cal_client_create_object_sync ()
void | e_cal_client_create_objects ()
gboolean | e_cal_client_create_objects_finish ()
gboolean | e_cal_client_create_objects_sync ()
void | e_cal_client_modify_object ()
gboolean | e_cal_client_modify_object_finish ()
gboolean | e_cal_client_modify_object_sync ()
void | e_cal_client_modify_objects ()
gboolean | e_cal_client_modify_objects_finish ()
gboolean | e_cal_client_modify_objects_sync ()
void | e_cal_client_remove_object ()
gboolean | e_cal_client_remove_object_finish ()
gboolean | e_cal_client_remove_object_sync ()
void | e_cal_client_remove_objects ()
gboolean | e_cal_client_remove_objects_finish ()
gboolean | e_cal_client_remove_objects_sync ()
void | e_cal_client_receive_objects ()
gboolean | e_cal_client_receive_objects_finish ()
gboolean | e_cal_client_receive_objects_sync ()
void | e_cal_client_send_objects ()
gboolean | e_cal_client_send_objects_finish ()
gboolean | e_cal_client_send_objects_sync ()
void | e_cal_client_get_attachment_uris ()
gboolean | e_cal_client_get_attachment_uris_finish ()
gboolean | e_cal_client_get_attachment_uris_sync ()
void | e_cal_client_discard_alarm ()
gboolean | e_cal_client_discard_alarm_finish ()
gboolean | e_cal_client_discard_alarm_sync ()
void | e_cal_client_get_view ()
gboolean | e_cal_client_get_view_finish ()
gboolean | e_cal_client_get_view_sync ()
void | e_cal_client_get_timezone ()
gboolean | e_cal_client_get_timezone_finish ()
gboolean | e_cal_client_get_timezone_sync ()
void | e_cal_client_add_timezone ()
gboolean | e_cal_client_add_timezone_finish ()
gboolean | e_cal_client_add_timezone_sync ()

## Types and Values

#define | E_CAL_BACKEND_PROPERTY_CAL_EMAIL_ADDRESS
#define | E_CAL_BACKEND_PROPERTY_ALARM_EMAIL_ADDRESS
#define | E_CAL_BACKEND_PROPERTY_DEFAULT_OBJECT
#define | E_CAL_BACKEND_PROPERTY_REVISION
#define | E_CAL_CLIENT_ERROR
enum | ECalClientError
struct | ECalClient
struct | ECalClientClass

## Object Hierarchy

        GObject
        ╰── EClient
            ╰── ECalClient

## Implemented Interfaces

ECalClient implements GInitable, GAsyncInitable and ETimezoneCache.

## Includes

    #include <libecal/libecal.h>

## Description

This class is the main user facing API for accessing and modifying the calendar.

## Functions

### e_cal_client_error_quark ()

    GQuark
    e_cal_client_error_quark (void);

### e_cal_client_error_to_string ()

    const gchar *
    e_cal_client_error_to_string (ECalClientError code);

Get localized human readable description of the given error code.

#### Parameters

code | an ECalClientError error code |

#### Returns

Localized human readable description of the given error code

Since: 3.2

### e_cal_client_error_create ()

    GError *
    e_cal_client_error_create (ECalClientError code,
                               const gchar *custom_msg);

#### Parameters

code | an ECalClientError code to create |
custom_msg | custom message to use for the error; can be `NULL`. | [nullable]

#### Returns

a new GError containing an E_CAL_CLIENT_ERROR of the given `code` . If the `custom_msg` is NULL, then the error message is the one returned from `e_cal_client_error_to_string()` for the `code` , otherwise the given message is used. Returned pointer should be freed with `g_error_free()`.

[transfer full]

Since: 3.2

### e_cal_client_error_create_fmt ()

    GError *
    e_cal_client_error_create_fmt (ECalClientError code,
                                   const gchar *format,
                                   ...);

Similar as `e_cal_client_error_create()`, only here, instead of custom_msg, is used a `printf()` format to create a custom message for the error.

#### Parameters

code | an ECalClientError |
format | message format, or `NULL` to use the default message for the `code` . | [nullable]
... | arguments for the format |

#### Returns

a newly allocated GError, which should be freed with `g_error_free()`, when no longer needed. The GError has set the custom message, or the default message for `code` , when `format` is `NULL`.

[transfer full]

Since: 3.34

### e_cal_client_connect_sync ()

    EClient *
    e_cal_client_connect_sync (ESource *source,
                               ECalClientSourceType source_type,
                               guint32 wait_for_connected_seconds,
                               GCancellable *cancellable,
                               GError **error);

Creates a new ECalClient for `source` and `source_type` . If an error occurs, the function will set `error` and return `FALSE`.

The `wait_for_connected_seconds` argument had been added since 3.16, to let the caller decide how long to wait for the backend to fully connect to its (possibly remote) data store. This is required due to a change in the authentication process, which is fully asynchronous and done on the client side, while not every client is supposed to response to authentication requests. In case the backend will not connect within the set interval, then it is opened in an offline mode. A special value -1 can be used to not wait for the connected state at all.

Unlike with `e_cal_client_new()`, there is no need to call `e_client_open_sync()` after obtaining the ECalClient.

For error handling convenience, any error message returned by this function will have a descriptive prefix that includes the display name of `source` .

#### Parameters

source | an ESource |
source_type | source type of the calendar |
wait_for_connected_seconds | timeout, in seconds, to wait for the backend to be fully connected |
cancellable | optional GCancellable object, or `NULL` |
error | return location for a GError, or `NULL` |

#### Returns

a new ECalClient, or `NULL`.

[transfer full][nullable]

Since: 3.8

### e_cal_client_connect ()

    void
    e_cal_client_connect (ESource *source,
                          ECalClientSourceType source_type,
                          guint32 wait_for_connected_seconds,
                          GCancellable *cancellable,
                          GAsyncReadyCallback callback,
                          gpointer user_data);

Asynchronously creates a new ECalClient for `source` and `source_type` .

The `wait_for_connected_seconds` argument had been added since 3.16, to let the caller decide how long to wait for the backend to fully connect to its (possibly remote) data store. This is required due to a change in the authentication process, which is fully asynchronous and done on the client side, while not every client is supposed to response to authentication requests. In case the backend will not connect within the set interval, then it is opened in an offline mode. A special value -1 can be used to not wait for the connected state at all.

Unlike with `e_cal_client_new()`, there is no need to call `e_client_open()` after obtaining the ECalClient.

When the operation is finished, `callback` will be called. You can then call `e_cal_client_connect_finish()` to get the result of the operation.

#### Parameters

source | an ESource |
source_type | source tpe of the calendar |
wait_for_connected_seconds | timeout, in seconds, to wait for the backend to be fully connected |
cancellable | optional GCancellable object, or `NULL` |
callback | a GAsyncReadyCallback to call when the request is satisfied |
user_data | data to pass to the callback function |

Since: 3.8

### e_cal_client_connect_finish ()

    EClient *
    e_cal_client_connect_finish (GAsyncResult *result,
                                 GError **error);

Finishes the operation started with `e_cal_client_connect()`. If an error occurs in connecting to the D-Bus service, the function sets `error` and returns `NULL`.

For error handling convenience, any error message returned by this function will have a descriptive prefix that includes the display name of the ESource passed to `e_cal_client_connect()`.

#### Parameters

result | a GAsyncResult |
error | return location for a GError, or `NULL` |

#### Returns

a new ECalClient, or `NULL`.

[transfer full][nullable]

Since: 3.8

### e_cal_client_get_source_type ()

    ECalClientSourceType
    e_cal_client_get_source_type (ECalClient *client);

Gets the source type of the calendar client.

#### Parameters

client | A calendar client. |

#### Returns

an ECalClientSourceType value corresponding to the source type of the calendar client.

Since: 3.2

### e_cal_client_get_local_attachment_store ()

    const gchar *
    e_cal_client_get_local_attachment_store
                                   (ECalClient *client);

Queries the URL where the calendar attachments are serialized in the local filesystem. This enable clients to operate with the reference to attachments rather than the data itself unless it specifically uses the attachments for open/sending operations.

#### Parameters

client | A calendar client. |

#### Returns

The URL where the attachments are serialized in the local filesystem.

Since: 3.2

### e_cal_client_set_default_timezone ()

    void
    e_cal_client_set_default_timezone (ECalClient *client,
                                       ICalTimezone *zone);

Sets the default timezone to use to resolve DATE and floating DATE-TIME values. This will typically be from the user's timezone setting. Call this before using any other object fetching functions.

#### Parameters

client | A calendar client. |
zone | A timezone object. |

Since: 3.2

### e_cal_client_get_default_timezone ()

    ICalTimezone *
    e_cal_client_get_default_timezone (ECalClient *client);

Returns the default timezone previously set with `e_cal_client_set_default_timezone()`. The returned pointer is owned by the `client` and should not be freed.

#### Parameters

client | A calendar client. |

#### Returns

an ICalTimezone.

[transfer none]

Since: 3.2

### e_cal_client_check_one_alarm_only ()

    gboolean
    e_cal_client_check_one_alarm_only (ECalClient *client);

Checks if a calendar supports only one alarm per component.

#### Parameters

client | A calendar client. |

#### Returns

TRUE if the calendar allows only one alarm, FALSE otherwise.

Since: 3.2

### e_cal_client_check_save_schedules ()

    gboolean
    e_cal_client_check_save_schedules (ECalClient *client);

Checks whether the calendar saves schedules.

#### Parameters

client | A calendar client. |

#### Returns

TRUE if it saves schedules, FALSE otherwise.

Since: 3.2

### e_cal_client_check_organizer_must_attend ()

    gboolean
    e_cal_client_check_organizer_must_attend
                                   (ECalClient *client);

Checks if a calendar forces organizers of meetings to be also attendees.

#### Parameters

client | A calendar client. |

#### Returns

TRUE if the calendar forces organizers to attend meetings, FALSE otherwise.

Since: 3.2

### e_cal_client_check_organizer_must_accept ()

    gboolean
    e_cal_client_check_organizer_must_accept
                                   (ECalClient *client);

Checks whether a calendar requires organizer to accept their attendance to meetings.

#### Parameters

client | A calendar client. |

#### Returns

TRUE if the calendar requires organizers to accept, FALSE otherwise.

Since: 3.2

### e_cal_client_check_recurrences_no_master ()

    gboolean
    e_cal_client_check_recurrences_no_master
                                   (ECalClient *client);

Checks if the calendar has a master object for recurrences.

#### Parameters

client | A calendar client. |

#### Returns

TRUE if the calendar has a master object for recurrences, FALSE otherwise.

Since: 3.2

### e_cal_client_generate_instances ()

    void
    e_cal_client_generate_instances (ECalClient *client,
                                     time_t start,
                                     time_t end,
                                     GCancellable *cancellable,
                                     ECalRecurInstanceCb cb,
                                     gpointer cb_data,
                                     GDestroyNotify destroy_cb_data);

Does a combination of `e_cal_client_get_object_list()` and `e_cal_recur_generate_instances_sync()`. Unlike `e_cal_client_generate_instances_sync()`, this returns immediately and the `cb` callback is called asynchronously.

The callback function should do a `g_object_ref()` of the calendar component it gets passed if it intends to keep it around, since it will be unref'ed as soon as the callback returns.

#### Parameters

client | A calendar client. |
start | Start time for query. |
end | End time for query. |
cancellable | a GCancellable; can be `NULL` |
cb | Callback for each generated instance. |
cb_data | Closure data for the callback. |
destroy_cb_data | Function to call when the processing is done, to free `cb_data` ; can be `NULL`. |

Since: 3.2

### e_cal_client_generate_instances_sync ()

    void
    e_cal_client_generate_instances_sync (ECalClient *client,
                                          time_t start,
                                          time_t end,
                                          GCancellable *cancellable,
                                          ECalRecurInstanceCb cb,
                                          gpointer cb_data);

Does a combination of `e_cal_client_get_object_list()` and `e_cal_recur_generate_instances_sync()`.

The callback function should do a `g_object_ref()` of the calendar component it gets passed if it intends to keep it around, since it will be unreffed as soon as the callback returns.

#### Parameters

client | A calendar client |
start | Start time for query |
end | End time for query |
cancellable | a GCancellable; can be `NULL` |
cb | Callback for each generated instance. | [closure cb_data][scope call]
cb_data | Closure data for the callback. | [closure]

Since: 3.2

### e_cal_client_generate_instances_for_object ()

    void
    e_cal_client_generate_instances_for_object
                                   (ECalClient *client,
                                    ICalComponent *icalcomp,
                                    time_t start,
                                    time_t end,
                                    GCancellable *cancellable,
                                    ECalRecurInstanceCb cb,
                                    gpointer cb_data,
                                    GDestroyNotify destroy_cb_data);

Does a combination of `e_cal_client_get_object_list()` and `e_cal_recur_generate_instances_sync()`, like `e_cal_client_generate_instances()`, but for a single object. Unlike `e_cal_client_generate_instances_for_object_sync()`, this returns immediately and the `cb` callback is called asynchronously.

The callback function should do a `g_object_ref()` of the calendar component it gets passed if it intends to keep it around, since it will be unref'ed as soon as the callback returns.

#### Parameters

client | A calendar client. |
icalcomp | Object to generate instances from. |
start | Start time for query. |
end | End time for query. |
cancellable | a GCancellable; can be `NULL` |
cb | Callback for each generated instance. |
cb_data | Closure data for the callback. |
destroy_cb_data | Function to call when the processing is done, to free `cb_data` ; can be `NULL`. |

Since: 3.2

### e_cal_client_generate_instances_for_object_sync ()

    void
    e_cal_client_generate_instances_for_object_sync
                                   (ECalClient *client,
                                    ICalComponent *icalcomp,
                                    time_t start,
                                    time_t end,
                                    GCancellable *cancellable,
                                    ECalRecurInstanceCb cb,
                                    gpointer cb_data);

Does a combination of `e_cal_client_get_object_list()` and `e_cal_recur_generate_instances_sync()`, like `e_cal_client_generate_instances_sync()`, but for a single object.

The callback function should do a `g_object_ref()` of the calendar component it gets passed if it intends to keep it around, since it will be unref'ed as soon as the callback returns.

#### Parameters

client | A calendar client |
icalcomp | Object to generate instances from |
start | Start time for query |
end | End time for query |
cancellable | a GCancellable; can be `NULL` |
cb | Callback for each generated instance. | [closure cb_data][scope call]
cb_data | Closure data for the callback. | [closure]

Since: 3.2

### e_cal_client_generate_instances_for_uid_sync ()

    void
    e_cal_client_generate_instances_for_uid_sync
                                   (ECalClient *client,
                                    const gchar *uid,
                                    time_t start,
                                    time_t end,
                                    GCancellable *cancellable,
                                    ECalRecurInstanceCb cb,
                                    gpointer cb_data);

Does a combination of `e_cal_client_get_object_list()` and `e_cal_recur_generate_instances_sync()`, like `e_cal_client_generate_instances_sync()`, but for a single object.

The callback function should do a `g_object_ref()` of the calendar component it gets passed if it intends to keep it around, since it will be unref'ed as soon as the callback returns.

#### Parameters

client | A calendar client |
uid | A component UID to generate instances for |
start | Start time for query |
end | End time for query |
cancellable | a GCancellable; can be `NULL` |
cb | Callback for each generated instance. | [closure cb_data][scope call]
cb_data | Closure data for the callback. | [closure]

Since: 3.48

### e_cal_client_get_component_as_string ()

    gchar *
    e_cal_client_get_component_as_string (ECalClient *client,
                                          ICalComponent *icalcomp);

Gets a calendar component as an iCalendar string, with a toplevel VCALENDAR component and all VTIMEZONEs needed for the component.

#### Parameters

client | A calendar client. |
icalcomp | A calendar component object. |

#### Returns

the component as a complete iCalendar string, or NULL on failure. The string should be freed with `g_free()`.

[nullable]

Since: 3.2

### e_cal_client_get_default_object ()

    void
    e_cal_client_get_default_object (ECalClient *client,
                                     GCancellable *cancellable,
                                     GAsyncReadyCallback callback,
                                     gpointer user_data);

Retrives an ICalComponent from the backend that contains the default values for properties needed. The call is finished by `e_cal_client_get_default_object_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_get_default_object_finish ()

    gboolean
    e_cal_client_get_default_object_finish
                                   (ECalClient *client,
                                    GAsyncResult *result,
                                    ICalComponent **out_icalcomp,
                                    GError **error);

Finishes previous call of `e_cal_client_get_default_object()` and sets `out_icalcomp` to an ICalComponent from the backend that contains the default values for properties needed. This `out_icalcomp` should be freed with `g_object_unref()`, when no longer needed.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
out_icalcomp | Return value for the default calendar object. | [out][transfer full]
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_default_object_sync ()

    gboolean
    e_cal_client_get_default_object_sync (ECalClient *client,
                                          ICalComponent **out_icalcomp,
                                          GCancellable *cancellable,
                                          GError **error);

Retrives an ICalComponent from the backend that contains the default values for properties needed. This `out_icalcomp` should be freed with `g_object_unref()`, when no longer needed.

#### Parameters

client | an ECalClient |
out_icalcomp | Return value for the default calendar object. | [out][transfer full]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_object ()

    void
    e_cal_client_get_object (ECalClient *client,
                             const gchar *uid,
                             const gchar *rid,
                             GCancellable *cancellable,
                             GAsyncReadyCallback callback,
                             gpointer user_data);

Queries a calendar for a calendar component object based on its unique identifier. The call is finished by `e_cal_client_get_object_finish()` from the `callback` .

Use `e_cal_client_get_objects_for_uid()` to get list of all objects for the given uid, which includes master object and all detached instances.

#### Parameters

client | an ECalClient |
uid | Unique identifier for a calendar component. |
rid | Recurrence identifier. | [nullable]
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_get_object_finish ()

    gboolean
    e_cal_client_get_object_finish (ECalClient *client,
                                    GAsyncResult *result,
                                    ICalComponent **out_icalcomp,
                                    GError **error);

Finishes previous call of `e_cal_client_get_object()` and sets `out_icalcomp` to queried component. This function always returns master object for a case of `rid` being NULL or an empty string. This component should be freed with `g_object_unref()`, when no longer needed.

Use `e_cal_client_get_objects_for_uid()` to get list of all objects for the given uid, which includes master object and all detached instances.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
out_icalcomp | Return value for the calendar component object. | [out][transfer full]
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_object_sync ()

    gboolean
    e_cal_client_get_object_sync (ECalClient *client,
                                  const gchar *uid,
                                  const gchar *rid,
                                  ICalComponent **out_icalcomp,
                                  GCancellable *cancellable,
                                  GError **error);

Queries a calendar for a calendar component object based on its unique identifier. This function always returns master object for a case of `rid` being NULL or an empty string. This component should be freed with `g_object_unref()`, when no longer needed.

Use `e_cal_client_get_objects_for_uid_sync()` to get list of all objects for the given uid, which includes master object and all detached instances.

#### Parameters

client | an ECalClient |
uid | Unique identifier for a calendar component. |
rid | Recurrence identifier. | [nullable]
out_icalcomp | Return value for the calendar component object. | [out][transfer full]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_objects_for_uid ()

    void
    e_cal_client_get_objects_for_uid (ECalClient *client,
                                      const gchar *uid,
                                      GCancellable *cancellable,
                                      GAsyncReadyCallback callback,
                                      gpointer user_data);

Queries a calendar for all calendar components with the given unique ID. This will return any recurring event and all its detached recurrences. For non-recurring events, it will just return the object with that ID. The call is finished by `e_cal_client_get_objects_for_uid_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
uid | Unique identifier for a calendar component |
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_get_objects_for_uid_finish ()

    gboolean
    e_cal_client_get_objects_for_uid_finish
                                   (ECalClient *client,
                                    GAsyncResult *result,
                                    GSList **out_ecalcomps,
                                    GError **error);

Finishes previous call of `e_cal_client_get_objects_for_uid()` and sets `out_ecalcomps` to a list of ECalComponents corresponding to found components for a given uid of the same type as this client. This list should be freed with `e_client_util_free_object_slist()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
out_ecalcomps | Return location for the list of objects obtained from the backend. | [out][transfer full][element-type ECalComponent]
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_objects_for_uid_sync ()

    gboolean
    e_cal_client_get_objects_for_uid_sync (ECalClient *client,
                                           const gchar *uid,
                                           GSList **out_ecalcomps,
                                           GCancellable *cancellable,
                                           GError **error);

Queries a calendar for all calendar components with the given unique ID. This will return any recurring event and all its detached recurrences. For non-recurring events, it will just return the object with that ID. This list should be freed with `e_client_util_free_object_slist()`.

#### Parameters

client | an ECalClient |
uid | Unique identifier for a calendar component |
out_ecalcomps | Return location for the list of objects obtained from the backend. | [out][transfer full][element-type ECalComponent]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_object_list ()

    void
    e_cal_client_get_object_list (ECalClient *client,
                                  const gchar *sexp,
                                  GCancellable *cancellable,
                                  GAsyncReadyCallback callback,
                                  gpointer user_data);

Gets a list of objects from the calendar that match the query specified by the `sexp` argument, returning matching objects as a list of ICalComponent-s. The call is finished by `e_cal_client_get_object_list_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
sexp | an S-expression representing the query |
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_get_object_list_finish ()

    gboolean
    e_cal_client_get_object_list_finish (ECalClient *client,
                                         GAsyncResult *result,
                                         GSList **out_icalcomps,
                                         GError **error);

Finishes previous call of `e_cal_client_get_object_list()` and sets `out_icalcomps` to a matching list of ICalComponent-s. This list should be freed with `e_client_util_free_object_slist()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
out_icalcomps | list of matching ICalComponents. | [out][element-type ICalComponent]
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_object_list_sync ()

    gboolean
    e_cal_client_get_object_list_sync (ECalClient *client,
                                       const gchar *sexp,
                                       GSList **out_icalcomps,
                                       GCancellable *cancellable,
                                       GError **error);

Gets a list of objects from the calendar that match the query specified by the `sexp` argument. The objects will be returned in the `out_icalcomps` argument, which is a list of ICalComponent. This list should be freed with `e_client_util_free_object_slist()`.

#### Parameters

client | an ECalClient |
sexp | an S-expression representing the query |
out_icalcomps | list of matching ICalComponents. | [out][element-type ICalComponent]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_object_list_as_comps ()

    void
    e_cal_client_get_object_list_as_comps (ECalClient *client,
                                           const gchar *sexp,
                                           GCancellable *cancellable,
                                           GAsyncReadyCallback callback,
                                           gpointer user_data);

Gets a list of objects from the calendar that match the query specified by the `sexp` argument, returning matching objects as a list of ECalComponent-s. The call is finished by `e_cal_client_get_object_list_as_comps_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
sexp | an S-expression representing the query |
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_get_object_list_as_comps_finish ()

    gboolean
    e_cal_client_get_object_list_as_comps_finish
                                   (ECalClient *client,
                                    GAsyncResult *result,
                                    GSList **out_ecalcomps,
                                    GError **error);

Finishes previous call of `e_cal_client_get_object_list_as_comps()` and sets `out_ecalcomps` to a matching list of ECalComponent-s. This list should be freed with `e_client_util_free_object_slist()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
out_ecalcomps | list of matching ECalComponents. | [out][element-type ECalComponent]
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_object_list_as_comps_sync ()

    gboolean
    e_cal_client_get_object_list_as_comps_sync
                                   (ECalClient *client,
                                    const gchar *sexp,
                                    GSList **out_ecalcomps,
                                    GCancellable *cancellable,
                                    GError **error);

Gets a list of objects from the calendar that match the query specified by the `sexp` argument. The objects will be returned in the `out_ecalcomps` argument, which is a list of ECalComponent. This list should be freed with `e_client_util_free_object_slist()`.

#### Parameters

client | an ECalClient |
sexp | an S-expression representing the query |
out_ecalcomps | list of matching ECalComponents. | [out][element-type ECalComponent]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_free_busy ()

    void
    e_cal_client_get_free_busy (ECalClient *client,
                                time_t start,
                                time_t end,
                                const GSList *users,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Begins retrieval of free/busy information from the calendar server as a list of ECalComponent-s. Connect to "free-busy-data" signal to receive chunks of free/busy components. The call is finished by `e_cal_client_get_free_busy_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
start | Start time for query |
end | End time for query |
users | List of users to retrieve free/busy information for. | [element-type utf8]
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_get_free_busy_finish ()

    gboolean
    e_cal_client_get_free_busy_finish (ECalClient *client,
                                       GAsyncResult *result,
                                       GSList **out_freebusy,
                                       GError **error);

Finishes previous call of `e_cal_client_get_free_busy()`. The `out_freebusy` contains all VFREEBUSY ECalComponent-s, which could be also received by "free-busy-data" signal. The client is responsible to do a merge of the components between this complete list and those received through the signal.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
out_freebusy | a GSList of ECalComponent-s with overall returned Free/Busy data. | [out][element-type ECalComponent]
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_free_busy_sync ()

    gboolean
    e_cal_client_get_free_busy_sync (ECalClient *client,
                                     time_t start,
                                     time_t end,
                                     const GSList *users,
                                     GSList **out_freebusy,
                                     GCancellable *cancellable,
                                     GError **error);

Gets free/busy information from the calendar server. The `out_freebusy` contains all VFREEBUSY ECalComponent-s, which could be also received by "free-busy-data" signal. The client is responsible to do a merge of the components between this complete list and those received through the signal.

#### Parameters

client | an ECalClient |
start | Start time for query |
end | End time for query |
users | List of users to retrieve free/busy information for. | [element-type utf8]
out_freebusy | a GSList of ECalComponent-s with overall returned Free/Busy data. | [out][element-type ECalComponent]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_create_object ()

    void
    e_cal_client_create_object (ECalClient *client,
                                ICalComponent *icalcomp,
                                ECalOperationFlags opflags,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Requests the calendar backend to create the object specified by the `icalcomp` argument. Some backends would assign a specific UID to the newly created object, but this function does not modify the original `icalcomp` if its UID changes. The call is finished by `e_cal_client_create_object_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
icalcomp | The component to create |
opflags | bit-or of ECalOperationFlags. | [type ECalOperationFlags]
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_create_object_finish ()

    gboolean
    e_cal_client_create_object_finish (ECalClient *client,
                                       GAsyncResult *result,
                                       gchar **out_uid,
                                       GError **error);

Finishes previous call of `e_cal_client_create_object()` and sets `out_uid` to newly assigned UID for the created object. This `out_uid` should be freed with `g_free()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
out_uid | Return value for the UID assigned to the new component by the calendar backend. | [out][optional]
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_create_object_sync ()

    gboolean
    e_cal_client_create_object_sync (ECalClient *client,
                                     ICalComponent *icalcomp,
                                     ECalOperationFlags opflags,
                                     gchar **out_uid,
                                     GCancellable *cancellable,
                                     GError **error);

Requests the calendar backend to create the object specified by the `icalcomp` argument. Some backends would assign a specific UID to the newly created object, in those cases that UID would be returned in the `out_uid` argument. This function does not modify the original `icalcomp` if its UID changes. Returned `out_uid` should be freed with `g_free()`.

#### Parameters

client | an ECalClient |
icalcomp | The component to create |
opflags | bit-or of ECalOperationFlags |
out_uid | Return value for the UID assigned to the new component by the calendar backend. | [out][nullable][optional]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_create_objects ()

    void
    e_cal_client_create_objects (ECalClient *client,
                                 GSList *icalcomps,
                                 ECalOperationFlags opflags,
                                 GCancellable *cancellable,
                                 GAsyncReadyCallback callback,
                                 gpointer user_data);

Requests the calendar backend to create the objects specified by the `icalcomps` argument. Some backends would assign a specific UID to the newly created object, but this function does not modify the original `icalcomps` if their UID changes. The call is finished by `e_cal_client_create_objects_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
icalcomps | The components to create. | [element-type ICalComponent]
opflags | bit-or of ECalOperationFlags. | [type ECalOperationFlags]
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.6

### e_cal_client_create_objects_finish ()

    gboolean
    e_cal_client_create_objects_finish (ECalClient *client,
                                        GAsyncResult *result,
                                        GSList **out_uids,
                                        GError **error);

Finishes previous call of `e_cal_client_create_objects()` and sets `out_uids` to newly assigned UIDs for the created objects. This `out_uids` should be freed with `e_client_util_free_string_slist()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
out_uids | Return value for the UIDs assigned to the new components by the calendar backend. | [out][optional][element-type utf8]
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.6

### e_cal_client_create_objects_sync ()

    gboolean
    e_cal_client_create_objects_sync (ECalClient *client,
                                      GSList *icalcomps,
                                      ECalOperationFlags opflags,
                                      GSList **out_uids,
                                      GCancellable *cancellable,
                                      GError **error);

Requests the calendar backend to create the objects specified by the `icalcomps` argument. Some backends would assign a specific UID to the newly created objects, in those cases these UIDs would be returned in the `out_uids` argument. This function does not modify the original `icalcomps` if their UID changes. Returned `out_uids` should be freed with `e_client_util_free_string_slist()`.

#### Parameters

client | an ECalClient |
icalcomps | The components to create. | [element-type ICalComponent]
opflags | bit-or of ECalOperationFlags. | [type ECalOperationFlags]
out_uids | Return value for the UIDs assigned to the new components by the calendar backend. | [out][optional][element-type utf8]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.6

### e_cal_client_modify_object ()

    void
    e_cal_client_modify_object (ECalClient *client,
                                ICalComponent *icalcomp,
                                ECalObjModType mod,
                                ECalOperationFlags opflags,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Requests the calendar backend to modify an existing object. If the object does not exist on the calendar, an error will be returned.

For recurrent appointments, the `mod` argument specifies what to modify, if all instances (E_CAL_OBJ_MOD_ALL), a single instance (E_CAL_OBJ_MOD_THIS), or a specific set of instances (E_CAL_OBJ_MOD_THIS_AND_PRIOR and E_CAL_OBJ_MOD_THIS_AND_FUTURE).

The call is finished by `e_cal_client_modify_object_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
icalcomp | Component to modify |
mod | Type of modification |
opflags | bit-or of ECalOperationFlags. | [type ECalOperationFlags]
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_modify_object_finish ()

    gboolean
    e_cal_client_modify_object_finish (ECalClient *client,
                                       GAsyncResult *result,
                                       GError **error);

Finishes previous call of `e_cal_client_modify_object()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_modify_object_sync ()

    gboolean
    e_cal_client_modify_object_sync (ECalClient *client,
                                     ICalComponent *icalcomp,
                                     ECalObjModType mod,
                                     ECalOperationFlags opflags,
                                     GCancellable *cancellable,
                                     GError **error);

Requests the calendar backend to modify an existing object. If the object does not exist on the calendar, an error will be returned.

For recurrent appointments, the `mod` argument specifies what to modify, if all instances (E_CAL_OBJ_MOD_ALL), a single instance (E_CAL_OBJ_MOD_THIS), or a specific set of instances (E_CAL_OBJ_MOD_THIS_AND_PRIOR and E_CAL_OBJ_MOD_THIS_AND_FUTURE).

#### Parameters

client | an ECalClient |
icalcomp | Component to modify |
mod | Type of modification |
opflags | bit-or of ECalOperationFlags. | [type ECalOperationFlags]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_modify_objects ()

    void
    e_cal_client_modify_objects (ECalClient *client,
                                 GSList *icalcomps,
                                 ECalObjModType mod,
                                 ECalOperationFlags opflags,
                                 GCancellable *cancellable,
                                 GAsyncReadyCallback callback,
                                 gpointer user_data);

Requests the calendar backend to modify existing objects. If an object does not exist on the calendar, an error will be returned.

For recurrent appointments, the `mod` argument specifies what to modify, if all instances (E_CAL_OBJ_MOD_ALL), a single instance (E_CAL_OBJ_MOD_THIS), or a specific set of instances (E_CAL_OBJ_MOD_THIS_AND_PRIOR and E_CAL_OBJ_MOD_THIS_AND_FUTURE).

The call is finished by `e_cal_client_modify_objects_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
icalcomps | Components to modify. | [element-type ICalComponent]
mod | Type of modification |
opflags | bit-or of ECalOperationFlags. | [type ECalOperationFlags]
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.6

### e_cal_client_modify_objects_finish ()

    gboolean
    e_cal_client_modify_objects_finish (ECalClient *client,
                                        GAsyncResult *result,
                                        GError **error);

Finishes previous call of `e_cal_client_modify_objects()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.6

### e_cal_client_modify_objects_sync ()

    gboolean
    e_cal_client_modify_objects_sync (ECalClient *client,
                                      GSList *icalcomps,
                                      ECalObjModType mod,
                                      ECalOperationFlags opflags,
                                      GCancellable *cancellable,
                                      GError **error);

Requests the calendar backend to modify existing objects. If an object does not exist on the calendar, an error will be returned.

For recurrent appointments, the `mod` argument specifies what to modify, if all instances (E_CAL_OBJ_MOD_ALL), a single instance (E_CAL_OBJ_MOD_THIS), or a specific set of instances (E_CAL_OBJ_MOD_THIS_AND_PRIOR and E_CAL_OBJ_MOD_THIS_AND_FUTURE).

#### Parameters

client | an ECalClient |
icalcomps | Components to modify. | [element-type ICalComponent]
mod | Type of modification |
opflags | bit-or of ECalOperationFlags. | [type ECalOperationFlags]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.6

### e_cal_client_remove_object ()

    void
    e_cal_client_remove_object (ECalClient *client,
                                const gchar *uid,
                                const gchar *rid,
                                ECalObjModType mod,
                                ECalOperationFlags opflags,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

This function allows the removal of instances of a recurrent appointment. By using a combination of the `uid` , `rid` and `mod` arguments, you can remove specific instances. If what you want is to remove all instances, use `NULL` `rid` and E_CAL_OBJ_MOD_ALL for the `mod` .

The call is finished by `e_cal_client_remove_object_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
uid | UID of the object to remove |
rid | Recurrence ID of the specific recurrence to remove. | [nullable]
mod | Type of the removal |
opflags | bit-or of ECalOperationFlags. | [type ECalOperationFlags]
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_remove_object_finish ()

    gboolean
    e_cal_client_remove_object_finish (ECalClient *client,
                                       GAsyncResult *result,
                                       GError **error);

Finishes previous call of `e_cal_client_remove_object()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_remove_object_sync ()

    gboolean
    e_cal_client_remove_object_sync (ECalClient *client,
                                     const gchar *uid,
                                     const gchar *rid,
                                     ECalObjModType mod,
                                     ECalOperationFlags opflags,
                                     GCancellable *cancellable,
                                     GError **error);

This function allows the removal of instances of a recurrent appointment. By using a combination of the `uid` , `rid` and `mod` arguments, you can remove specific instances. If what you want is to remove all instances, use `NULL` `rid` and E_CAL_OBJ_MOD_ALL for the `mod` .

#### Parameters

client | an ECalClient |
uid | UID of the object to remove |
rid | Recurrence ID of the specific recurrence to remove. | [nullable]
mod | Type of the removal |
opflags | bit-or of ECalOperationFlags. | [type ECalOperationFlags]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_remove_objects ()

    void
    e_cal_client_remove_objects (ECalClient *client,
                                 const GSList *ids,
                                 ECalObjModType mod,
                                 ECalOperationFlags opflags,
                                 GCancellable *cancellable,
                                 GAsyncReadyCallback callback,
                                 gpointer user_data);

This function allows the removal of instances of recurrent appointments. ECalComponentId objects can identify specific instances (if rid is not `NULL`). If what you want is to remove all instances, use a `NULL` rid in the ECalComponentId and E_CAL_OBJ_MOD_ALL for the `mod` .

The call is finished by `e_cal_client_remove_objects_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
ids | A list of ECalComponentId objects identifying the objects to remove. | [element-type ECalComponentId]
mod | Type of the removal |
opflags | bit-or of ECalOperationFlags |
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.6

### e_cal_client_remove_objects_finish ()

    gboolean
    e_cal_client_remove_objects_finish (ECalClient *client,
                                        GAsyncResult *result,
                                        GError **error);

Finishes previous call of `e_cal_client_remove_objects()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.6

### e_cal_client_remove_objects_sync ()

    gboolean
    e_cal_client_remove_objects_sync (ECalClient *client,
                                      const GSList *ids,
                                      ECalObjModType mod,
                                      ECalOperationFlags opflags,
                                      GCancellable *cancellable,
                                      GError **error);

This function allows the removal of instances of recurrent appointments. ECalComponentId objects can identify specific instances (if rid is not `NULL`). If what you want is to remove all instances, use a `NULL` rid in the ECalComponentId and E_CAL_OBJ_MOD_ALL for the `mod` .

#### Parameters

client | an ECalClient |
ids | a list of ECalComponentId objects identifying the objects to remove. | [element-type ECalComponentId]
mod | Type of the removal |
opflags | bit-or of ECalOperationFlags. | [type ECalOperationFlags]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.6

### e_cal_client_receive_objects ()

    void
    e_cal_client_receive_objects (ECalClient *client,
                                  ICalComponent *icalcomp,
                                  ECalOperationFlags opflags,
                                  GCancellable *cancellable,
                                  GAsyncReadyCallback callback,
                                  gpointer user_data);

Makes the backend receive the set of iCalendar objects specified in the `icalcomp` argument. This is used for iTIP confirmation/cancellation messages for scheduled meetings.

The call is finished by `e_cal_client_receive_objects_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
icalcomp | An ICalComponent |
opflags | bit-or of ECalOperationFlags |
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_receive_objects_finish ()

    gboolean
    e_cal_client_receive_objects_finish (ECalClient *client,
                                         GAsyncResult *result,
                                         GError **error);

Finishes previous call of `e_cal_client_receive_objects()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_receive_objects_sync ()

    gboolean
    e_cal_client_receive_objects_sync (ECalClient *client,
                                       ICalComponent *icalcomp,
                                       ECalOperationFlags opflags,
                                       GCancellable *cancellable,
                                       GError **error);

Makes the backend receive the set of iCalendar objects specified in the `icalcomp` argument. This is used for iTIP confirmation/cancellation messages for scheduled meetings.

#### Parameters

client | an ECalClient |
icalcomp | An ICalComponent |
opflags | bit-or of ECalOperationFlags |
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_send_objects ()

    void
    e_cal_client_send_objects (ECalClient *client,
                               ICalComponent *icalcomp,
                               ECalOperationFlags opflags,
                               GCancellable *cancellable,
                               GAsyncReadyCallback callback,
                               gpointer user_data);

Requests a calendar backend to send meeting information stored in `icalcomp` . The backend can modify this component and request a send to particular users. The call is finished by `e_cal_client_send_objects_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
icalcomp | An ICalComponent to be sent |
opflags | bit-or of ECalOperationFlags |
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_send_objects_finish ()

    gboolean
    e_cal_client_send_objects_finish (ECalClient *client,
                                      GAsyncResult *result,
                                      GSList **out_users,
                                      ICalComponent **out_modified_icalcomp,
                                      GError **error);

Finishes previous call of `e_cal_client_send_objects()` and populates `out_users` with a list of users to send `out_modified_icalcomp` to.

The `out_users` list should be freed with `e_client_util_free_string_slist()` and the `out_modified_icalcomp` should be freed with `g_object_unref()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
out_users | List of users to send the `out_modified_icalcomp` to. | [out][transfer full][element-type utf8]
out_modified_icalcomp | Return value for the ICalComponent to be sent. | [out][transfer full]
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_send_objects_sync ()

    gboolean
    e_cal_client_send_objects_sync (ECalClient *client,
                                    ICalComponent *icalcomp,
                                    ECalOperationFlags opflags,
                                    GSList **out_users,
                                    ICalComponent **out_modified_icalcomp,
                                    GCancellable *cancellable,
                                    GError **error);

Requests a calendar backend to send meeting information stored in `icalcomp` . The backend can modify this component and request a send to users in the `out_users` list.

The `out_users` list should be freed with `e_client_util_free_string_slist()` and the `out_modified_icalcomp` should be freed with `g_object_unref()`.

#### Parameters

client | an ECalClient |
icalcomp | An ICalComponent to be sent |
opflags | bit-or of ECalOperationFlags. | [type ECalOperationFlags]
out_users | List of users to send the `out_modified_icalcomp` to. | [out][transfer full][element-type utf8]
out_modified_icalcomp | Return value for the ICalComponent to be sent. | [out][transfer full]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_attachment_uris ()

    void
    e_cal_client_get_attachment_uris (ECalClient *client,
                                      const gchar *uid,
                                      const gchar *rid,
                                      GCancellable *cancellable,
                                      GAsyncReadyCallback callback,
                                      gpointer user_data);

Queries a calendar for a specified component's object attachment uris. The call is finished by `e_cal_client_get_attachment_uris_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
uid | Unique identifier for a calendar component |
rid | Recurrence identifier. | [nullable]
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_get_attachment_uris_finish ()

    gboolean
    e_cal_client_get_attachment_uris_finish
                                   (ECalClient *client,
                                    GAsyncResult *result,
                                    GSList **out_attachment_uris,
                                    GError **error);

Finishes previous call of `e_cal_client_get_attachment_uris()` and sets `out_attachment_uris` to uris for component's attachments. The list should be freed with `e_client_util_free_string_slist()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
out_attachment_uris | Return location for the list of attachment URIs. | [out][element-type utf8]
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_attachment_uris_sync ()

    gboolean
    e_cal_client_get_attachment_uris_sync (ECalClient *client,
                                           const gchar *uid,
                                           const gchar *rid,
                                           GSList **out_attachment_uris,
                                           GCancellable *cancellable,
                                           GError **error);

Queries a calendar for a specified component's object attachment URIs. The list should be freed with `e_client_util_free_string_slist()`.

#### Parameters

client | an ECalClient |
uid | Unique identifier for a calendar component |
rid | Recurrence identifier. | [nullable]
out_attachment_uris | Return location for the list of attachment URIs. | [out][element-type utf8]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_discard_alarm ()

    void
    e_cal_client_discard_alarm (ECalClient *client,
                                const gchar *uid,
                                const gchar *rid,
                                const gchar *auid,
                                ECalOperationFlags opflags,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Discards alarm `auid` from a given component identified by `uid` and `rid` . The call is finished by `e_cal_client_discard_alarm_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
uid | Unique identifier for a calendar component |
rid | Recurrence identifier. | [nullable]
auid | Alarm identifier to discard |
opflags | bit-or of ECalOperationFlags. | [type ECalOperationFlags]
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_discard_alarm_finish ()

    gboolean
    e_cal_client_discard_alarm_finish (ECalClient *client,
                                       GAsyncResult *result,
                                       GError **error);

Finishes previous call of `e_cal_client_discard_alarm()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_discard_alarm_sync ()

    gboolean
    e_cal_client_discard_alarm_sync (ECalClient *client,
                                     const gchar *uid,
                                     const gchar *rid,
                                     const gchar *auid,
                                     ECalOperationFlags opflags,
                                     GCancellable *cancellable,
                                     GError **error);

Discards alarm `auid` from a given component identified by `uid` and `rid` .

#### Parameters

client | an ECalClient |
uid | Unique identifier for a calendar component |
rid | Recurrence identifier. | [nullable]
auid | Alarm identifier to discard |
opflags | bit-or of ECalOperationFlags. | [type ECalOperationFlags]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_view ()

    void
    e_cal_client_get_view (ECalClient *client,
                           const gchar *sexp,
                           GCancellable *cancellable,
                           GAsyncReadyCallback callback,
                           gpointer user_data);

Query `client` with `sexp` , creating an ECalClientView. The call is finished by `e_cal_client_get_view_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
sexp | an S-expression representing the query. |
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_get_view_finish ()

    gboolean
    e_cal_client_get_view_finish (ECalClient *client,
                                  GAsyncResult *result,
                                  ECalClientView **out_view,
                                  GError **error);

Finishes previous call of `e_cal_client_get_view()`. If successful, then the `out_view` is set to newly allocated ECalClientView, which should be freed with `g_object_unref()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
out_view | an ECalClientView. | [out][transfer full]
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_view_sync ()

    gboolean
    e_cal_client_get_view_sync (ECalClient *client,
                                const gchar *sexp,
                                ECalClientView **out_view,
                                GCancellable *cancellable,
                                GError **error);

Query `client` with `sexp` , creating an ECalClientView. If successful, then the `out_view` is set to newly allocated ECalClientView, which should be freed with `g_object_unref()`.

#### Parameters

client | an ECalClient |
sexp | an S-expression representing the query. |
out_view | an ECalClientView. | [out]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_timezone ()

    void
    e_cal_client_get_timezone (ECalClient *client,
                               const gchar *tzid,
                               GCancellable *cancellable,
                               GAsyncReadyCallback callback,
                               gpointer user_data);

Retrieves a timezone object from the calendar backend. The call is finished by `e_cal_client_get_timezone_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
tzid | ID of the timezone to retrieve |
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_get_timezone_finish ()

    gboolean
    e_cal_client_get_timezone_finish (ECalClient *client,
                                      GAsyncResult *result,
                                      ICalTimezone **out_zone,
                                      GError **error);

Finishes previous call of `e_cal_client_get_timezone()` and sets `out_zone` to a retrieved timezone object from the calendar backend. This object is owned by the `client` , thus do not free it.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
out_zone | Return value for the timezone. | [out][transfer none]
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_get_timezone_sync ()

    gboolean
    e_cal_client_get_timezone_sync (ECalClient *client,
                                    const gchar *tzid,
                                    ICalTimezone **out_zone,
                                    GCancellable *cancellable,
                                    GError **error);

Retrieves a timezone object from the calendar backend. This object is owned by the `client` , thus do not free it.

#### Parameters

client | an ECalClient |
tzid | ID of the timezone to retrieve |
out_zone | Return value for the timezone. | [out][transfer none]
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_add_timezone ()

    void
    e_cal_client_add_timezone (ECalClient *client,
                               ICalTimezone *zone,
                               GCancellable *cancellable,
                               GAsyncReadyCallback callback,
                               gpointer user_data);

Add a VTIMEZONE object to the given calendar client. The call is finished by `e_cal_client_add_timezone_finish()` from the `callback` .

#### Parameters

client | an ECalClient |
zone | The timezone to add |
cancellable | a GCancellable; can be `NULL` |
callback | callback to call when a result is ready |
user_data | user data for the `callback` |

Since: 3.2

### e_cal_client_add_timezone_finish ()

    gboolean
    e_cal_client_add_timezone_finish (ECalClient *client,
                                      GAsyncResult *result,
                                      GError **error);

Finishes previous call of `e_cal_client_add_timezone()`.

#### Parameters

client | an ECalClient |
result | a GAsyncResult |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

### e_cal_client_add_timezone_sync ()

    gboolean
    e_cal_client_add_timezone_sync (ECalClient *client,
                                    ICalTimezone *zone,
                                    GCancellable *cancellable,
                                    GError **error);

Add a VTIMEZONE object to the given calendar client.

#### Parameters

client | an ECalClient |
zone | The timezone to add |
cancellable | a GCancellable; can be `NULL` |
error | a GError to set an error, if any |

#### Returns

`TRUE` if successful, `FALSE` otherwise.

Since: 3.2

## Types and Values

### E_CAL_BACKEND_PROPERTY_CAL_EMAIL_ADDRESS

    #define E_CAL_BACKEND_PROPERTY_CAL_EMAIL_ADDRESS "cal-email-address"

An email address associated with the calendar.

Since: 3.2

### E_CAL_BACKEND_PROPERTY_ALARM_EMAIL_ADDRESS

    #define E_CAL_BACKEND_PROPERTY_ALARM_EMAIL_ADDRESS "alarm-email-address"

An email address preferred for e-mail reminders by the calendar.

Since: 3.2

### E_CAL_BACKEND_PROPERTY_DEFAULT_OBJECT

    #define E_CAL_BACKEND_PROPERTY_DEFAULT_OBJECT		"default-object"

A default object for the calendar. Calendars use VEVENT, memo lists VJOURNAL and task lists VTODO, which can have prefilled values by the backend.

Since: 3.2

### E_CAL_BACKEND_PROPERTY_REVISION

    #define E_CAL_BACKEND_PROPERTY_REVISION			"revision"

The current overall revision string, this can be used as a quick check to see if data has changed at all since the last time the calendar revision was observed.

Since: 3.4

### E_CAL_CLIENT_ERROR

    #define E_CAL_CLIENT_ERROR e_cal_client_error_quark ()

An error domain associated with ECalClient. The error codes are from ECalClientError.

Since: 3.2

### enum ECalClientError

#### Members

E_CAL_CLIENT_ERROR_NO_SUCH_CALENDAR | No such calendar |
E_CAL_CLIENT_ERROR_OBJECT_NOT_FOUND | Object not found |
E_CAL_CLIENT_ERROR_INVALID_OBJECT | Invalid object |
E_CAL_CLIENT_ERROR_UNKNOWN_USER | Unknown user |
E_CAL_CLIENT_ERROR_OBJECT_ID_ALREADY_EXISTS | Object ID already exists |
E_CAL_CLIENT_ERROR_INVALID_RANGE | Invalid range |

Since: 3.2

### struct ECalClient

    struct ECalClient;

Contains only private data that should be read and manipulated using the functions below.

Since: 3.2

### struct ECalClientClass

    struct ECalClientClass {
    	/* Signals */
    	void		(*free_busy_data) (ECalClient *client,
    						 const GSList *free_busy_ecalcomps); /* ECalComponent * */
    };

Base class structure for the ECalClient class

#### Members

`free_busy_data` () | signal used to notify about free/busy data |