2 * Copyright © 2009 Keith Packard <keithp@keithp.com>
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.
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.
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.
19 #ifndef _GMIME_FILTER_REPLY_H_
20 #define _GMIME_FILTER_REPLY_H_
22 #include <gmime/gmime-filter.h>
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))
33 typedef struct _GMimeFilterReply GMimeFilterReply;
34 typedef struct _GMimeFilterReplyClass GMimeFilterReplyClass;
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 >
43 * A filter to insert/remove reply markers (lines beginning with >)
45 struct _GMimeFilterReply {
46 GMimeFilter parent_object;
53 struct _GMimeFilterReplyClass {
54 GMimeFilterClass parent_class;
59 GType g_mime_filter_reply_get_type (void);
61 GMimeFilter *g_mime_filter_reply_new (gboolean encode);
66 #endif /* _GMIME_FILTER_REPLY_H_ */