diff options
author | nobody <nobody@localhost> | 2001-04-16 17:30:54 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2001-04-16 17:30:54 +0800 |
commit | f0fb37660d74d6b6a6002acac0b98f0844e533a5 (patch) | |
tree | aaa46c1cf6c9a87e8f291ef7673bd9463803e8c9 /camel/camel-filter-driver.h | |
parent | 75a16468d369f58587f27ab4655fbe1c1091fc95 (diff) | |
download | gsoc2013-evolution-XST_0_4_0.tar gsoc2013-evolution-XST_0_4_0.tar.gz gsoc2013-evolution-XST_0_4_0.tar.bz2 gsoc2013-evolution-XST_0_4_0.tar.lz gsoc2013-evolution-XST_0_4_0.tar.xz gsoc2013-evolution-XST_0_4_0.tar.zst gsoc2013-evolution-XST_0_4_0.zip |
This commit was manufactured by cvs2svn to create tag 'XST_0_4_0'.XST_0_4_0
svn path=/tags/XST_0_4_0/; revision=9363
Diffstat (limited to 'camel/camel-filter-driver.h')
-rw-r--r-- | camel/camel-filter-driver.h | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/camel/camel-filter-driver.h b/camel/camel-filter-driver.h deleted file mode 100644 index 94cc54820b..0000000000 --- a/camel/camel-filter-driver.h +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (C) 2000 Helix Code Inc. - * - * Authors: Michael Zucchi <notzed@helixcode.com> - * Jeffrey Stedfast <fejj@helixcode.com> - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 - * USA - */ - -#ifndef _CAMEL_FILTER_DRIVER_H -#define _CAMEL_FILTER_DRIVER_H - -#include <glib.h> -#include <camel/camel-object.h> -#include <camel/camel-session.h> -#include <camel/camel-folder.h> - -#define CAMEL_FILTER_DRIVER_TYPE (camel_filter_driver_get_type()) -#define CAMEL_FILTER_DRIVER(obj) CAMEL_CHECK_CAST (obj, camel_filter_driver_get_type (), CamelFilterDriver) -#define CAMEL_FILTER_DRIVER_CLASS(klass) CAMEL__CHECK_CLASS_CAST (klass, camel_filter_driver_get_type (), CamelFilterDriverClass) -#define CAMEL_IS_FILTER_DRIVER(obj) CAMEL_CHECK_TYPE (obj, camel_filter_driver_get_type ()) - -typedef struct _CamelFilterDriver CamelFilterDriver; -typedef struct _CamelFilterDriverClass CamelFilterDriverClass; - -struct _CamelFilterDriver { - CamelObject parent; - - struct _CamelFilterDriverPrivate *priv; -}; - -struct _CamelFilterDriverClass { - CamelObjectClass parent_class; -}; - -/* FIXME: this maybe should change... */ -/* type of status for a status report */ -enum camel_filter_status_t { - CAMEL_FILTER_STATUS_NONE, - CAMEL_FILTER_STATUS_START, /* start of new message processed */ - CAMEL_FILTER_STATUS_ACTION, /* an action performed */ - CAMEL_FILTER_STATUS_PROGRESS, /* (an) extra update(s), if its taking longer to process */ - CAMEL_FILTER_STATUS_END, /* end of message */ -}; - -typedef CamelFolder * (*CamelFilterGetFolderFunc) (CamelFilterDriver *, const char *uri, void *data, CamelException *ex); -/* report status */ -typedef void (CamelFilterStatusFunc)(CamelFilterDriver *driver, enum camel_filter_status_t status, int pc, const char *desc, void *data); - -guint camel_filter_driver_get_type (void); -CamelFilterDriver *camel_filter_driver_new (CamelFilterGetFolderFunc fetcher, void *data); - -/* modifiers */ -void camel_filter_driver_set_logfile (CamelFilterDriver *d, FILE *logfile); -void camel_filter_driver_set_status_func (CamelFilterDriver *d, CamelFilterStatusFunc *func, - void *data); -void camel_filter_driver_set_default_folder (CamelFilterDriver *d, CamelFolder *def); -void camel_filter_driver_add_rule (CamelFilterDriver *d, const char *name, const char *match, - const char *action); - -/*void camel_filter_driver_set_global(CamelFilterDriver *, const char *name, const char *value);*/ - -int camel_filter_driver_filter_message (CamelFilterDriver *driver, CamelMimeMessage *message, - CamelMessageInfo *info, const char *uri, - CamelFolder *source, const char *source_url, - CamelException *ex); -int camel_filter_driver_filter_mbox (CamelFilterDriver *driver, const char *mbox, - CamelException *ex); -int camel_filter_driver_filter_folder (CamelFilterDriver *driver, CamelFolder *folder, - GPtrArray *uids, gboolean remove, CamelException *ex); - -#if 0 -/* generate the search query/action string for a filter option */ -void camel_filter_driver_expand_option (CamelFilterDriver *d, GString *s, GString *action, struct filter_option *op); - -/* get info about rules (options) */ -int camel_filter_driver_rule_count (CamelFilterDriver *d); -struct filter_option *camel_filter_driver_rule_get (CamelFilterDriver *d, int n); -#endif - -#endif /* ! _CAMEL_FILTER_DRIVER_H */ |