Fixes #73508
authorChenthill Palanisamy <pchenthill@novell.com>
Thu, 24 Mar 2005 08:33:29 +0000 (08:33 +0000)
committerChenthill Palanisamy <pchen@src.gnome.org>
Thu, 24 Mar 2005 08:33:29 +0000 (08:33 +0000)
2005-03-22  Chenthill Palanisamy  <pchenthill@novell.com>

Fixes #73508
* backends/groupwise/e-cal-backend-groupwise.c:
(e_cal_backend_groupwise_get_static_capabilities):
* libecal/e-cal-util.h: Added a new static capability
to check and set the partstat as NEEDS ACTION for the
organizer.
* libecal/e-cal.[ch] (e_cal_get_organizer_must_accept):
Added a function to check the static capability.

calendar/ChangeLog
calendar/backends/groupwise/e-cal-backend-groupwise.c
calendar/libecal/e-cal-util.h
calendar/libecal/e-cal.c
calendar/libecal/e-cal.h

index 2494658..1ad4a91 100644 (file)
@@ -1,3 +1,14 @@
+2005-03-22  Chenthill Palanisamy  <pchenthill@novell.com>
+
+       Fixes #73508
+       * backends/groupwise/e-cal-backend-groupwise.c:
+       (e_cal_backend_groupwise_get_static_capabilities):
+       * libecal/e-cal-util.h: Added a new static capability 
+       to check and set the partstat as NEEDS ACTION for the
+       organizer.
+       * libecal/e-cal.[ch] (e_cal_get_organizer_must_accept):
+       Added a function to check the static capability.
+
 2005-03-12  Chenthill Palanisamy  <pchenthill@novell.com>
 
        * backends/groupwise/e-cal-backend-groupwise.c:
index 99986cf..6a381c5 100644 (file)
@@ -764,6 +764,7 @@ e_cal_backend_groupwise_get_static_capabilities (ECalBackendSync *backend, EData
                                  CAL_STATIC_CAPABILITY_NO_CONV_TO_ASSIGN_TASK "," \
                                  CAL_STATIC_CAPABILITY_NO_CONV_TO_RECUR "," \
                                  CAL_STATIC_CAPABILITY_REQ_SEND_OPTIONS "," \
+                                 CAL_STATIC_CAPABILITY_ORGANIZER_MUST_ACCEPT "," \
                                  CAL_STATIC_CAPABILITY_SAVE_SCHEDULES);
 
        return GNOME_Evolution_Calendar_Success;
index e6d06bf..fe28999 100644 (file)
@@ -125,6 +125,7 @@ gboolean e_cal_util_event_dates_match (icalcomponent *icalcomp1, icalcomponent *
 #define CAL_STATIC_CAPABILITY_NO_CONV_TO_RECUR           "no-conv-to-recur"
 #define CAL_STATIC_CAPABILITY_NO_GEN_OPTIONS             "no-general-options"
 #define CAL_STATIC_CAPABILITY_REQ_SEND_OPTIONS           "require-send-options"
+#define CAL_STATIC_CAPABILITY_ORGANIZER_MUST_ACCEPT      "organizer-must-accept"
 
 /* Recurrent events. Management for instances */
 icalcomponent *e_cal_util_construct_instance (icalcomponent *icalcomp,
index 136852b..5498187 100644 (file)
@@ -2307,6 +2307,15 @@ e_cal_get_save_schedules (ECal *ecal)
        return check_capability (ecal, CAL_STATIC_CAPABILITY_SAVE_SCHEDULES);
 }
 
+gboolean 
+e_cal_get_organizer_must_accept (ECal *ecal)
+{
+       g_return_val_if_fail (ecal != NULL, FALSE);
+       g_return_val_if_fail (E_IS_CAL (ecal), FALSE);
+
+       return check_capability (ecal, CAL_STATIC_CAPABILITY_ORGANIZER_MUST_ACCEPT);
+}
+
 gboolean
 e_cal_set_mode (ECal *ecal, CalMode mode)
 {
index 531b4ce..46dc836 100644 (file)
@@ -128,6 +128,7 @@ gboolean e_cal_get_one_alarm_only (ECal *ecal);
 gboolean e_cal_get_organizer_must_attend (ECal *ecal);
 gboolean e_cal_get_save_schedules (ECal *ecal);
 gboolean e_cal_get_static_capability (ECal *ecal, const char *cap);
+gboolean e_cal_get_organizer_must_accept (ECal *ecal);
 
 gboolean e_cal_set_mode (ECal *ecal, CalMode mode);