]> git.notmuchmail.org Git - notmuch/blob - gmime-filter-reply.h
update version to 0.23.7
[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), GMIME_TYPE_FILTER_REPLY, GMimeFilterReply))
28 #define GMIME_FILTER_REPLY_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GMIME_TYPE_FILTER_REPLY, GMimeFilterReplyClass))
29 #define GMIME_IS_FILTER_REPLY(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GMIME_TYPE_FILTER_REPLY))
30 #define GMIME_IS_FILTER_REPLY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GMIME_TYPE_FILTER_REPLY))
31 #define GMIME_FILTER_REPLY_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GMIME_TYPE_FILTER_REPLY, GMimeFilterReplyClass))
32
33 typedef struct _GMimeFilterReply GMimeFilterReply;
34 typedef struct _GMimeFilterReplyClass GMimeFilterReplyClass;
35
36 /**
37  * GMimeFilterReply:
38  * @parent_object: parent #GMimeFilter
39  * @encode: encoding vs decoding reply markers
40  * @saw_nl: previous char was a \n
41  * @saw_angle: previous char was a >
42  *
43  * A filter to insert/remove reply markers (lines beginning with >)
44  **/
45 struct _GMimeFilterReply {
46         GMimeFilter parent_object;
47
48         gboolean encode;
49         gboolean saw_nl;
50         gboolean saw_angle;
51 };
52
53 struct _GMimeFilterReplyClass {
54         GMimeFilterClass parent_class;
55
56 };
57
58
59 GType g_mime_filter_reply_get_type (void);
60
61 GMimeFilter *g_mime_filter_reply_new (gboolean encode);
62
63 G_END_DECLS
64
65
66 #endif /* _GMIME_FILTER_REPLY_H_ */