From c1f42ab2b0820cd1b52dc75ab1e7dfdaae6d604c Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Thu, 15 Jan 2004 17:15:19 +0000 Subject: update protos 2004-01-15 JP Rosevear * gui/tasks-component.h: update protos * gui/tasks-component.c (impl_finalize): free base dir (impl_upgradeFromVersion): just call migrate_tasks (tasks_component_init): set base dir value (tasks_component_peek_base_directory): accessor (tasks_component_peek_source_list): ditto * gui/migration.c (process_old_dir): look for a source with the name and fallback to creating it (create_calendar_contact_source): create the contacts:// source (create_calendar_sources): use above and create all the necessary sources (create_task_sources): create all the necessary sources (migrate_calendars): do all the migration logic here, upgrade bonobo-conf to gconf (migrate_tasks): ditto * gui/calendar-component.h: update prototypes * gui/calendar-component.c (impl_finalize): free the base directory (impl_upgradeFromVersion): just call migrate_calendars (calendar_component_init): fill in base dir value (calendar_component_peek_base_directory): accessor (calendar_component_peek_source_list): ditto svn path=/trunk/; revision=24248 --- calendar/gui/migration.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'calendar/gui/migration.h') diff --git a/calendar/gui/migration.h b/calendar/gui/migration.h index b217ae97c8..b7047d0898 100644 --- a/calendar/gui/migration.h +++ b/calendar/gui/migration.h @@ -24,8 +24,10 @@ #define MIGRATION_H #include +#include "calendar-component.h" +#include "tasks-component.h" -gboolean migrate_old_calendars (ESourceGroup *source_group); -gboolean migrate_old_tasks (ESourceGroup *source_group); +gboolean migrate_calendars (CalendarComponent *component, int major, int minor, int revision); +gboolean migrate_tasks (TasksComponent *component, int major, int minor, int revision); #endif -- cgit v1.2.3