5bf542dc47
* src/Makefile.am * src/advsearch.c ** ADDED ** * src/advsearch.h ** ADDED ** * src/folder.c * src/folder.h * src/folderview.c * src/imap.c * src/main.c * src/matcher.c * src/matcher.h * src/matchertypes.h ** ADDED ** * src/mh.c * src/mimeview.c * src/news.c * src/proctypes.h * src/summary_search.c * src/summaryview.c * src/summaryview.h * src/gtk/quicksearch.c * src/gtk/quicksearch.h Separated GUI and logic for search Use same logic for quicksearch and folder search Patch by Sean Buckheister <s_buckhe@cs.uni-kl.de>
53 lines
2.3 KiB
C
53 lines
2.3 KiB
C
/*
|
|
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
|
|
* Copyright (C) 1999-2012 Colin Leroy <colin@colino.net>
|
|
* and the Claws Mail team
|
|
*
|
|
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#ifndef QUICKSEARCH_H
|
|
#define QUICKSEARCH_H 1
|
|
|
|
#include "advsearch.h"
|
|
|
|
typedef struct _QuickSearch QuickSearch;
|
|
typedef void (*QuickSearchExecuteCallback) (QuickSearch *quicksearch, gpointer data);
|
|
|
|
#include "procmsg.h"
|
|
|
|
QuickSearch *quicksearch_new();
|
|
GtkWidget *quicksearch_get_widget(QuickSearch *quicksearch);
|
|
void quicksearch_show(QuickSearch *quicksearch);
|
|
void quicksearch_hide(QuickSearch *quicksearch);
|
|
void quicksearch_set(QuickSearch *quicksearch, AdvancedSearchType type, const gchar *matchstring);
|
|
void quicksearch_set_recursive(QuickSearch *quicksearch, gboolean recursive);
|
|
gboolean quicksearch_has_sat_predicate(QuickSearch *quicksearch);
|
|
void quicksearch_set_execute_callback(QuickSearch *quicksearch,
|
|
QuickSearchExecuteCallback callback,
|
|
gpointer data);
|
|
void quicksearch_set_on_progress_cb(QuickSearch* search,
|
|
gboolean (*cb)(gpointer data, guint at, guint matched, guint total), gpointer data);
|
|
|
|
gboolean quicksearch_run_on_folder(QuickSearch* quicksearch, FolderItem *folderItem, MsgInfoList **result);
|
|
|
|
gboolean quicksearch_is_running(QuickSearch *quicksearch);
|
|
gboolean quicksearch_has_focus(QuickSearch *quicksearch);
|
|
void quicksearch_pass_key(QuickSearch *quicksearch, guint val, GdkModifierType mod);
|
|
gboolean quicksearch_is_fast(QuickSearch *quicksearch);
|
|
gboolean quicksearch_is_in_typing(QuickSearch *quicksearch);
|
|
void quicksearch_relayout(QuickSearch *quicksearch);
|
|
void quicksearch_set_search_strings(QuickSearch *quicksearch);
|
|
#endif /* QUICKSEARCH_H */
|