From bd4e64bd780fc0e39832f5c5abf1a15522fa6076 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 19 Jan 2000 03:32:45 +0000 Subject: Moved the calendar backend here. This is the actual calendar-handling 2000-01-18 Federico Mena Quintero * cal-backend.c cal-backend.h: Moved the calendar backend here. This is the actual calendar-handling object. (load_from_vobject): Moved over from calendar.c. Modified to use a CalBackend instead of the old Calendar structure. (add_object): Likewise. * cal.c: Now the Cal object is just a calendar client interface object; we use it as a "viewport" onto a CalBackend. This also lets us do correct resource management. * cal-common.h: New file with common forward declarations; we can't have circular dependencies between headers. 2000-01-18 Federico Mena Quintero * cal-factory.c (cal_factory_load): Queue a load job. (load_fn): Load job handler. Lookup the calendar by URI, load it if it is not loaded, or just report it to the new listener if it is. * job.c job.h: New files with a simple job queue manager. * gnome-calendar.idl (Listener::cal_loaded): Do not return the whole calendar object string. The client will be able to query the calendar for the events it needs. * cal-listener.c (Listener_cal_loaded): Ref the calendar GNOME object. We unref it when the listener is destroyed. 2000-01-17 Federico Mena Quintero The files from the gncal directory of the gnome-pim module on CVS were moved here, to evolution/calendar, in preparation for the Evolution work. The calendar is being split into a model/view architecture. The model is a personal calendar server (PAS): it provides storage, notification, and event generation; the views/controllers are the calendar user agents and things like Pilot synchronizers. svn path=/trunk/; revision=1591 --- calendar/pcs/cal-common.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 calendar/pcs/cal-common.h (limited to 'calendar/pcs/cal-common.h') diff --git a/calendar/pcs/cal-common.h b/calendar/pcs/cal-common.h new file mode 100644 index 0000000000..4177dbb096 --- /dev/null +++ b/calendar/pcs/cal-common.h @@ -0,0 +1,41 @@ +/* GNOME calendar server - common declarations + * + * Copyright (C) 2000 Helix Code, Inc. + * + * Author: Federico Mena-Quintero + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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. + */ + +#ifndef CAL_COMMON_H +#define CAL_COMMON_H + +#include + +BEGIN_GNOME_DECLS + + + +typedef struct _CalBackend CalBackend; +typedef struct _CalBackendClass CalBackendClass; + +typedef struct _Cal Cal; +typedef struct _CalClass CalClass; + + + +END_GNOME_DECLS + +#endif -- cgit v1.2.3