aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-arg-types.h
diff options
context:
space:
mode:
authorMichael Zucci <zucchi@src.gnome.org>2000-02-16 17:16:10 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-02-16 17:16:10 +0800
commit0dfd58ef202c72905903b9df0aec462ffbd7441d (patch)
tree17c7a99da066e614b306e8db530e9fbcb40d56d9 /filter/filter-arg-types.h
parent9877d1b4894229ef56d94498d33dc9d983148ae5 (diff)
downloadgsoc2013-evolution-0dfd58ef202c72905903b9df0aec462ffbd7441d.tar
gsoc2013-evolution-0dfd58ef202c72905903b9df0aec462ffbd7441d.tar.gz
gsoc2013-evolution-0dfd58ef202c72905903b9df0aec462ffbd7441d.tar.bz2
gsoc2013-evolution-0dfd58ef202c72905903b9df0aec462ffbd7441d.tar.lz
gsoc2013-evolution-0dfd58ef202c72905903b9df0aec462ffbd7441d.tar.xz
gsoc2013-evolution-0dfd58ef202c72905903b9df0aec462ffbd7441d.tar.zst
gsoc2013-evolution-0dfd58ef202c72905903b9df0aec462ffbd7441d.zip
Initial revision
svn path=/trunk/; revision=1786
Diffstat (limited to 'filter/filter-arg-types.h')
-rw-r--r--filter/filter-arg-types.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/filter/filter-arg-types.h b/filter/filter-arg-types.h
new file mode 100644
index 0000000000..26ee280a55
--- /dev/null
+++ b/filter/filter-arg-types.h
@@ -0,0 +1,75 @@
+/*
+ * Copyright (C) 2000 Helix Code Inc.
+ *
+ * Authors: Michael Zucchi <notzed@helixcode.com>
+ *
+ * Implementations of the filter-args.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library 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 Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef _FILTER_ARG_TYPES_H
+#define _FILTER_ARG_TYPES_H
+
+#include "filter-arg.h"
+
+/* An Address */
+#define FILTER_ARG_ADDRESS(obj) GTK_CHECK_CAST (obj, filter_arg_address_get_type (), FilterArgAddress)
+#define FILTER_ARG_ADDRESS_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, filter_arg_address_get_type (), FilterArgAddressClass)
+#define IS_FILTER_ARG_ADDRESS(obj) GTK_CHECK_TYPE (obj, filter_arg_address_get_type ())
+
+typedef struct _FilterArgAddress FilterArgAddress;
+typedef struct _FilterArgAddressClass FilterArgAddressClass;
+
+struct _FilterArgAddress {
+ FilterArg arg;
+};
+
+struct _FilterArgAddressClass {
+ FilterArgClass parent_class;
+};
+
+struct filter_arg_address {
+ char *name;
+ char *email;
+};
+
+guint filter_arg_address_get_type (void);
+FilterArg *filter_arg_address_new (char *name);
+void filter_arg_address_add(FilterArg *, char *name, char *email);
+void filter_arg_address_remove(FilterArg *, char *name, char *email);
+
+/* A Folder */
+#define FILTER_ARG_FOLDER(obj) GTK_CHECK_CAST (obj, filter_arg_folder_get_type (), FilterArgFolder)
+#define FILTER_ARG_FOLDER_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, filter_arg_folder_get_type (), FilterArgFolderClass)
+#define IS_FILTER_ARG_FOLDER(obj) GTK_CHECK_TYPE (obj, filter_arg_folder_get_type ())
+
+typedef struct _FilterArgFolder FilterArgFolder;
+typedef struct _FilterArgFolderClass FilterArgFolderClass;
+
+struct _FilterArgFolder {
+ FilterArg arg;
+};
+
+struct _FilterArgFolderClass {
+ FilterArgClass parent_class;
+};
+
+guint filter_arg_folder_get_type (void);
+FilterArg *filter_arg_folder_new (char *name);
+void filter_arg_folder_add(FilterArg *, char *name);
+void filter_arg_folder_remove(FilterArg *, char *name);
+
+#endif /* ! _FILTER_ARG_TYPES_H */