1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2000 Ximian Inc.
5 * Authors: Michael Zucchi <notzed@ximian.com>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of version 2 of the GNU Lesser General Public
9 * License as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
23 #ifndef _CAMEL_STREAM_FILTER_H
24 #define _CAMEL_STREAM_FILTER_H
26 #include <camel/camel-stream.h>
27 #include <camel/camel-mime-filter.h>
29 #define CAMEL_STREAM_FILTER(obj) CAMEL_CHECK_CAST (obj, camel_stream_filter_get_type (), CamelStreamFilter)
30 #define CAMEL_STREAM_FILTER_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_stream_filter_get_type (), CamelStreamFilterClass)
31 #define CAMEL_IS_STREAM_FILTER(obj) CAMEL_CHECK_TYPE (obj, camel_stream_filter_get_type ())
35 typedef struct _CamelStreamFilterClass CamelStreamFilterClass;
37 struct _CamelStreamFilter {
42 struct _CamelStreamFilterPrivate *priv;
45 struct _CamelStreamFilterClass {
46 CamelStreamClass parent_class;
49 CamelType camel_stream_filter_get_type (void);
51 CamelStreamFilter *camel_stream_filter_new_with_stream (CamelStream *stream);
53 int camel_stream_filter_add (CamelStreamFilter *stream, CamelMimeFilter *filter);
54 void camel_stream_filter_remove (CamelStreamFilter *stream, int id);
58 #endif /* ! _CAMEL_STREAM_FILTER_H */