[evolution-data-server] evo-I#1645 - Tasks: Support ESTIMATED-DURATION
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] evo-I#1645 - Tasks: Support ESTIMATED-DURATION
- Date: Thu, 2 Dec 2021 17:32:41 +0000 (UTC)
commit d49d1503461ab748e083e86e313975a385336e98
Author: Milan Crha <mcrha redhat com>
Date: Thu Dec 2 18:31:10 2021 +0100
evo-I#1645 - Tasks: Support ESTIMATED-DURATION
Add a static capability and set it on backends, which can read/write
the ESTIMATED-DURATION property.
Related to https://gitlab.gnome.org/GNOME/evolution/-/issues/1645
src/calendar/backends/caldav/e-cal-backend-caldav.c | 3 ++-
src/calendar/backends/file/e-cal-backend-file.c | 1 +
src/calendar/libecal/e-cal-util.h | 10 ++++++++++
3 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/src/calendar/backends/caldav/e-cal-backend-caldav.c
b/src/calendar/backends/caldav/e-cal-backend-caldav.c
index 7fc2e8e5e..4861476ff 100644
--- a/src/calendar/backends/caldav/e-cal-backend-caldav.c
+++ b/src/calendar/backends/caldav/e-cal-backend-caldav.c
@@ -2319,7 +2319,8 @@ ecb_caldav_get_backend_property (ECalBackend *backend,
E_CAL_STATIC_CAPABILITY_NO_THISANDPRIOR ","
E_CAL_STATIC_CAPABILITY_REFRESH_SUPPORTED ","
E_CAL_STATIC_CAPABILITY_TASK_CAN_RECUR ","
- E_CAL_STATIC_CAPABILITY_COMPONENT_COLOR);
+ E_CAL_STATIC_CAPABILITY_COMPONENT_COLOR ","
+ E_CAL_STATIC_CAPABILITY_TASK_ESTIMATED_DURATION);
g_string_append_c (caps, ',');
g_string_append (caps, e_cal_meta_backend_get_capabilities (E_CAL_META_BACKEND (backend)));
diff --git a/src/calendar/backends/file/e-cal-backend-file.c b/src/calendar/backends/file/e-cal-backend-file.c
index 79ae53632..376c54e58 100644
--- a/src/calendar/backends/file/e-cal-backend-file.c
+++ b/src/calendar/backends/file/e-cal-backend-file.c
@@ -468,6 +468,7 @@ e_cal_backend_file_get_backend_property (ECalBackend *backend,
E_CAL_STATIC_CAPABILITY_ALARM_DESCRIPTION,
E_CAL_STATIC_CAPABILITY_TASK_CAN_RECUR,
E_CAL_STATIC_CAPABILITY_COMPONENT_COLOR,
+ E_CAL_STATIC_CAPABILITY_TASK_ESTIMATED_DURATION,
NULL);
} else if (g_str_equal (prop_name, E_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 6f739ad1d..540812263 100644
--- a/src/calendar/libecal/e-cal-util.h
+++ b/src/calendar/libecal/e-cal-util.h
@@ -221,6 +221,16 @@ G_BEGIN_DECLS
#define E_CAL_STATIC_CAPABILITY_SIMPLE_MEMO_WITH_SUMMARY "simple-memo-with-summary"
+/**
+ * E_CAL_STATIC_CAPABILITY_TASK_ESTIMATED_DURATION:
+ *
+ * Set, when the backend supports ESTIMATED-DURATION property for tasks.
+ *
+ * Since: 3.44
+ **/
+
+#define E_CAL_STATIC_CAPABILITY_TASK_ESTIMATED_DURATION "task-estimated-duration"
+
struct _ECalClient;
ICalComponent * e_cal_util_new_top_level (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]