1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2000 Ximian Inc.
5 * Authors: Dan Winship <danw@ximian.com>
6 * Jeffrey Stedfast <fejj@ximian.com>
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.
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.
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.
24 #ifndef _CAMEL_MIME_FILTER_CRLF_H
25 #define _CAMEL_MIME_FILTER_CRLF_H
27 #include <camel/camel-mime-filter.h>
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)
36 typedef struct _CamelMimeFilterCRLFClass CamelMimeFilterCRLFClass;
39 CAMEL_MIME_FILTER_CRLF_ENCODE,
40 CAMEL_MIME_FILTER_CRLF_DECODE
41 } CamelMimeFilterCRLFDirection;
44 CAMEL_MIME_FILTER_CRLF_MODE_CRLF_DOTS,
45 CAMEL_MIME_FILTER_CRLF_MODE_CRLF_ONLY,
46 } CamelMimeFilterCRLFMode;
48 struct _CamelMimeFilterCRLF {
49 CamelMimeFilter parent;
51 CamelMimeFilterCRLFDirection direction;
52 CamelMimeFilterCRLFMode mode;
58 struct _CamelMimeFilterCRLFClass {
59 CamelMimeFilterClass parent_class;
62 CamelType camel_mime_filter_crlf_get_type (void);
64 CamelMimeFilter *camel_mime_filter_crlf_new (CamelMimeFilterCRLFDirection direction, CamelMimeFilterCRLFMode mode);
68 #endif /* ! _CAMEL_MIME_FILTER_CRLF_H */