2 * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2011 Colin Leroy <colin@colino.net>
4 * and the Claws Mail team
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #define QUICKSEARCH_H 1
29 QUICK_SEARCH_EXTENDED,
35 typedef struct _QuickSearch QuickSearch;
36 typedef void (*QuickSearchExecuteCallback) (QuickSearch *quicksearch, gpointer data);
40 void search_msgs_in_folders(GSList **messages, QuickSearch* quicksearch,
41 FolderItem* folderItem);
42 QuickSearchType quicksearch_type(const gchar *type);
44 QuickSearch *quicksearch_new();
45 QuickSearch *quicksearch_new_nogui();
46 GtkWidget *quicksearch_get_widget(QuickSearch *quicksearch);
47 void quicksearch_show(QuickSearch *quicksearch);
48 void quicksearch_hide(QuickSearch *quicksearch);
49 void quicksearch_set(QuickSearch *quicksearch, QuickSearchType type, const gchar *matchstring);
50 void quicksearch_set_recursive(QuickSearch *quicksearch, gboolean recursive);
51 gboolean quicksearch_is_active(QuickSearch *quicksearch);
52 void quicksearch_set_execute_callback(QuickSearch *quicksearch,
53 QuickSearchExecuteCallback callback,
55 gboolean quicksearch_match(QuickSearch *quicksearch, MsgInfo *msginfo);
56 gboolean quicksearch_is_running(QuickSearch *quicksearch);
57 gboolean quicksearch_has_focus(QuickSearch *quicksearch);
58 void quicksearch_pass_key(QuickSearch *quicksearch, guint val, GdkModifierType mod);
59 void quicksearch_reset_cur_folder_item(QuickSearch *quicksearch);
60 void quicksearch_search_subfolders(QuickSearch *quicksearch,
61 FolderView *folderview,
62 FolderItem *folder_item);
63 gboolean quicksearch_is_in_subfolder(QuickSearch *quicksearch, FolderItem *cur);
64 gboolean quicksearch_is_fast(QuickSearch *quicksearch);
65 gboolean quicksearch_is_in_typing(QuickSearch *quicksearch);
66 void quicksearch_relayout(QuickSearch *quicksearch);
67 void quicksearch_set_search_strings(QuickSearch *quicksearch);
68 void quicksearch_folder_item_invalidate(QuickSearch *quicksearch, FolderItem *item);
69 #endif /* QUICKSEARCH_H */