4 * Check attendee availability for scheduling a meeting.
14 #include <sys/types.h>
16 #include <sys/socket.h>
18 #include <netinet/in.h>
28 #include "webserver.h"
31 #ifdef WEBCIT_WITH_CALENDAR_SERVICE
34 * Display an event by itself (for editing)
36 void check_attendee_availability(icalcomponent *vevent) {
37 icalproperty *attendee = NULL;
38 char attendee_string[SIZ];
44 /* If we're looking at a fully encapsulated VCALENDAR
45 * rather than a VEVENT component, attempt to use the first
46 * relevant VEVENT subcomponent. If there is none, the
47 * NULL returned by icalcomponent_get_first_component() will
48 * tell the next iteration of this function to create a
51 if (icalcomponent_isa(vevent) == ICAL_VCALENDAR_COMPONENT) {
52 check_attendee_availability(
53 icalcomponent_get_first_component(
54 vevent, ICAL_VEVENT_COMPONENT
62 * Iterate through attendees. FIXME do something useful.
64 for (attendee = icalcomponent_get_first_property(vevent, ICAL_ATTENDEE_PROPERTY);
66 attendee = icalcomponent_get_next_property(vevent, ICAL_ATTENDEE_PROPERTY)) {
68 strcpy(attendee_string, icalproperty_get_attendee(attendee));
69 if (!strncasecmp(attendee_string, "MAILTO:", 7)) {
71 /* screen name or email address */
72 strcpy(attendee_string, &attendee_string[7]);
73 striplt(attendee_string);
75 /* FIXME do something with attendee_string */
76 lprintf(9, "FIXME with <%s>\n", attendee_string);
79 partstat_as_string(buf, attendee); */
86 #endif /* WEBCIT_WITH_CALENDAR_SERVICE */