From ed19e01a4c6f9d774a40b56e4f6cc71209c06689 Mon Sep 17 00:00:00 2001 From: Philip Van Hoof Date: Mon, 20 Dec 2004 12:47:51 +0000 Subject: Code splitup, each format has it's own c-file Added. Code splitup Added. 2004-12-20 Philip Van Hoof * Makefile.am: Code splitup, each format has it's own c-file * csv-format.c: Added. Code splitup * format-handler.h: Added. Code splitup * ical-format.c: Added. Code splitup * rdf-format.c: Added. Support for RDF files. Code splitup * save-calendar.c: Support for RDF files. Code splitup svn path=/trunk/; revision=28154 --- plugins/save-calendar/format-handler.h | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 plugins/save-calendar/format-handler.h (limited to 'plugins/save-calendar/format-handler.h') diff --git a/plugins/save-calendar/format-handler.h b/plugins/save-calendar/format-handler.h new file mode 100644 index 0000000000..9ff29a118d --- /dev/null +++ b/plugins/save-calendar/format-handler.h @@ -0,0 +1,49 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- + * + * Authors: Philip Van Hoof + * + * Copyright 2004 Novell, Inc. (www.novell.com) + * + * 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 Street #330, Boston, MA 02111-1307, USA. + * + */ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include +#include +#include +#include +#include + +typedef struct _FormatHandler FormatHandler; + +struct _FormatHandler +{ + gboolean isdefault; + const gchar *combo_label; + const gchar *filename_ext; + GtkWidget *options_widget; + + gpointer data; + + void (*save) (FormatHandler *handler, EPlugin *ep, ECalPopupTargetSource *target, ECalSourceType type, char *dest_uri); +}; + +FormatHandler *csv_format_handler_new (void); +FormatHandler *ical_format_handler_new (void); +FormatHandler *rdf_format_handler_new (void); -- cgit v1.2.3