| Evolution-Data-Server Manual: Calendar Backend (libedata-cal) | ||||
|---|---|---|---|---|
ESource * e_cal_backend_get_source (ECalBackend *backend); constgchar * e_cal_backend_get_uri (ECalBackend *backend);icalcomponent_kind e_cal_backend_get_kind (ECalBackend *backend);void e_cal_backend_add_client (ECalBackend *backend, EDataCal *cal);void e_cal_backend_remove_client (ECalBackend *backend, EDataCal *cal);void e_cal_backend_add_query (ECalBackend *backend, EDataCalView *query);EList * e_cal_backend_get_queries (ECalBackend *backend);void e_cal_backend_remove_query (ECalBackend *backend, EDataCalView *query);void e_cal_backend_is_read_only (ECalBackend *backend, EDataCal *cal);void e_cal_backend_get_cal_address (ECalBackend *backend, EDataCal *cal);void e_cal_backend_get_alarm_email_address (ECalBackend *backend, EDataCal *cal);void e_cal_backend_get_ldap_attribute (ECalBackend *backend, EDataCal *cal);void e_cal_backend_get_static_capabilities (ECalBackend *backend, EDataCal *cal);void e_cal_backend_open (ECalBackend *backend, EDataCal *cal,gboolean only_if_exists, constgchar *username, constgchar *password);void e_cal_backend_remove (ECalBackend *backend, EDataCal *cal);void e_cal_backend_create_object (ECalBackend *backend, EDataCal *cal, constgchar *calobj);void e_cal_backend_modify_object (ECalBackend *backend, EDataCal *cal, constgchar *calobj,CalObjModType mod);void e_cal_backend_remove_object (ECalBackend *backend, EDataCal *cal, constgchar *uid, constgchar *rid,CalObjModType mod);void e_cal_backend_discard_alarm (ECalBackend *backend, EDataCal *cal, constgchar *uid, constgchar *auid);void e_cal_backend_receive_objects (ECalBackend *backend, EDataCal *cal, constgchar *calobj);void e_cal_backend_send_objects (ECalBackend *backend, EDataCal *cal, constgchar *calobj);void e_cal_backend_get_default_object (ECalBackend *backend, EDataCal *cal);void e_cal_backend_get_object (ECalBackend *backend, EDataCal *cal, constgchar *uid, constgchar *rid);void e_cal_backend_get_object_list (ECalBackend *backend, EDataCal *cal, constgchar *sexp);void e_cal_backend_get_attachment_list (ECalBackend *backend, EDataCal *cal, constgchar *uid, constgchar *rid);gboolean e_cal_backend_is_loaded (ECalBackend *backend);void e_cal_backend_start_query (ECalBackend *backend, EDataCalView *query);CalMode e_cal_backend_get_mode (ECalBackend *backend);void e_cal_backend_set_mode (ECalBackend *backend,CalMode mode);void e_cal_backend_get_timezone (ECalBackend *backend, EDataCal *cal, constgchar *tzid);void e_cal_backend_add_timezone (ECalBackend *backend, EDataCal *cal, constgchar *object);void e_cal_backend_set_default_timezone (ECalBackend *backend, EDataCal *cal, constgchar *tzid);void e_cal_backend_set_default_zone (ECalBackend *backend, EDataCal *cal, constgchar *tzobj);void e_cal_backend_get_changes (ECalBackend *backend, EDataCal *cal, constgchar *change_id);void e_cal_backend_get_free_busy (ECalBackend *backend, EDataCal *cal,GList *users,time_t start,time_t end);icaltimezone * e_cal_backend_internal_get_default_timezone (ECalBackend *backend);icaltimezone * e_cal_backend_internal_get_timezone (ECalBackend *backend, constgchar *tzid);void e_cal_backend_set_notification_proxy (ECalBackend *backend, ECalBackend *proxy);void e_cal_backend_notify_object_created (ECalBackend *backend, constgchar *calobj);void e_cal_backend_notify_object_modified (ECalBackend *backend, constgchar *old_object, constgchar *object);void e_cal_backend_notify_object_removed (ECalBackend *backend, constECalComponentId *id, constgchar *old_object, constgchar *object);void e_cal_backend_notify_mode (ECalBackend *backend,GNOME_Evolution_Calendar_CalListener_SetModeStatus status,GNOME_Evolution_Calendar_CalMode mode);void e_cal_backend_notify_auth_required (ECalBackend *backend);void e_cal_backend_notify_error (ECalBackend *backend, constgchar *message);void e_cal_backend_notify_view_done (ECalBackend *backend,GNOME_Evolution_Calendar_CallStatus status);void e_cal_backend_notify_view_progress_start (ECalBackend *backend);void e_cal_backend_notify_view_progress (ECalBackend *backend, constgchar *message,gint percent);void e_cal_backend_notify_readonly (ECalBackend *backend,gboolean read_only);void e_cal_backend_notify_cal_address (ECalBackend *backend,gchar *address);void e_cal_backend_notify_objects_added (ECalBackend *backend, EDataCalView *query, constGList *objects);void e_cal_backend_notify_objects_removed (ECalBackend *backend, EDataCalView *query, constGList *ids);void e_cal_backend_notify_objects_modified (ECalBackend *backend, EDataCalView *query, constGList *objects);void e_cal_backend_empty_cache (ECalBackend *backend,struct _ECalBackendCache *cache);
ESource * e_cal_backend_get_source (ECalBackend *backend);
Gets the
|
An ECalBackend object. |
Returns : |
The |
constgchar * e_cal_backend_get_uri (ECalBackend *backend);
Queries the URI of a calendar backend, which must already have an open calendar.
|
A calendar backend. |
Returns : |
The URI where the calendar is stored. |
icalcomponent_kind e_cal_backend_get_kind (ECalBackend *backend);
Gets the kind of components the given backend stores.
|
An ECalBackend object. |
Returns : |
The kind of components for this backend. |
void e_cal_backend_add_client (ECalBackend *backend, EDataCal *cal);
Adds a new client to the given backend. For any event, the backend will notify all clients added via this function.
|
An ECalBackend object. |
|
An EDataCal object. |
void e_cal_backend_remove_client (ECalBackend *backend, EDataCal *cal);
Removes a client from the list of connected clients to the given backend.
|
An ECalBackend object. |
|
An EDataCal object. |
void e_cal_backend_add_query (ECalBackend *backend, EDataCalView *query);
Adds a query to the list of live queries being run by the given backend. Doing so means that any listener on the query will get notified of any change that affect the live query.
|
An ECalBackend object. |
|
An EDataCalView object. |
EList * e_cal_backend_get_queries (ECalBackend *backend);
Gets the list of live queries being run on the given backend.
|
An ECalBackend object. |
Returns : |
The list of live queries. |
void e_cal_backend_remove_query (ECalBackend *backend, EDataCalView *query);
Removes query from the list of live queries for the backend.
|
An ECalBackend object. |
|
An EDataCalView object, previously added with ref e_cal_backend_add_query.
|
void e_cal_backend_is_read_only (ECalBackend *backend, EDataCal *cal);
Queries whether a calendar backend is read only or not.
|
A calendar backend. |
|
An EDataCal object. |
void e_cal_backend_get_cal_address (ECalBackend *backend, EDataCal *cal);
Queries the cal address associated with a calendar backend, which must already have an open calendar.
|
A calendar backend. |
|
void e_cal_backend_get_alarm_email_address (ECalBackend *backend, EDataCal *cal);
Calls the get_static_capabilities method on the given backend.
|
An ECalBackend object. |
|
An EDataCal object. |
void e_cal_backend_get_ldap_attribute (ECalBackend *backend, EDataCal *cal);
|
|
|
void e_cal_backend_get_static_capabilities (ECalBackend *backend, EDataCal *cal);
|
|
|
void e_cal_backend_open (ECalBackend *backend, EDataCal *cal,gboolean only_if_exists, constgchar *username, constgchar *password);
Opens a calendar backend with data from a calendar stored at the specified URI.
|
A calendar backend. |
|
An EDataCal object. |
|
Whether the calendar should be opened only if it already
exists. If FALSE, a new calendar will be created when the specified uri
does not exist.
|
|
User name to use for authentication (if needed). |
|
Password for username.
|
void e_cal_backend_remove (ECalBackend *backend, EDataCal *cal);
Removes the calendar being accessed by the given backend.
|
A calendar backend. |
|
An EDataCal object. |
void e_cal_backend_create_object (ECalBackend *backend, EDataCal *cal, constgchar *calobj);
Calls the create_object method on the given backend.
|
A calendar backend. |
|
An EDataCal object. |
|
The object to create. |
void e_cal_backend_modify_object (ECalBackend *backend, EDataCal *cal, constgchar *calobj,CalObjModType mod);
Calls the modify_object method on the given backend.
|
A calendar backend. |
|
An EDataCal object. |
|
Object to be modified. |
|
Type of modification. |
void e_cal_backend_remove_object (ECalBackend *backend, EDataCal *cal, constgchar *uid, constgchar *rid,CalObjModType mod);
Removes an object in a calendar backend. The backend will notify all of its clients about the change.
|
A calendar backend. |
|
An EDataCal object. |
|
Unique identifier of the object to remove. |
|
A recurrence ID. |
|
Type of removal. |
void e_cal_backend_discard_alarm (ECalBackend *backend, EDataCal *cal, constgchar *uid, constgchar *auid);
Discards an alarm from the given component. This allows the specific backend to do whatever is needed to really discard the alarm.
|
A calendar backend. |
|
An EDataCal object. |
|
UID of the component to discard the alarm from. |
|
Alarm ID. |
void e_cal_backend_receive_objects (ECalBackend *backend, EDataCal *cal, constgchar *calobj);
Calls the receive_objects method on the given backend.
|
A calendar backend. |
|
An EDataCal object. |
|
iCalendar object. |
void e_cal_backend_send_objects (ECalBackend *backend, EDataCal *cal, constgchar *calobj);
Calls the send_objects method on the given backend.
|
A calendar backend. |
|
An EDataCal object. |
|
iCalendar object to be sent. |
void e_cal_backend_get_default_object (ECalBackend *backend, EDataCal *cal);
Calls the get_default_object method on the given backend.
|
A calendar backend. |
|
An EDataCal object. |
void e_cal_backend_get_object (ECalBackend *backend, EDataCal *cal, constgchar *uid, constgchar *rid);
Queries a calendar backend for a calendar object based on its unique identifier and its recurrence ID (if a recurrent appointment).
|
A calendar backend. |
|
An EDataCal object. |
|
Unique identifier for a calendar object. |
|
ID for the object's recurrence to get. |
void e_cal_backend_get_object_list (ECalBackend *backend, EDataCal *cal, constgchar *sexp);
Calls the get_object_list method on the given backend.
|
A calendar backend. |
|
An EDataCal object. |
|
Expression to search for. |
void e_cal_backend_get_attachment_list (ECalBackend *backend, EDataCal *cal, constgchar *uid, constgchar *rid);
Queries a calendar backend for attachments present in a calendar object based on its unique identifier and its recurrence ID (if a recurrent appointment).
|
A calendar backend. |
|
An EDataCal object. |
|
Unique identifier for a calendar object. |
|
ID for the object's recurrence to get. |
gboolean e_cal_backend_is_loaded (ECalBackend *backend);
Queries whether a calendar backend has been loaded yet.
|
A calendar backend. |
Returns : |
TRUE if the backend has been loaded with data, FALSE otherwise. |
void e_cal_backend_start_query (ECalBackend *backend, EDataCalView *query);
Starts a new live query on the given backend.
|
A calendar backend. |
|
The query to be started. |
CalMode e_cal_backend_get_mode (ECalBackend *backend);
Queries whether a calendar backend is connected remotely.
|
A calendar backend. |
Returns : |
The current mode the calendar is in |
void e_cal_backend_set_mode (ECalBackend *backend,CalMode mode);
Sets the mode of the calendar
|
A calendar backend |
|
Mode to change to |
void e_cal_backend_get_timezone (ECalBackend *backend, EDataCal *cal, constgchar *tzid);
|
A calendar backend. |
|
An EDataCal object. |
|
Unique identifier of a VTIMEZONE object. Note that this must not be NULL. |
void e_cal_backend_add_timezone (ECalBackend *backend, EDataCal *cal, constgchar *object);
Add a timezone object to the given backend.
|
A calendar backend. |
|
An EDataCal object. |
|
void e_cal_backend_set_default_timezone (ECalBackend *backend, EDataCal *cal, constgchar *tzid);
|
|
|
|
|
void e_cal_backend_set_default_zone (ECalBackend *backend, EDataCal *cal, constgchar *tzobj);
Sets the default timezone for the calendar, which is used to resolve DATE and floating DATE-TIME values.
|
A calendar backend. |
|
An EDataCal object. |
|
The timezone object, in a string. |
void e_cal_backend_get_changes (ECalBackend *backend, EDataCal *cal, constgchar *change_id);
Builds a sequence of objects and the type of change that occurred on them since the last time the give change_id was seen
|
A calendar backend. |
|
An EDataCal object. |
|
A unique uid for the callers change list |
void e_cal_backend_get_free_busy (ECalBackend *backend, EDataCal *cal,GList *users,time_t start,time_t end);
Gets a free/busy object for the given time interval
|
A calendar backend. |
|
An EDataCal object. |
|
List of users to get free/busy information for. |
|
Start time for query. |
|
End time for query. |
icaltimezone * e_cal_backend_internal_get_default_timezone (ECalBackend *backend);
Calls the internal_get_default_timezone method on the given backend.
|
A calendar backend. |
Returns : |
icaltimezone * e_cal_backend_internal_get_timezone (ECalBackend *backend, constgchar *tzid);
Calls the internal_get_timezone method on the given backend.
|
A calendar backend. |
|
ID of the timezone to get. |
Returns : |
void e_cal_backend_set_notification_proxy (ECalBackend *backend, ECalBackend *proxy);
Sets the backend that will act as notification proxy for the given backend.
|
A calendar backend. |
|
The calendar backend to act as notification proxy. |
void e_cal_backend_notify_object_created (ECalBackend *backend, constgchar *calobj);
Notifies each of the backend's listeners about a new object.
#e_data_cal_notify_object_created() calls this for you. You only need to
call e_cal_backend_notify_object_created() yourself to report objects
created by non-EDS clients.
|
A calendar backend. |
|
iCalendar representation of new object |
void e_cal_backend_notify_object_modified (ECalBackend *backend, constgchar *old_object, constgchar *object);
Notifies each of the backend's listeners about a modified object.
#e_data_cal_notify_object_modified() calls this for you. You only need to
call e_cal_backend_notify_object_modified() yourself to report objects
modified by non-EDS clients.
|
A calendar backend. |
|
iCalendar representation of the original form of the object |
|
iCalendar representation of the new form of the object |
void e_cal_backend_notify_object_removed (ECalBackend *backend, constECalComponentId *id, constgchar *old_object, constgchar *object);
Notifies each of the backend's listeners about a removed object.
e_data_cal_notify_object_removed() calls this for you. You only need to
call e_cal_backend_notify_object_removed() yourself to report objects
removed by non-EDS clients.
|
A calendar backend. |
|
the Id of the removed object |
|
iCalendar representation of the removed object |
|
void e_cal_backend_notify_mode (ECalBackend *backend,GNOME_Evolution_Calendar_CalListener_SetModeStatus status,GNOME_Evolution_Calendar_CalMode mode);
Notifies each of the backend's listeners about the results of a setMode call.
|
A calendar backend. |
|
Status of the mode set |
|
the current mode |
void e_cal_backend_notify_auth_required (ECalBackend *backend);
Notifies each of the backend's listeners that authentication is required to open the calendar.
|
A calendar backend. |
void e_cal_backend_notify_error (ECalBackend *backend, constgchar *message);
Notifies each of the backend's listeners about an error
|
A calendar backend. |
|
Error message |
void e_cal_backend_notify_view_done (ECalBackend *backend,GNOME_Evolution_Calendar_CallStatus status);
Notifies each of the backend's listeners about the view_done in downloading the items.
|
A calendar backend. |
|
returns the status once the view is fully populated. |
void e_cal_backend_notify_view_progress_start (ECalBackend *backend);
This methods has to be used before e_cal_backend_notify_view_progress. Sets last notified percent value to 0.
|
A calendar backend. |
void e_cal_backend_notify_view_progress (ECalBackend *backend, constgchar *message,gint percent);
Notifies each of the backend's listeners about the view_progress in downloading the items.
|
A calendar backend. |
|
the UID of the removed object |
|
percentage of the objects loaded in the view |
void e_cal_backend_notify_readonly (ECalBackend *backend,gboolean read_only);
|
|
|
void e_cal_backend_notify_cal_address (ECalBackend *backend,gchar *address);
|
|
|
void e_cal_backend_notify_objects_added (ECalBackend *backend, EDataCalView *query, constGList *objects);
|
|
|
|
|
void e_cal_backend_notify_objects_removed (ECalBackend *backend, EDataCalView *query, constGList *ids);
|
|
|
|
|
void e_cal_backend_notify_objects_modified (ECalBackend *backend, EDataCalView *query, constGList *objects);
|
|
|
|
|
void e_cal_backend_empty_cache (ECalBackend *backend,struct _ECalBackendCache *cache);
Empties backend's cache with all notifications and so on, thus all listening will know there is nothing in this backend.
|
A calendar backend. |
|
Backend's cache to empty. |