Enable GUI option for 'custom command' connection. Don't g_free strings in
[platform/upstream/evolution-data-server.git] / camel / camel-stream-filter.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  *  Copyright (C) 2000 Ximian Inc.
4  *
5  *  Authors: Michael Zucchi <notzed@ximian.com>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of version 2 of the GNU General Public
9  * License as published by the Free Software Foundation.
10  *
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.
15  *
16  * You should have received a copy of the GNU General Public
17  * License along with this program; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22
23 #ifndef _CAMEL_STREAM_FILTER_H
24 #define _CAMEL_STREAM_FILTER_H
25
26 #ifdef __cplusplus
27 extern "C" {
28 #pragma }
29 #endif /* __cplusplus */
30
31 #include <camel/camel-stream.h>
32 #include <camel/camel-mime-filter.h>
33
34 #define CAMEL_STREAM_FILTER(obj)         CAMEL_CHECK_CAST (obj, camel_stream_filter_get_type (), CamelStreamFilter)
35 #define CAMEL_STREAM_FILTER_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_stream_filter_get_type (), CamelStreamFilterClass)
36 #define CAMEL_IS_STREAM_FILTER(obj)      CAMEL_CHECK_TYPE (obj, camel_stream_filter_get_type ())
37
38 typedef struct _CamelStreamFilterClass CamelStreamFilterClass;
39
40 struct _CamelStreamFilter {
41         CamelStream parent;
42
43         CamelStream *source;
44
45         struct _CamelStreamFilterPrivate *priv;
46 };
47
48 struct _CamelStreamFilterClass {
49         CamelStreamClass parent_class;
50 };
51
52 CamelType                       camel_stream_filter_get_type    (void);
53
54 CamelStreamFilter      *camel_stream_filter_new_with_stream     (CamelStream *stream);
55
56 int camel_stream_filter_add     (CamelStreamFilter *filter, CamelMimeFilter *);
57 void camel_stream_filter_remove (CamelStreamFilter *filter, int id);
58
59 #ifdef __cplusplus
60 }
61 #endif /* __cplusplus */
62
63 #endif /* ! _CAMEL_STREAM_FILTER_H */