From e49e9cc1755266dade86ce33662ceff466f5ca07 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Wed, 28 Jul 1999 08:41:12 +0000 Subject: New file. Implements PalmPilot syncronization with the Gnome Calendar. 1999-07-28 Miguel de Icaza * calendar-pilot-sync.c: New file. Implements PalmPilot syncronization with the Gnome Calendar. 1999-07-27 Miguel de Icaza * calobj.c (ical_object_new_from_string): New function. Creates an iCalObject from a vCalendar string that is supposed to contain only one vEvent. * calendar.c: (calendar_save): Split this routine in two. * gnome-cal.c (gnome_calendar_new): Create the corba server here. * main.c: Include gnorba.h, and corba-cal-factory.h here (close_cmd): Kill the calendar server on shutdown. * calobj.c (load_recur_yearly_day): Added a fixme comment. WE need to handle intervals in the years. * calendar.c (calendar_object_find_in_list, calendar_object_find, calendar_object_find_todo, calendar_object_find_event): New functions for looking up information. * main.c (gnome_calendar_locate): New function. * corba-cal.c (calendar_create_object): New file. Implements the corba server. * calendar.c (calendar_object_changed): Flag pilot-status as changed. * calobj.c (ical_object_to_vobject): Save pilot information for syncing. (ical_object_create_from_vobject): Load syncing information for pilot. Do it in a way compatible with KOrganizer. 1999-07-26 Miguel de Icaza * calobj.c (ical_object_create_from_vobject): Generate unique IDs on Vevents we load that lack it. WE need this for the old gnome calendar generated files (ie, before now :-). svn path=/trunk/; revision=1038 --- calendar/calendar.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'calendar/calendar.h') diff --git a/calendar/calendar.h b/calendar/calendar.h index 8dc0c517c3..2ea2753057 100644 --- a/calendar/calendar.h +++ b/calendar/calendar.h @@ -26,6 +26,8 @@ typedef struct { /* If the calendar was last modified */ int modified; void *temp; + + void *corba_server; } Calendar; /* This is only used by the calendar_get_events_in_range routine to get @@ -38,6 +40,9 @@ typedef struct { } CalendarObject; Calendar *calendar_new (char *title); +char *calendar_get_as_vcal_string (Calendar *cal); +char *calendar_string_from_object (iCalObject *object); + char *calendar_load (Calendar *cal, char *fname); void calendar_save (Calendar *cal, char *fname); void calendar_add_object (Calendar *cal, iCalObject *obj); @@ -63,6 +68,12 @@ void calendar_destroy_event_list (GList *l); void calendar_object_changed (Calendar *cal, iCalObject *obj, int flags); void calendar_notify (time_t time, CalendarAlarm *which, void *data); + +iCalObject *calendar_object_find_event (Calendar *cal, const char *uid); +iCalObject *calendar_object_find_todo (Calendar *cal, const char *uid); +iCalObject *calendar_object_find (Calendar *cal, const char *uid); +iCalObject *calendar_object_find_by_pilot (Calendar *cal, int pilot_id); + END_GNOME_DECLS #endif -- cgit v1.2.3