Modified webpage: now tinymail repository is in gitorious.
[modest] / src / widgets / modest-header-view.h
index f0d7bfc..c0c9be2 100644 (file)
@@ -36,6 +36,7 @@
 #include <tny-msg.h>
 #include <tny-header.h>
 #include <tny-gtk-header-list-model.h>
+#include "modest-window.h"
 #include "modest-mail-operation.h"
 #include "modest-header-view-observer.h"
 
@@ -420,6 +421,16 @@ void modest_header_view_set_filter (ModestHeaderView *self,
 void modest_header_view_unset_filter (ModestHeaderView *self,
                                      ModestHeaderViewFilter filter);
 
+/**
+ * modest_header_view_set_filter_string:
+ * @self: a #ModestHeaderView
+ * @filter_string: a string
+ *
+ * Set a string for filtering visible messages. If %NULL, no filtering is done.
+ */
+void modest_header_view_set_filter_string (ModestHeaderView *self,
+                                          const gchar *filter_string);
+
 
 
 /**
@@ -450,6 +461,27 @@ void modest_header_view_remove_observer(
                ModestHeaderView *header_view,
                ModestHeaderViewObserver *observer);
 
+/**
+ * modest_header_view_get_header_at_pos:
+ * @header_view: a #ModestHeaderView
+ * @initial_x: the x coordinate
+ * @initial_y: the y coordinate
+ *
+ * Return the #TnyHeader stored in the row at (x,y) coordinates
+ * relatives to the widget. It returns a new reference so you must
+ * unref it once you're done with it.
+ *
+ * Returns: a #TnyHeader if found, else NULL
+ **/
+TnyHeader* modest_header_view_get_header_at_pos (ModestHeaderView *header_view,
+                                                gint initial_x,
+                                                gint initial_y);
+
+
+#ifdef MODEST_TOOLKIT_HILDON2
+GtkWidget *modest_header_view_setup_live_search (ModestHeaderView *self);
+#endif
+
 G_END_DECLS