diff options
Diffstat (limited to 'camel/camel-mime-filter-save.h')
-rw-r--r-- | camel/camel-mime-filter-save.h | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/camel/camel-mime-filter-save.h b/camel/camel-mime-filter-save.h index 08a507a87d..f1e54eca5b 100644 --- a/camel/camel-mime-filter-save.h +++ b/camel/camel-mime-filter-save.h @@ -1,28 +1,33 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* - * Copyright (C) 2000 Ximian Inc. + * Authors: Jeffrey Stedfast <fejj@ximian.com> * - * Authors: Michael Zucchi <notzed@ximian.com> + * Copyright 2002 Ximian, Inc. (www.ximian.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 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. + * 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. * - * 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 _CAMEL_MIME_FILTER_SAVE_H -#define _CAMEL_MIME_FILTER_SAVE_H + +#ifndef __CAMEL_MIME_FILTER_SAVE_H__ +#define __CAMEL_MIME_FILTER_SAVE_H__ #include <camel/camel-mime-filter.h> +#include <camel/camel-seekable-stream.h> +#define CAMEL_MIME_FILTER_SAVE_TYPE (camel_mime_filter_save_get_type ()) #define CAMEL_MIME_FILTER_SAVE(obj) CAMEL_CHECK_CAST (obj, camel_mime_filter_save_get_type (), CamelMimeFilterSave) #define CAMEL_MIME_FILTER_SAVE_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_mime_filter_save_get_type (), CamelMimeFilterSaveClass) #define CAMEL_IS_MIME_FILTER_SAVE(obj) CAMEL_CHECK_TYPE (obj, camel_mime_filter_save_get_type ()) @@ -31,20 +36,17 @@ typedef struct _CamelMimeFilterSaveClass CamelMimeFilterSaveClass; struct _CamelMimeFilterSave { CamelMimeFilter parent; - - struct _CamelMimeFilterSavePrivate *priv; - - char *filename; - int fd; + + CamelStream *stream; }; struct _CamelMimeFilterSaveClass { CamelMimeFilterClass parent_class; }; -guint camel_mime_filter_save_get_type (void); -CamelMimeFilterSave *camel_mime_filter_save_new (void); +CamelType camel_mime_filter_save_get_type (void); -CamelMimeFilterSave *camel_mime_filter_save_new_name (const char *name, int flags, int mode); +CamelMimeFilter *camel_mime_filter_save_new (void); +CamelMimeFilter *camel_mime_filter_save_new_with_stream (CamelStream *stream); -#endif /* ! _CAMEL_MIME_FILTER_SAVE_H */ +#endif /* __CAMEL_MIME_FILTER_SAVE_H__ */ |