aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs/cal-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/pcs/cal-backend.c')
-rw-r--r--calendar/pcs/cal-backend.c40
1 files changed, 36 insertions, 4 deletions
diff --git a/calendar/pcs/cal-backend.c b/calendar/pcs/cal-backend.c
index f738399380..5e2074bad1 100644
--- a/calendar/pcs/cal-backend.c
+++ b/calendar/pcs/cal-backend.c
@@ -175,6 +175,8 @@ cal_backend_class_init (CalBackendClass *class)
class->get_uri = NULL;
class->get_email_address = NULL;
+ class->get_alarm_email_address = NULL;
+ class->get_static_capabilities = NULL;
class->open = NULL;
class->is_loaded = NULL;
class->is_read_only = NULL;
@@ -281,6 +283,26 @@ cal_backend_get_email_address (CalBackend *backend)
return (* CLASS (backend)->get_email_address) (backend);
}
+const char *
+cal_backend_get_alarm_email_address (CalBackend *backend)
+{
+ g_return_val_if_fail (backend != NULL, NULL);
+ g_return_val_if_fail (IS_CAL_BACKEND (backend), NULL);
+
+ g_assert (CLASS (backend)->get_alarm_email_address != NULL);
+ return (* CLASS (backend)->get_alarm_email_address) (backend);
+}
+
+const char *
+cal_backend_get_static_capabilities (CalBackend *backend)
+{
+ g_return_val_if_fail (backend != NULL, NULL);
+ g_return_val_if_fail (IS_CAL_BACKEND (backend), NULL);
+
+ g_assert (CLASS (backend)->get_static_capabilities != NULL);
+ return (* CLASS (backend)->get_static_capabilities) (backend);
+}
+
/* Callback used when a Cal is destroyed */
static void
cal_destroy_cb (gpointer data, GObject *where_cal_was)
@@ -501,6 +523,16 @@ get_object (CalBackend *backend, const char *uid)
return cal_component_get_as_string (comp);
}
+char *
+cal_backend_get_default_object (CalBackend *backend, CalObjType type)
+{
+ g_return_val_if_fail (backend != NULL, NULL);
+ g_return_val_if_fail (IS_CAL_BACKEND (backend), NULL);
+
+ g_assert (CLASS (backend)->get_default_object != NULL);
+ return (* CLASS (backend)->get_default_object) (backend, type);
+}
+
/**
* cal_backend_get_object:
* @backend: A calendar backend.
@@ -795,14 +827,14 @@ cal_backend_get_alarms_for_object (CalBackend *backend, const char *uid,
* result of the operation.
**/
CalBackendResult
-cal_backend_update_objects (CalBackend *backend, const char *calobj)
+cal_backend_update_objects (CalBackend *backend, const char *calobj, CalObjModType mod)
{
g_return_val_if_fail (backend != NULL, FALSE);
g_return_val_if_fail (IS_CAL_BACKEND (backend), FALSE);
g_return_val_if_fail (calobj != NULL, FALSE);
g_assert (CLASS (backend)->update_objects != NULL);
- return (* CLASS (backend)->update_objects) (backend, calobj);
+ return (* CLASS (backend)->update_objects) (backend, calobj, mod);
}
/**
@@ -817,14 +849,14 @@ cal_backend_update_objects (CalBackend *backend, const char *calobj)
* result of the operation.
**/
CalBackendResult
-cal_backend_remove_object (CalBackend *backend, const char *uid)
+cal_backend_remove_object (CalBackend *backend, const char *uid, CalObjModType mod)
{
g_return_val_if_fail (backend != NULL, FALSE);
g_return_val_if_fail (IS_CAL_BACKEND (backend), FALSE);
g_return_val_if_fail (uid != NULL, FALSE);
g_assert (CLASS (backend)->remove_object != NULL);
- return (* CLASS (backend)->remove_object) (backend, uid);
+ return (* CLASS (backend)->remove_object) (backend, uid, mod);
}
CalBackendSendResult