evolution-data-server r9133 - in branches/EXCHANGE_MAPI_BRANCH/calendar: . backends/mapi libecal
- From: msuman svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9133 - in branches/EXCHANGE_MAPI_BRANCH/calendar: . backends/mapi libecal
- Date: Fri, 18 Jul 2008 10:59:46 +0000 (UTC)
Author: msuman
Date: Fri Jul 18 10:59:46 2008
New Revision: 9133
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9133&view=rev
Log:
Added a new CAL_STATIC_CAPABILITY_CREATE_MESSAGES, see ChangeLog for more details.
Modified:
branches/EXCHANGE_MAPI_BRANCH/calendar/ChangeLog
branches/EXCHANGE_MAPI_BRANCH/calendar/backends/mapi/ChangeLog
branches/EXCHANGE_MAPI_BRANCH/calendar/backends/mapi/e-cal-backend-mapi.c
branches/EXCHANGE_MAPI_BRANCH/calendar/libecal/e-cal-util.h
branches/EXCHANGE_MAPI_BRANCH/calendar/libecal/e-cal.c
Modified: branches/EXCHANGE_MAPI_BRANCH/calendar/backends/mapi/e-cal-backend-mapi.c
==============================================================================
--- branches/EXCHANGE_MAPI_BRANCH/calendar/backends/mapi/e-cal-backend-mapi.c (original)
+++ branches/EXCHANGE_MAPI_BRANCH/calendar/backends/mapi/e-cal-backend-mapi.c Fri Jul 18 10:59:46 2008
@@ -33,7 +33,6 @@
#include <exchange-mapi-connection.h>
#include <exchange-mapi-cal-utils.h>
-#include <exchange-mapi-folder.h>
#include <exchange-mapi-utils.h>
#define d(x) x
@@ -295,6 +294,7 @@
// CAL_STATIC_CAPABILITY_NO_TRANSPARENCY ","
// CAL_STATIC_CAPABILITY_ORGANIZER_MUST_ATTEND ","
// CAL_STATIC_CAPABILITY_ORGANIZER_NOT_EMAIL_ADDRESS ","
+ CAL_STATIC_CAPABILITY_CREATE_MESSAGES ","
// CAL_STATIC_CAPABILITY_SAVE_SCHEDULES ","
CAL_STATIC_CAPABILITY_NO_CONV_TO_ASSIGN_TASK ","
CAL_STATIC_CAPABILITY_NO_CONV_TO_RECUR ","
@@ -1674,7 +1674,7 @@
}
}
/* We need another static capability to say the backend has already sent the requests. */
-#if 0
+
if (status == GNOME_Evolution_Calendar_Success) {
ECalComponent *comp;
@@ -1695,7 +1695,7 @@
}
*modified_calobj = g_strdup (calobj);
}
-#endif
+
icalcomponent_free (icalcomp);
return GNOME_Evolution_Calendar_Success;
Modified: branches/EXCHANGE_MAPI_BRANCH/calendar/libecal/e-cal-util.h
==============================================================================
--- branches/EXCHANGE_MAPI_BRANCH/calendar/libecal/e-cal-util.h (original)
+++ branches/EXCHANGE_MAPI_BRANCH/calendar/libecal/e-cal-util.h Fri Jul 18 10:59:46 2008
@@ -115,6 +115,7 @@
#define CAL_STATIC_CAPABILITY_ORGANIZER_MUST_ATTEND "organizer-must-attend"
#define CAL_STATIC_CAPABILITY_ORGANIZER_NOT_EMAIL_ADDRESS "organizer-not-email-address"
#define CAL_STATIC_CAPABILITY_REMOVE_ALARMS "remove-alarms"
+#define CAL_STATIC_CAPABILITY_CREATE_MESSAGES "create-messages"
#define CAL_STATIC_CAPABILITY_SAVE_SCHEDULES "save-schedules"
#define CAL_STATIC_CAPABILITY_NO_CONV_TO_ASSIGN_TASK "no-conv-to-assign-task"
#define CAL_STATIC_CAPABILITY_NO_CONV_TO_RECUR "no-conv-to-recur"
Modified: branches/EXCHANGE_MAPI_BRANCH/calendar/libecal/e-cal.c
==============================================================================
--- branches/EXCHANGE_MAPI_BRANCH/calendar/libecal/e-cal.c (original)
+++ branches/EXCHANGE_MAPI_BRANCH/calendar/libecal/e-cal.c Fri Jul 18 10:59:46 2008
@@ -2540,6 +2540,24 @@
}
/**
+ * e_cal_get_create_messages:
+ * @ecal: A calendar client.
+ *
+ * Checks whether the calendar creates messages.
+ *
+ * Return value: TRUE if calendar creates meeting/task related messages,
+ * FALSE otherwise.
+ */
+gboolean
+e_cal_get_create_messages (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_CREATE_MESSAGES);
+}
+
+/**
* e_cal_get_save_schedules:
* @ecal: A calendar client.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]