/ gwuserquicksearch.h / Content
/* GWhere.
* Copyright (C) 2000 Sébastien LECACHEUR
*
* 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 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef GW_DATA_USER_QUICK_SEARCH_H
#define GW_DATA_USER_QUICK_SEARCH_H
#include "gwenginequicksearch.h"
#define SEARCH_TYPE_NONE -1
#define SEARCH_TYPE_KEY_WORDS 0
#define SEARCH_TYPE_WILDCARDS 1
#define SEARCH_TYPE_REGEX 2
struct user_quick_search;
struct user_quick_search *user_quick_search_new ( void);
gint user_quick_search_set_pattern ( struct user_quick_search *p, gchar *pattern);
gint user_quick_search_set_case_sensitive ( struct user_quick_search *p, gboolean case_sensitive);
gint user_quick_search_set_type ( struct user_quick_search *p, gint type);
gint user_quick_search_set_match_file ( struct user_quick_search *p, gboolean match_file);
gint user_quick_search_set_match_folder ( struct user_quick_search *p, gboolean match_folder);
gint user_quick_search_set_match_disk ( struct user_quick_search *p, gboolean match_disk);
gint user_quick_search_set_match_category ( struct user_quick_search *p, gboolean match_category);
gint user_quick_search_set_match_description ( struct user_quick_search *p, gboolean match_description);
gchar * user_quick_search_get_pattern ( struct user_quick_search *p);
gboolean user_quick_search_get_case_sensitive ( struct user_quick_search *p);
gint user_quick_search_get_type ( struct user_quick_search *p);
gboolean user_quick_search_get_match_file ( struct user_quick_search *p);
gboolean user_quick_search_get_match_folder ( struct user_quick_search *p);
gboolean user_quick_search_get_match_disk ( struct user_quick_search *p);
gboolean user_quick_search_get_match_category ( struct user_quick_search *p);
gboolean user_quick_search_get_match_description ( struct user_quick_search *p);
gint user_quick_search_free ( struct user_quick_search *p);
struct engine_quick_search *user_quick_search_to_engine_quick_search ( struct user_quick_search *p);
#endif