Extending test-client-custom-summary to try e_book_client_get_contacts_uids()
[platform/upstream/evolution-data-server.git] / camel / camel-mime-filter-linewrap.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  *  Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
4  *
5  *  Authors: Jeffrey Stedfast <fejj@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 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
23 #error "Only <camel/camel.h> can be included directly."
24 #endif
25
26 #ifndef CAMEL_MIME_FILTER_LINEWRAP_H
27 #define CAMEL_MIME_FILTER_LINEWRAP_H
28
29 #include <camel/camel-mime-filter.h>
30
31 /* Standard GObject macros */
32 #define CAMEL_TYPE_MIME_FILTER_LINEWRAP \
33         (camel_mime_filter_linewrap_get_type ())
34 #define CAMEL_MIME_FILTER_LINEWRAP(obj) \
35         (G_TYPE_CHECK_INSTANCE_CAST \
36         ((obj), CAMEL_TYPE_MIME_FILTER_LINEWRAP, CamelMimeFilterLinewrap))
37 #define CAMEL_MIME_FILTER_LINEWRAP_CLASS(cls) \
38         (G_TYPE_CHECK_CLASS_CAST \
39         ((cls), CAMEL_TYPE_MIME_FILTER_LINEWRAP, CamelMimeFilterLinewrapClass))
40 #define CAMEL_IS_MIME_FILTER_LINEWRAP(obj) \
41         (G_TYPE_CHECK_INSTANCE_TYPE \
42         ((obj), CAMEL_TYPE_MIME_FILTER_LINEWRAP))
43 #define CAMEL_IS_MIME_FILTER_LINEWRAP_CLASS(cls) \
44         (G_TYPE_CHECK_CLASS_TYPE \
45         ((cls), CAMEL_TYPE_MIME_FILTER_LINEWRAP))
46 #define CAMEL_MIME_FILTER_LINEWRAP_GET_CLASS(obj) \
47         (G_TYPE_INSTANCE_GET_CLASS \
48         ((obj), CAMEL_TYPE_MIME_FILTER_LINEWRAP, CamelMimeFilterLinewrapClass))
49
50 G_BEGIN_DECLS
51
52 enum {
53         CAMEL_MIME_FILTER_LINEWRAP_NOINDENT = (1 << 0), /* does not indent; it's forced for indent_char = 0 */
54         CAMEL_MIME_FILTER_LINEWRAP_WORD     = (1 << 1), /* indents on word boundary */
55 };
56
57 typedef struct _CamelMimeFilterLinewrap CamelMimeFilterLinewrap;
58 typedef struct _CamelMimeFilterLinewrapClass CamelMimeFilterLinewrapClass;
59 typedef struct _CamelMimeFilterLinewrapPrivate CamelMimeFilterLinewrapPrivate;
60
61 struct _CamelMimeFilterLinewrap {
62         CamelMimeFilter parent;
63         CamelMimeFilterLinewrapPrivate *priv;
64 };
65
66 struct _CamelMimeFilterLinewrapClass {
67         CamelMimeFilterClass parent_class;
68 };
69
70 GType           camel_mime_filter_linewrap_get_type (void);
71 CamelMimeFilter *
72                 camel_mime_filter_linewrap_new  (guint preferred_len,
73                                                  guint max_len,
74                                                  gchar indent_char,
75                                                  guint32 flags);
76
77 G_END_DECLS
78
79 #endif /* CAMEL_MIME_FILTER_LINEWRAP_H */