[evolution-data-server] Make it possible to disable Reminders for Tasks
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Make it possible to disable Reminders for Tasks
- Date: Fri, 16 Mar 2018 11:49:10 +0000 (UTC)
commit 5f272068f281a50abb022db4b05bc3c3d0352d0b
Author: Milan Crha <mcrha redhat com>
Date: Fri Mar 16 12:50:14 2018 +0100
Make it possible to disable Reminders for Tasks
.../backends/gtasks/e-cal-backend-gtasks.c | 1 +
src/calendar/libecal/e-cal-util.h | 10 ++++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/calendar/backends/gtasks/e-cal-backend-gtasks.c
b/src/calendar/backends/gtasks/e-cal-backend-gtasks.c
index 3c1fd5b..3a97bc1 100644
--- a/src/calendar/backends/gtasks/e-cal-backend-gtasks.c
+++ b/src/calendar/backends/gtasks/e-cal-backend-gtasks.c
@@ -389,6 +389,7 @@ ecb_gtasks_get_backend_property (ECalBackend *cal_backend,
CAL_STATIC_CAPABILITY_NO_THISANDFUTURE,
CAL_STATIC_CAPABILITY_NO_THISANDPRIOR,
CAL_STATIC_CAPABILITY_TASK_DATE_ONLY,
+ CAL_STATIC_CAPABILITY_TASK_NO_ALARM,
e_cal_meta_backend_get_capabilities (E_CAL_META_BACKEND (cal_backend)),
NULL);
} else if (g_str_equal (prop_name, CAL_BACKEND_PROPERTY_CAL_EMAIL_ADDRESS) ||
diff --git a/src/calendar/libecal/e-cal-util.h b/src/calendar/libecal/e-cal-util.h
index 37997a8..d43f1bf 100644
--- a/src/calendar/libecal/e-cal-util.h
+++ b/src/calendar/libecal/e-cal-util.h
@@ -235,6 +235,16 @@ gboolean e_cal_util_event_dates_match (icalcomponent *icalcomp1,
**/
#define CAL_STATIC_CAPABILITY_TASK_CAN_RECUR "task-can-recur"
+/**
+ * CAL_STATIC_CAPABILITY_TASK_NO_ALARM:
+ *
+ * When the capability is set, the client cannot store reminders
+ * on tasks, otherwise it can.
+ *
+ * Since: 3.30
+ **/
+#define CAL_STATIC_CAPABILITY_TASK_NO_ALARM "task-no-alarm"
+
/* Recurrent events. Management for instances */
icalcomponent * e_cal_util_construct_instance (icalcomponent *icalcomp,
struct icaltimetype rid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]