CLI: rename notmuch_config_t to notmuch_conffile_t
[notmuch] / gmime-filter-reply.h
1 /*
2  * Copyright © 2009 Keith Packard <keithp@keithp.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
17  */
18
19 #ifndef _GMIME_FILTER_REPLY_H_
20 #define _GMIME_FILTER_REPLY_H_
21
22 #include <gmime/gmime-filter.h>
23
24 G_BEGIN_DECLS
25
26 #define GMIME_TYPE_FILTER_REPLY            (g_mime_filter_reply_get_type ())
27 #define GMIME_FILTER_REPLY(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
28                                                                         GMIME_TYPE_FILTER_REPLY, \
29                                                                         GMimeFilterReply))
30 #define GMIME_FILTER_REPLY_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GMIME_TYPE_FILTER_REPLY, \
31                                                                      GMimeFilterReplyClass))
32 #define GMIME_IS_FILTER_REPLY(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
33                                                                         GMIME_TYPE_FILTER_REPLY))
34 #define GMIME_IS_FILTER_REPLY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
35                                                                      GMIME_TYPE_FILTER_REPLY))
36 #define GMIME_FILTER_REPLY_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GMIME_TYPE_FILTER_REPLY, \
37                                                                        GMimeFilterReplyClass))
38
39 typedef struct _GMimeFilterReply GMimeFilterReply;
40 typedef struct _GMimeFilterReplyClass GMimeFilterReplyClass;
41
42 /**
43  * GMimeFilterReply:
44  * @parent_object: parent #GMimeFilter
45  * @encode: encoding vs decoding reply markers
46  * @saw_nl: previous char was a \n
47  * @saw_angle: previous char was a >
48  *
49  * A filter to insert/remove reply markers (lines beginning with >)
50  **/
51 struct _GMimeFilterReply {
52     GMimeFilter parent_object;
53
54     gboolean encode;
55     gboolean saw_nl;
56     gboolean saw_angle;
57 };
58
59 struct _GMimeFilterReplyClass {
60     GMimeFilterClass parent_class;
61
62 };
63
64
65 GType g_mime_filter_reply_get_type (void);
66
67 GMimeFilter *g_mime_filter_reply_new (gboolean encode);
68
69 G_END_DECLS
70
71
72 #endif /* _GMIME_FILTER_REPLY_H_ */