Files
evolution/calendar/gui/migration.h
JP Rosevear c1f42ab2b0 update protos
2004-01-15  JP Rosevear <jpr@ximian.com>

	* 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
2004-01-15 17:15:19 +00:00

34 lines
1.2 KiB
C

/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* calendar-component.c
*
* Copyright (C) 2003 Ximian, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
* Author: Rodrigo Moya <rodrigo@ximian.com>
*/
#ifndef MIGRATION_H
#define MIGRATION_H
#include <libedataserver/e-source-group.h>
#include "calendar-component.h"
#include "tasks-component.h"
gboolean migrate_calendars (CalendarComponent *component, int major, int minor, int revision);
gboolean migrate_tasks (TasksComponent *component, int major, int minor, int revision);
#endif