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 * This library is free software: you can redistribute it and/or modify it 6 * under the terms of the GNU Lesser General Public License as published by 7 * the Free Software Foundation. 8 * 9 * This library is distributed in the hope that it will be useful, but 10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License 12 * for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public License 15 * along with this library. If not, see <http://www.gnu.org/licenses/>. 16 * 17 * Authors: Jeffrey Stedfast <fejj@ximian.com> 18 * Michael Zucchi <notzed@ximian.com> 19 */ 20 21 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION) 22 #error "Only <camel/camel.h> can be included directly." 23 #endif 24 25 #ifndef CAMEL_MIME_FILTER_CANON_H 26 #define CAMEL_MIME_FILTER_CANON_H 27 28 #include <camel/camel-mime-filter.h> 29 30 /* Standard GObject macros */ 31 #define CAMEL_TYPE_MIME_FILTER_CANON \ 32 (camel_mime_filter_canon_get_type ()) 33 #define CAMEL_MIME_FILTER_CANON(obj) \ 34 (G_TYPE_CHECK_INSTANCE_CAST \ 35 ((obj), CAMEL_TYPE_MIME_FILTER_CANON, CamelMimeFilterCanon)) 36 #define CAMEL_MIME_FILTER_CANON_CLASS(cls) \ 37 (G_TYPE_CHECK_CLASS_CAST \ 38 ((cls), CAMEL_TYPE_MIME_FILTER_CANON, CamelMimeFilterCanonClass)) 39 #define CAMEL_IS_MIME_FILTER_CANON(obj) \ 40 (G_TYPE_CHECK_INSTANCE_TYPE \ 41 ((obj), CAMEL_TYPE_MIME_FILTER_CANON)) 42 #define CAMEL_IS_MIME_FILTER_CANON_CLASS(cls) \ 43 (G_TYPE_CHECK_CLASS_TYPE \ 44 ((cls), CAMEL_TYPE_MIME_FILTER_CANON)) 45 #define CAMEL_MIME_FILTER_CANON_GET_CLASS(obj) \ 46 (G_TYPE_INSTANCE_GET_CLASS \ 47 ((obj), CAMEL_TYPE_MIME_FILTER_CANON, CamelMimeFilterCanonClass)) 48 49 G_BEGIN_DECLS 50 51 typedef struct _CamelMimeFilterCanon CamelMimeFilterCanon; 52 typedef struct _CamelMimeFilterCanonClass CamelMimeFilterCanonClass; 53 typedef struct _CamelMimeFilterCanonPrivate CamelMimeFilterCanonPrivate; 54 55 typedef enum { 56 CAMEL_MIME_FILTER_CANON_CRLF = (1 << 0), /* canoncialise end of line to crlf, otherwise canonicalise to lf only */ 57 CAMEL_MIME_FILTER_CANON_FROM = (1 << 1), /* escape "^From " using quoted-printable semantics into "=46rom " */ 58 CAMEL_MIME_FILTER_CANON_STRIP = (1 << 2) /* strip trailing space */ 59 } CamelMimeFilterCanonFlags; 60 61 struct _CamelMimeFilterCanon { 62 CamelMimeFilter parent; 63 CamelMimeFilterCanonPrivate *priv; 64 }; 65 66 struct _CamelMimeFilterCanonClass { 67 CamelMimeFilterClass parent_class; 68 69 /* Padding for future expansion */ 70 gpointer reserved[20]; 71 }; 72 73 GType camel_mime_filter_canon_get_type (void); 74 CamelMimeFilter * 75 camel_mime_filter_canon_new (guint32 flags); 76 77 G_END_DECLS 78 79 #endif /* CAMEL_MIME_FILTER_CANON_H */ 80