aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-datespec.h
diff options
context:
space:
mode:
authorPeter Williams <peterw@src.gnome.org>2000-08-16 02:16:39 +0800
committerPeter Williams <peterw@src.gnome.org>2000-08-16 02:16:39 +0800
commit7a12fa1fe21ca189e2800a27682bc2cc44396b6a (patch)
tree6914ce670ab90b549869dfdc97bbc67df0d3378c /filter/filter-datespec.h
parent52af76d0932bfc2b1acd622a681328c01c946382 (diff)
downloadgsoc2013-evolution-7a12fa1fe21ca189e2800a27682bc2cc44396b6a.tar
gsoc2013-evolution-7a12fa1fe21ca189e2800a27682bc2cc44396b6a.tar.gz
gsoc2013-evolution-7a12fa1fe21ca189e2800a27682bc2cc44396b6a.tar.bz2
gsoc2013-evolution-7a12fa1fe21ca189e2800a27682bc2cc44396b6a.tar.lz
gsoc2013-evolution-7a12fa1fe21ca189e2800a27682bc2cc44396b6a.tar.xz
gsoc2013-evolution-7a12fa1fe21ca189e2800a27682bc2cc44396b6a.tar.zst
gsoc2013-evolution-7a12fa1fe21ca189e2800a27682bc2cc44396b6a.zip
Allow filtering / vfoldering based on time or date
svn path=/trunk/; revision=4843
Diffstat (limited to 'filter/filter-datespec.h')
-rw-r--r--filter/filter-datespec.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/filter/filter-datespec.h b/filter/filter-datespec.h
new file mode 100644
index 0000000000..1292a94e36
--- /dev/null
+++ b/filter/filter-datespec.h
@@ -0,0 +1,64 @@
+/*
+ * Copyright (C) 2000 Helix Code Inc.
+ *
+ * Authors: Not Zed <notzed@lostzed.mmc.com.au>
+ *
+ * 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_DATESPEC_H
+#define _FILTER_DATESPEC_H
+
+#include <gtk/gtk.h>
+#include "filter-element.h"
+
+#define FILTER_DATESPEC(obj) GTK_CHECK_CAST (obj, filter_datespec_get_type (), FilterDatespec)
+#define FILTER_DATESPEC_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, filter_datespec_get_type (), FilterDatespecClass)
+#define IS_FILTER_DATESPEC(obj) GTK_CHECK_TYPE (obj, filter_datespec_get_type ())
+
+typedef struct _FilterDatespec FilterDatespec;
+typedef struct _FilterDatespecClass FilterDatespecClass;
+
+typedef enum _FilterDatespec_type { FDST_NOW, FDST_SPECIFIED, FDST_X_AGO, FDST_UNKNOWN } FilterDatespec_type;
+
+struct _FilterDatespec {
+ FilterElement parent;
+ struct _FilterDatespecPrivate *priv;
+
+ FilterDatespec_type type;
+
+ /* either a timespan, an absolute time, or 0
+ * depending on type -- the above mapping to
+ * (X_AGO, SPECIFIED, NOW)
+ */
+
+ time_t value;
+};
+
+struct _FilterDatespecClass {
+ FilterElementClass parent_class;
+
+ /* virtual methods */
+
+ /* signals */
+};
+
+guint filter_datespec_get_type (void);
+FilterDatespec *filter_datespec_new (void);
+
+/* methods */
+
+#endif /* ! _FILTER_DATESPEC_H */
+