From bf5ad102a4af562b220c3f68360031294cf1e758 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Sat, 9 Feb 2002 01:03:32 +0000 Subject: added vCalendar importer and intelligent GnomeCalendar importer code here, 2002-02-08 Damon Chaplin * importers/icalendar-importer.c: added vCalendar importer and intelligent GnomeCalendar importer code here, as it shares a lot of code with the iCalendar importer. NOTE: check_folder_type() needs to be finished at some point. It needs a new shell Corba call so it can decide whether to import events or tasks into the folder. Currently it just imports both. * importers/main.c (importer_factory_fn): create vCalendar importer or GnomeCalendar importer if required. * importers/evolution-calendar-importer.h: added declarations for creating a vCalendar importer and intelligent Gnome Calendar importer. * importers/Makefile.am: added -DEVOLUTION_SOUNDDIR so the importer knows what filename to use for audio alarms in vCalendar files. Added libicalvcal-evolution to LDADD. * importers/GNOME_Evolution_Calendar_Importer.oaf.in: added vCalendar importer and intelligent Gnome Calendar importer. * gui/comp-util.c (cal_comp_util_compare_event_timezones): return TRUE if the event uses UTC. We don't want to flag all events from Outlook, which use UTC. svn path=/trunk/; revision=15628 --- calendar/importers/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'calendar/importers/main.c') diff --git a/calendar/importers/main.c b/calendar/importers/main.c index aaf4ced23a..f6d5788d93 100644 --- a/calendar/importers/main.c +++ b/calendar/importers/main.c @@ -24,10 +24,14 @@ #include #endif #include +#include +#include #include "evolution-calendar-importer.h" #define IMPORTER_FACTORY_ID "OAFIID:GNOME_Evolution_Calendar_ImporterFactory" #define ICALENDAR_IMPORTER_ID "OAFIID:GNOME_Evolution_Calendar_iCalendar_Importer" +#define VCALENDAR_IMPORTER_ID "OAFIID:GNOME_Evolution_Calendar_vCalendar_Importer" +#define GNOME_CALENDAR_IMPORTER_ID "OAFIID:GNOME_Evolution_Gnome_Calendar_Intelligent_Importer" static BonoboObject * importer_factory_fn (BonoboGenericFactory *factory, const char *id, void *closure) @@ -38,6 +42,10 @@ importer_factory_fn (BonoboGenericFactory *factory, const char *id, void *closur if (!strcmp (id, ICALENDAR_IMPORTER_ID)) object = ical_importer_new (); + else if (!strcmp (id, VCALENDAR_IMPORTER_ID)) + object = vcal_importer_new (); + else if (!strcmp (id, GNOME_CALENDAR_IMPORTER_ID)) + object = gnome_calendar_importer_new (); else g_warning ("Component not supporte by this factory"); -- cgit v1.2.3