1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
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.
22 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
23 #error "Only <camel/camel.h> can be included directly."
26 #ifndef CAMEL_STREAM_FILTER_H
27 #define CAMEL_STREAM_FILTER_H
29 #include <camel/camel-stream.h>
30 #include <camel/camel-mime-filter.h>
32 /* Standard GObject macros */
33 #define CAMEL_TYPE_STREAM_FILTER \
34 (camel_stream_filter_get_type ())
35 #define CAMEL_STREAM_FILTER(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST \
37 ((obj), CAMEL_TYPE_STREAM_FILTER, CamelStreamFilter))
38 #define CAMEL_STREAM_FILTER_CLASS(cls) \
39 (G_TYPE_CHECK_CLASS_CAST \
40 ((cls), CAMEL_TYPE_STREAM_FILTER, CamelStreamFilterClass))
41 #define CAMEL_IS_STREAM_FILTER(obj) \
42 (G_TYPE_CHECK_INSTANCE_TYPE \
43 ((obj), CAMEL_TYPE_STREAM_FILTER))
44 #define CAMEL_IS_STREAM_FILTER_CLASS(cls) \
45 (G_TYPE_CHECK_CLASS_TYPE \
46 ((cls), CAMEL_TYPE_STREAM_FILTER))
47 #define CAMEL_STREAM_FILTER_GET_CLASS(obj) \
48 (G_TYPE_INSTANCE_GET_CLASS \
49 ((obj), CAMEL_TYPE_STREAM_FILTER, CamelStreamFilterClass))
53 typedef struct _CamelStreamFilter CamelStreamFilter;
54 typedef struct _CamelStreamFilterClass CamelStreamFilterClass;
55 typedef struct _CamelStreamFilterPrivate CamelStreamFilterPrivate;
57 struct _CamelStreamFilter {
59 CamelStreamFilterPrivate *priv;
62 struct _CamelStreamFilterClass {
63 CamelStreamClass parent_class;
66 GType camel_stream_filter_get_type (void);
67 CamelStream * camel_stream_filter_new (CamelStream *source);
68 CamelStream * camel_stream_filter_get_source (CamelStreamFilter *stream);
69 gint camel_stream_filter_add (CamelStreamFilter *stream,
70 CamelMimeFilter *filter);
71 void camel_stream_filter_remove (CamelStreamFilter *stream,
76 #endif /* CAMEL_STREAM_FILTER_H */