Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / camel-mime-filter-crlf.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: Dan Winship <danw@ximian.com>
6  *           Jeffrey Stedfast <fejj@ximian.com>
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of version 2 of the GNU Lesser General Public
10  * License as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this program; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22
23
24 #ifndef _CAMEL_MIME_FILTER_CRLF_H
25 #define _CAMEL_MIME_FILTER_CRLF_H
26
27 #include <camel/camel-mime-filter.h>
28
29 #define CAMEL_MIME_FILTER_CRLF_TYPE         (camel_mime_filter_crlf_get_type ())
30 #define CAMEL_MIME_FILTER_CRLF(obj)         CAMEL_CHECK_CAST (obj, CAMEL_MIME_FILTER_CRLF_TYPE, CamelMimeFilterCRLF)
31 #define CAMEL_MIME_FILTER_CRLF_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, CAMEL_MIME_FILTER_CRLF_TYPE, CamelMimeFilterCRLFClass)
32 #define CAMEL_IS_MIME_FILTER_CRLF(obj)      CAMEL_CHECK_TYPE (obj, CAMEL_MIME_FILTER_CRLF_TYPE)
33
34 G_BEGIN_DECLS
35
36 typedef struct _CamelMimeFilterCRLFClass CamelMimeFilterCRLFClass;
37
38 typedef enum {
39         CAMEL_MIME_FILTER_CRLF_ENCODE,
40         CAMEL_MIME_FILTER_CRLF_DECODE
41 } CamelMimeFilterCRLFDirection;
42
43 typedef enum {
44         CAMEL_MIME_FILTER_CRLF_MODE_CRLF_DOTS,
45         CAMEL_MIME_FILTER_CRLF_MODE_CRLF_ONLY,
46 } CamelMimeFilterCRLFMode;
47
48 struct _CamelMimeFilterCRLF {
49         CamelMimeFilter parent;
50
51         CamelMimeFilterCRLFDirection direction;
52         CamelMimeFilterCRLFMode mode;
53         gboolean saw_cr;
54         gboolean saw_lf;
55         gboolean saw_dot;
56 };
57
58 struct _CamelMimeFilterCRLFClass {
59         CamelMimeFilterClass parent_class;
60 };
61
62 CamelType camel_mime_filter_crlf_get_type (void);
63
64 CamelMimeFilter *camel_mime_filter_crlf_new (CamelMimeFilterCRLFDirection direction, CamelMimeFilterCRLFMode mode);
65
66 G_END_DECLS
67
68 #endif /* ! _CAMEL_MIME_FILTER_CRLF_H */