From 83cbc862e6981bd06b406a0ae01e50d15a3502e7 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 2 Aug 2000 22:15:22 +0000 Subject: New files for the iCalendar file backend. 2000-08-02 Federico Mena Quintero * pcs/cal-backend-file.[ch]: New files for the iCalendar file backend. * pcs/Makefile.am (libpcs_a_SOURCES): Added cal-backend-file.[ch]. * cal-util/cal-component.c (cal_component_set_icalcomponent): Return an operation success code for if we are passed a component of a type we don't support. svn path=/trunk/; revision=4479 --- calendar/pcs/cal-backend-file.h | 62 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 calendar/pcs/cal-backend-file.h (limited to 'calendar/pcs/cal-backend-file.h') diff --git a/calendar/pcs/cal-backend-file.h b/calendar/pcs/cal-backend-file.h new file mode 100644 index 0000000000..376790751c --- /dev/null +++ b/calendar/pcs/cal-backend-file.h @@ -0,0 +1,62 @@ +/* Evolution calendar - iCalendar file backend + * + * 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_BACKEND_FILE_H +#define CAL_BACKEND_FILE_H + +#include +#include "cal-backend.h" + +BEGIN_GNOME_DECLS + + + +#define CAL_BACKEND_FILE_TYPE (cal_backend_file_get_type ()) +#define CAL_BACKEND_FILE(obj) (GTK_CHECK_CAST ((obj), CAL_BACKEND_FILE_TYPE, \ + CalBackendFile)) +#define CAL_BACKEND_FILE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), CAL_BACKEND_FILE_TYPE, \ + CalBackendFileClass)) +#define IS_CAL_BACKEND_FILE(obj) (GTK_CHECK_TYPE ((obj), CAL_BACKEND_FILE_TYPE)) +#define IS_CAL_BACKEND_FILE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), CAL_BACKEND_FILE_TYPE)) + +typedef struct _CalBackendFile CalBackendFile; +typedef struct _CalBackendFileClass CalBackendFileClass; + +typedef struct _CalBackendFilePrivate CalBackendFilePrivate; + +struct _CalBackendFile { + CalBackend backend; + + /* Private data */ + CalBackendFilePrivate *priv; +}; + +struct _CalBackendFileClass { + CalBackendClass parent_class; +}; + +GtkType cal_backend_file_get_type (void); + + + +END_GNOME_DECLS + +#endif -- cgit