From: Art Cancro Date: Sun, 29 Sep 2002 21:36:47 +0000 (+0000) Subject: * ugly icon (won't be ugly with background) X-Git-Tag: v7.86~6203 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=42febff4f314d9c0fac37162b557e5bdb3931fe2;p=citadel.git * ugly icon (won't be ugly with background) --- diff --git a/webcit/calendar.c b/webcit/calendar.c index 283043842..a18d6b908 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -67,144 +67,22 @@ void display_task(long msgnum) { -/* - * Process a single calendar component. - * It won't be a compound component at this point because those have - * already been broken down by cal_process_object(). - */ -void cal_process_subcomponent(icalcomponent *cal) { - wprintf("cal_process_subcomponent() called
\n"); - wprintf("cal_process_subcomponent() exiting
\n"); -} - - - - - /* * Process a calendar object * ...at this point it's already been deserialized by cal_process_attachment() */ void cal_process_object(icalcomponent *cal) { icalcomponent *c; - int num_subcomponents = 0; - - wprintf("cal_process_object() called
\n"); /* Iterate through all subcomponents */ wprintf("Iterating through all sub-components
\n"); for (c = icalcomponent_get_first_component(cal, ICAL_ANY_COMPONENT); (c != 0); c = icalcomponent_get_next_component(cal, ICAL_ANY_COMPONENT)) { - cal_process_subcomponent(c); - ++num_subcomponents; - } - - /* Iterate through all subcomponents */ - wprintf("Iterating through VEVENTs
\n"); - for (c = icalcomponent_get_first_component(cal, ICAL_VEVENT_COMPONENT); - (c != 0); - c = icalcomponent_get_next_component(cal, ICAL_VEVENT_COMPONENT)) { - cal_process_subcomponent(c); - --num_subcomponents; - } - - /* Iterate through all subcomponents */ - wprintf("Iterating through VTODOs
\n"); - for (c = icalcomponent_get_first_component(cal, ICAL_VTODO_COMPONENT); - (c != 0); - c = icalcomponent_get_next_component(cal, ICAL_VTODO_COMPONENT)) { - cal_process_subcomponent(c); - --num_subcomponents; - } - - /* Iterate through all subcomponents */ - wprintf("Iterating through VJOURNALs
\n"); - for (c = icalcomponent_get_first_component(cal, ICAL_VJOURNAL_COMPONENT); - (c != 0); - c = icalcomponent_get_next_component(cal, ICAL_VJOURNAL_COMPONENT)) { - cal_process_subcomponent(c); - --num_subcomponents; - } - - /* Iterate through all subcomponents */ - wprintf("Iterating through VCALENDARs
\n"); - for (c = icalcomponent_get_first_component(cal, ICAL_VCALENDAR_COMPONENT); - (c != 0); - c = icalcomponent_get_next_component(cal, ICAL_VCALENDAR_COMPONENT)) { - cal_process_subcomponent(c); - --num_subcomponents; - } - - /* Iterate through all subcomponents */ - wprintf("Iterating through VFREEBUSYs
\n"); - for (c = icalcomponent_get_first_component(cal, ICAL_VFREEBUSY_COMPONENT); - (c != 0); - c = icalcomponent_get_next_component(cal, ICAL_VFREEBUSY_COMPONENT)) { - cal_process_subcomponent(c); - --num_subcomponents; - } - - /* Iterate through all subcomponents */ - wprintf("Iterating through VALARMs
\n"); - for (c = icalcomponent_get_first_component(cal, ICAL_VALARM_COMPONENT); - (c != 0); - c = icalcomponent_get_next_component(cal, ICAL_VALARM_COMPONENT)) { - cal_process_subcomponent(c); - --num_subcomponents; - } - - /* Iterate through all subcomponents */ - wprintf("Iterating through VTIMEZONEs
\n"); - for (c = icalcomponent_get_first_component(cal, ICAL_VTIMEZONE_COMPONENT); - (c != 0); - c = icalcomponent_get_next_component(cal, ICAL_VTIMEZONE_COMPONENT)) { - cal_process_subcomponent(c); - --num_subcomponents; - } - - /* Iterate through all subcomponents */ - wprintf("Iterating through VSCHEDULEs
\n"); - for (c = icalcomponent_get_first_component(cal, ICAL_VSCHEDULE_COMPONENT); - (c != 0); - c = icalcomponent_get_next_component(cal, ICAL_VSCHEDULE_COMPONENT)) { - cal_process_subcomponent(c); - --num_subcomponents; - } - - /* Iterate through all subcomponents */ - wprintf("Iterating through VQUERYs
\n"); - for (c = icalcomponent_get_first_component(cal, ICAL_VQUERY_COMPONENT); - (c != 0); - c = icalcomponent_get_next_component(cal, ICAL_VQUERY_COMPONENT)) { - cal_process_subcomponent(c); - --num_subcomponents; - } - - /* Iterate through all subcomponents */ - wprintf("Iterating through VCARs
\n"); - for (c = icalcomponent_get_first_component(cal, ICAL_VCAR_COMPONENT); - (c != 0); - c = icalcomponent_get_next_component(cal, ICAL_VCAR_COMPONENT)) { - cal_process_subcomponent(c); - --num_subcomponents; - } - - /* Iterate through all subcomponents */ - wprintf("Iterating through VCOMMANDs
\n"); - for (c = icalcomponent_get_first_component(cal, ICAL_VCOMMAND_COMPONENT); - (c != 0); - c = icalcomponent_get_next_component(cal, ICAL_VCOMMAND_COMPONENT)) { - cal_process_subcomponent(c); - --num_subcomponents; - } - - if (num_subcomponents != 0) { - wprintf("Warning: %d subcomponents unhandled
\n", - num_subcomponents); + /* Recursively process subcomponent */ + cal_process_object(c); } - wprintf("cal_process_object() exiting
\n"); } diff --git a/webcit/event.c b/webcit/event.c index 1411b5e7c..b21ac75cd 100644 --- a/webcit/event.c +++ b/webcit/event.c @@ -53,6 +53,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum) output_headers(3); wprintf("
" + "" "Edit event" "

\n" diff --git a/webcit/static/vcalendar.gif b/webcit/static/vcalendar.gif new file mode 100644 index 000000000..5fd652119 Binary files /dev/null and b/webcit/static/vcalendar.gif differ