1 /*
2  * e-mail-formatter-quote.h
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11  * for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program; if not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17 
18 #ifndef E_MAIL_FORMATTER_QUOTE_H
19 #define E_MAIL_FORMATTER_QUOTE_H
20 
21 #include <em-format/e-mail-formatter.h>
22 #include <em-format/e-mail-formatter-extension.h>
23 
24 /* Standard GObject macros */
25 #define E_TYPE_MAIL_FORMATTER_QUOTE \
26 	(e_mail_formatter_quote_get_type ())
27 #define E_MAIL_FORMATTER_QUOTE(obj) \
28 	(G_TYPE_CHECK_INSTANCE_CAST \
29 	((obj), E_TYPE_MAIL_FORMATTER_QUOTE, EMailFormatterQuote))
30 #define E_MAIL_FORMATTER_QUOTE_CLASS(cls) \
31 	(G_TYPE_CHECK_CLASS_CAST \
32 	((cls), E_TYPE_MAIL_FORMATTER_QUOTE, EMailFormatterQuoteClass))
33 #define E_IS_MAIL_FORMATTER_QUOTE(obj) \
34 	(G_TYPE_CHECK_INSTANCE_TYPE \
35 	((obj), E_TYPE_MAIL_FORMATTER_QUOTE))
36 #define E_IS_MAIL_FORMATTER_QUOTE_CLASS(cls) \
37 	(G_TYPE_CHECK_CLASS_TYPE \
38 	((cls), E_TYPE_MAIL_FORMATTER_QUOTE))
39 #define E_MAIL_FORMATTER_QUOTE_GET_CLASS(obj) \
40 	(G_TYPE_INSTANCE_GET_CLASS \
41 	((obj), E_TYPE_MAIL_FORMATTER_QUOTE, EMailFormatterQuoteClass))
42 
43 G_BEGIN_DECLS;
44 
45 typedef struct _EMailFormatterQuote EMailFormatterQuote;
46 typedef struct _EMailFormatterQuoteClass EMailFormatterQuoteClass;
47 typedef struct _EMailFormatterQuotePrivate EMailFormatterQuotePrivate;
48 typedef struct _EMailFormatterQuoteContext EMailFormatterQuoteContext;
49 
50 struct _EMailFormatterQuoteContext {
51 	EMailFormatterContext parent;
52 
53 	guint32 qf_flags;
54 };
55 
56 struct _EMailFormatterQuote {
57 	EMailFormatter parent;
58 	EMailFormatterQuotePrivate *priv;
59 };
60 
61 struct _EMailFormatterQuoteClass {
62 	EMailFormatterClass parent_class;
63 };
64 
65 GType		e_mail_formatter_quote_get_type	(void) G_GNUC_CONST;
66 EMailFormatter *
67 		e_mail_formatter_quote_new	(const gchar *credits,
68 						 EMailFormatterQuoteFlags flags);
69 
70 G_END_DECLS
71 
72 /* ------------------------------------------------------------------------- */
73 
74 /* Standard GObject macros */
75 #define E_TYPE_MAIL_FORMATTER_QUOTE_EXTENSION \
76 	(e_mail_formatter_quote_extension_get_type ())
77 
78 G_BEGIN_DECLS
79 
80 /**
81  * EMailFormatterQuoteExtension:
82  *
83  * This is an abstract base type for formatter extensions which are
84  * intended only for use by #EMailFormatterQuote.
85  **/
86 typedef struct _EMailFormatterQuoteExtension EMailFormatterQuoteExtension;
87 typedef struct _EMailFormatterQuoteExtensionClass EMailFormatterQuoteExtensionClass;
88 
89 struct _EMailFormatterQuoteExtension {
90 	EMailFormatterExtension parent;
91 };
92 
93 struct _EMailFormatterQuoteExtensionClass {
94 	EMailFormatterExtensionClass parent_class;
95 };
96 
97 GType		e_mail_formatter_quote_extension_get_type
98 						(void) G_GNUC_CONST;
99 
100 G_END_DECLS
101 
102 #endif /* E_MAIL_FORMATTER_QUOTE_H */
103