1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2000 Ximian Inc.
5 * Authors: Michael Zucchi <notzed@ximian.com>
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.
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.
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.
23 #ifndef _CAMEL_MIME_FILTER_INDEX_H
24 #define _CAMEL_MIME_FILTER_INDEX_H
26 #include <camel/camel-mime-filter.h>
28 #define CAMEL_MIME_FILTER_INDEX(obj) CAMEL_CHECK_CAST (obj, camel_mime_filter_index_get_type (), CamelMimeFilterIndex)
29 #define CAMEL_MIME_FILTER_INDEX_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_mime_filter_index_get_type (), CamelMimeFilterIndexClass)
30 #define CAMEL_IS_MIME_FILTER_INDEX(obj) CAMEL_CHECK_TYPE (obj, camel_mime_filter_index_get_type ())
34 typedef struct _CamelMimeFilterIndexClass CamelMimeFilterIndexClass;
36 struct _CamelMimeFilterIndex {
37 CamelMimeFilter parent;
39 struct _CamelMimeFilterIndexPrivate *priv;
41 struct _CamelIndex *index;
42 struct _CamelIndexName *name;
45 struct _CamelMimeFilterIndexClass {
46 CamelMimeFilterClass parent_class;
49 CamelType camel_mime_filter_index_get_type (void);
50 CamelMimeFilterIndex *camel_mime_filter_index_new (void);
52 CamelMimeFilterIndex *camel_mime_filter_index_new_index(struct _CamelIndex *index);
54 /* Set the match name for any indexed words */
55 void camel_mime_filter_index_set_name (CamelMimeFilterIndex *filter, struct _CamelIndexName *name);
56 void camel_mime_filter_index_set_index (CamelMimeFilterIndex *filter, struct _CamelIndex *index);
60 #endif /* ! _CAMEL_MIME_FILTER_INDEX_H */