Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / camel-mime-filter-basic.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  *  Copyright (C) 2000-2003 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 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 #ifndef _CAMEL_MIME_FILTER_BASIC_H
23 #define _CAMEL_MIME_FILTER_BASIC_H
24
25 #include <camel/camel-mime-filter.h>
26
27 #define CAMEL_MIME_FILTER_BASIC(obj)         CAMEL_CHECK_CAST (obj, camel_mime_filter_basic_get_type (), CamelMimeFilterBasic)
28 #define CAMEL_MIME_FILTER_BASIC_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_mime_filter_basic_get_type (), CamelMimeFilterBasicClass)
29 #define CAMEL_IS_MIME_FILTER_BASIC(obj)      CAMEL_CHECK_TYPE (obj, camel_mime_filter_basic_get_type ())
30
31 G_BEGIN_DECLS
32
33 typedef struct _CamelMimeFilterBasicClass CamelMimeFilterBasicClass;
34
35 typedef enum {
36         CAMEL_MIME_FILTER_BASIC_BASE64_ENC = 1,
37         CAMEL_MIME_FILTER_BASIC_BASE64_DEC,
38         CAMEL_MIME_FILTER_BASIC_QP_ENC,
39         CAMEL_MIME_FILTER_BASIC_QP_DEC,
40         CAMEL_MIME_FILTER_BASIC_UU_ENC,
41         CAMEL_MIME_FILTER_BASIC_UU_DEC,
42 } CamelMimeFilterBasicType;
43
44 struct _CamelMimeFilterBasic {
45         CamelMimeFilter parent;
46
47         struct _CamelMimeFilterBasicPrivate *priv;
48
49         CamelMimeFilterBasicType type;
50         
51         unsigned char uubuf[60];
52         int state;
53         int save;
54 };
55
56 struct _CamelMimeFilterBasicClass {
57         CamelMimeFilterClass parent_class;
58 };
59
60 CamelType               camel_mime_filter_basic_get_type        (void);
61 CamelMimeFilterBasic      *camel_mime_filter_basic_new  (void);
62 CamelMimeFilterBasic      *camel_mime_filter_basic_new_type     (CamelMimeFilterBasicType type);
63
64 G_END_DECLS
65
66 #endif /* ! _CAMEL_MIME_FILTER_BASIC_H */