aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-system-flag.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-12-02 12:01:53 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-12-02 12:01:53 +0800
commite7c8c694a76a27b29056465d25347276db24519f (patch)
tree9d92e199b464ed0dcd9c014eacd0a98573194a7d /filter/filter-system-flag.h
parent787d1833c052cc1acf54a1d7fae5c350bdec4f94 (diff)
downloadgsoc2013-evolution-e7c8c694a76a27b29056465d25347276db24519f.tar
gsoc2013-evolution-e7c8c694a76a27b29056465d25347276db24519f.tar.gz
gsoc2013-evolution-e7c8c694a76a27b29056465d25347276db24519f.tar.bz2
gsoc2013-evolution-e7c8c694a76a27b29056465d25347276db24519f.tar.lz
gsoc2013-evolution-e7c8c694a76a27b29056465d25347276db24519f.tar.xz
gsoc2013-evolution-e7c8c694a76a27b29056465d25347276db24519f.tar.zst
gsoc2013-evolution-e7c8c694a76a27b29056465d25347276db24519f.zip
Added support for the system-flag type.
2000-12-01 Jeffrey Stedfast <fejj@helixcode.com> * 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
Diffstat (limited to 'filter/filter-system-flag.h')
-rw-r--r--filter/filter-system-flag.h56
1 files changed, 56 insertions, 0 deletions
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 <fejj@helixcode.com>
+ *
+ * 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 <gtk/gtk.h>
+#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 */
+