Extending test-client-custom-summary to try e_book_client_get_contacts_uids()
[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) 1999-2008 Novell, Inc. (www.novell.com)
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 Lesser 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 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.
20  */
21
22 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
23 #error "Only <camel/camel.h> can be included directly."
24 #endif
25
26 #ifndef CAMEL_STREAM_FILTER_H
27 #define CAMEL_STREAM_FILTER_H
28
29 #include <camel/camel-stream.h>
30 #include <camel/camel-mime-filter.h>
31
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))
50
51 G_BEGIN_DECLS
52
53 typedef struct _CamelStreamFilter CamelStreamFilter;
54 typedef struct _CamelStreamFilterClass CamelStreamFilterClass;
55 typedef struct _CamelStreamFilterPrivate CamelStreamFilterPrivate;
56
57 struct _CamelStreamFilter {
58         CamelStream parent;
59         CamelStreamFilterPrivate *priv;
60 };
61
62 struct _CamelStreamFilterClass {
63         CamelStreamClass parent_class;
64 };
65
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,
72                                                  gint id);
73
74 G_END_DECLS
75
76 #endif /* CAMEL_STREAM_FILTER_H */