From e7c8c694a76a27b29056465d25347276db24519f Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 2 Dec 2000 04:01:53 +0000 Subject: Added support for the system-flag type. 2000-12-01 Jeffrey Stedfast * filter-element.c (filter_element_new_type_name): Added support for the system-flag type. * Makefile.am: Added filter-system-flag.[c,h]. * filter-system-flag.[c,h]: New type for system flags. * filtertypes.xml: Oops, looks like we were still using integers as arguments to set-flag. Change over to using strings which are safer and also change the name to set-system-flag. * filter-driver.c (do_flag): Use strings instead of integers. Instead of set-flag, the callback is now set-system-flag for less confusion. Sorry Ettore, but you'll have to change your filters. * filtertypes.xml: Added system-flags stuff. * vfoldertypes.xml: And here too. * filter-message-search.c (system_flag): New ESExp callback for filtering on system flags. svn path=/trunk/; revision=6764 --- filter/filter-system-flag.h | 56 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 filter/filter-system-flag.h (limited to 'filter/filter-system-flag.h') diff --git a/filter/filter-system-flag.h b/filter/filter-system-flag.h new file mode 100644 index 0000000000..eaf8e9172e --- /dev/null +++ b/filter/filter-system-flag.h @@ -0,0 +1,56 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * Authors: Jeffrey Stedfast + * + * Copyright 2000 Helix Code, Inc. (www.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 Street #330, Boston, MA 02111-1307, USA. + * + */ + + +#ifndef _FILTER_SYSTEM_FLAG_H +#define _FILTER_SYSTEM_FLAG_H + +#include +#include "filter-element.h" + +#define FILTER_SYSTEM_FLAG(obj) GTK_CHECK_CAST (obj, filter_system_flag_get_type (), Filtersystemflag) +#define FILTER_SYSTEM_FLAG_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, filter_system_flag_get_type (), FiltersystemflagClass) +#define IS_FILTER_SYSTEM_FLAG(obj) GTK_CHECK_TYPE (obj, filter_system_flag_get_type ()) + +typedef struct _FilterSystemFlag FilterSystemFlag; +typedef struct _FilterSystemFlagClass FilterSystemFlagClass; + +struct _FilterSystemFlag { + FilterElement parent; + struct _FilterSystemFlagPrivate *priv; + + char *value; +}; + +struct _FilterSystemFlagClass { + FilterElementClass parent_class; + + /* virtual methods */ + + /* signals */ +}; + +GtkType filter_system_flag_get_type (void); +FilterSystemFlag *filter_system_flag_new (void); + +#endif /* ! _FILTER_SYSTEM_FLAG_H */ + -- cgit v1.2.3