[evolution-ews] Add attendee property to the freebusy ical component
- From: Or Goshen <ogosh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Add attendee property to the freebusy ical component
- Date: Thu, 30 Jun 2011 11:18:57 +0000 (UTC)
commit acccceddfd897d750cdabd8156cb9aa4f4545849
Author: Or Goshen <orx goshen intel com>
Date: Thu Jun 30 14:24:20 2011 +0300
Add attendee property to the freebusy ical component
src/calendar/e-cal-backend-ews.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index f330616..3850853 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -2794,7 +2794,7 @@ ews_cal_get_free_busy_cb (GObject *obj, GAsyncResult *res, gpointer user_data)
EEwsConnection *cnc = (EEwsConnection *)obj;
EwsFreeBusyData *free_busy_data = user_data;
GSList *free_busy_sl = NULL, *i;
- GList *free_busy = NULL;
+ GList *free_busy = NULL, *j;
GError *error = NULL;
if (!e_ews_connection_get_free_busy_finish (cnc, res, &free_busy_sl, &error)) {
@@ -2802,8 +2802,12 @@ ews_cal_get_free_busy_cb (GObject *obj, GAsyncResult *res, gpointer user_data)
goto done;
}
- for (i = free_busy_sl; i; i = i->next)
- free_busy = g_list_append (free_busy, i->data);
+ for (i = free_busy_sl, j = free_busy_data->users; i && j; i = i->next, j = j->next) {
+ /* add attendee property */
+ icalcomponent_add_property((icalcomponent *)i->data, icalproperty_new_attendee (j->data));
+
+ free_busy = g_list_append (free_busy, icalcomponent_as_ical_string_r (i->data));
+ }
g_slist_free (free_busy_sl);
done:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]