![]() |
![]() |
![]() |
Evolution-Data-Server Manual: Calendar Backend (libedata-cal) | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
ECalBackend; ESource * e_cal_backend_get_source (ECalBackend *backend
); const gchar * 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
,EServerMethodContext context
); void e_cal_backend_get_alarm_email_address (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
); void e_cal_backend_get_ldap_attribute (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
); void e_cal_backend_get_static_capabilities (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
); void e_cal_backend_open (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,gboolean only_if_exists
,const gchar *username
,const gchar *password
); void e_cal_backend_refresh (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
); void e_cal_backend_remove (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
); void e_cal_backend_create_object (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *calobj
); void e_cal_backend_modify_object (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *calobj
,CalObjModType mod
); void e_cal_backend_remove_object (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *uid
,const gchar *rid
,CalObjModType mod
); void e_cal_backend_discard_alarm (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *uid
,const gchar *auid
); void e_cal_backend_receive_objects (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *calobj
); void e_cal_backend_send_objects (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *calobj
); void e_cal_backend_get_default_object (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
); void e_cal_backend_get_object (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *uid
,const gchar *rid
); void e_cal_backend_get_object_list (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *sexp
); void e_cal_backend_get_attachment_list (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *uid
,const gchar *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
,EServerMethodContext context
,const gchar *tzid
); void e_cal_backend_add_timezone (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *object
); void e_cal_backend_set_default_timezone (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *tzid
); void e_cal_backend_set_default_zone (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *tzobj
); void e_cal_backend_get_changes (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *change_id
); void e_cal_backend_get_free_busy (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,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
,const gchar *tzid
); void e_cal_backend_set_notification_proxy (ECalBackend *backend
,ECalBackend *proxy
); void e_cal_backend_notify_object_created (ECalBackend *backend
,const gchar *calobj
); void e_cal_backend_notify_object_modified (ECalBackend *backend
,const gchar *old_object
,const gchar *object
); void e_cal_backend_notify_object_removed (ECalBackend *backend
,const ECalComponentId *id
,const gchar *old_object
,const gchar *object
); void e_cal_backend_notify_mode (ECalBackend *backend
,EDataCalViewListenerSetModeStatus status
,EDataCalMode mode
); void e_cal_backend_notify_auth_required (ECalBackend *backend
); void e_cal_backend_notify_error (ECalBackend *backend
,const gchar *message
); void e_cal_backend_notify_view_done (ECalBackend *backend
,EDataCalCallStatus status
); void e_cal_backend_notify_view_progress_start (ECalBackend *backend
); void e_cal_backend_notify_view_progress (ECalBackend *backend
,const gchar *message
,gint percent
); void e_cal_backend_notify_readonly (ECalBackend *backend
,gboolean read_only
); void e_cal_backend_notify_cal_address (ECalBackend *backend
,EServerMethodContext context
,gchar *address
); void e_cal_backend_notify_objects_added (ECalBackend *backend
,EDataCalView *query
,const GList *objects
); void e_cal_backend_notify_objects_removed (ECalBackend *backend
,EDataCalView *query
,const GList *ids
); void e_cal_backend_notify_objects_modified (ECalBackend *backend
,EDataCalView *query
,const GList *objects
); void e_cal_backend_empty_cache (ECalBackend *backend
,struct _ECalBackendCache *cache
);
"kind" gulong : Read / Write / Construct Only "source" ESource* : Read / Write / Construct Only "uri" gchar* : Read / Write / Construct Only
ESource * e_cal_backend_get_source (ECalBackend *backend
);
Gets the ESource associated with the given backend.
|
An ECalBackend object. |
Returns : |
The ESource for the backend. |
const gchar * 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.
|
Since 2.24
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
,EServerMethodContext context
);
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
,EServerMethodContext context
);
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
,EServerMethodContext context
);
|
|
|
|
|
void e_cal_backend_get_static_capabilities (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
);
|
|
|
|
|
void e_cal_backend_open (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,gboolean only_if_exists
,const gchar *username
,const gchar *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_refresh (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
);
Refreshes the calendar being accessed by the given backend.
|
A calendar backend. |
|
An EDataCal object. |
|
Since 2.30
void e_cal_backend_remove (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
);
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
,EServerMethodContext context
,const gchar *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
,EServerMethodContext context
,const gchar *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
,EServerMethodContext context
,const gchar *uid
,const gchar *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
,EServerMethodContext context
,const gchar *uid
,const gchar *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
,EServerMethodContext context
,const gchar *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
,EServerMethodContext context
,const gchar *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
,EServerMethodContext context
);
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
,EServerMethodContext context
,const gchar *uid
,const gchar *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
,EServerMethodContext context
,const gchar *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
,EServerMethodContext context
,const gchar *uid
,const gchar *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
,EServerMethodContext context
,const gchar *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
,EServerMethodContext context
,const gchar *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
,EServerMethodContext context
,const gchar *tzid
);
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 TZID identifying the timezone. |
void e_cal_backend_set_default_zone (ECalBackend *backend
,EDataCal *cal
,EServerMethodContext context
,const gchar *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
,EServerMethodContext context
,const gchar *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
,EServerMethodContext context
,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
,const gchar *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
,const gchar *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
,const gchar *old_object
,const gchar *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
,const ECalComponentId *id
,const gchar *old_object
,const gchar *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
,EDataCalViewListenerSetModeStatus status
,EDataCalMode 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
,const gchar *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
,EDataCalCallStatus 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. |
Since 2.24
void e_cal_backend_notify_view_progress (ECalBackend *backend
,const gchar *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
,EServerMethodContext context
,gchar *address
);
|
|
|
|
|
void e_cal_backend_notify_objects_added (ECalBackend *backend
,EDataCalView *query
,const GList *objects
);
|
|
|
|
|
Since 2.24
void e_cal_backend_notify_objects_removed (ECalBackend *backend
,EDataCalView *query
,const GList *ids
);
|
|
|
|
|
Since 2.24
void e_cal_backend_notify_objects_modified (ECalBackend *backend
,EDataCalView *query
,const GList *objects
);
|
|
|
|
|
Since 2.24
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. |
Since 2.28
"last-client-gone"
signalvoid user_function (ECalBackend *ecalbackend, gpointer user_data) : Run First
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"opened"
signalvoid user_function (ECalBackend *ecalbackend, gint arg1, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"removed"
signalvoid user_function (ECalBackend *ecalbackend, gint arg1, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |