22 #ifndef _GNCSEARCH_STRING_H
23 #define _GNCSEARCH_STRING_H
25 #include "search-core-type.h"
27 #define GNC_TYPE_SEARCH_STRING (gnc_search_string_get_type ())
28 #define GNCSEARCH_STRING(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, GNC_TYPE_SEARCH_STRING, GNCSearchString)
29 #define GNCSEARCH_STRING_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, GNC_TYPE_SEARCH_STRING, GNCSearchStringClass)
30 #define IS_GNCSEARCH_STRING(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, GNC_TYPE_SEARCH_STRING)
35 typedef enum _search_string_how
37 SEARCH_STRING_CONTAINS,
38 SEARCH_STRING_NOT_CONTAINS,
39 SEARCH_STRING_MATCHES_REGEX,
40 SEARCH_STRING_NOT_MATCHES_REGEX,
42 SEARCH_STRING_NOT_EQUAL
43 } GNCSearchString_Type;
49 GNCSearchString_Type how;
63 GType gnc_search_string_get_type (
void);
67 void gnc_search_string_set_value(
GNCSearchString *fi,
const char *value);
68 void gnc_search_string_set_how (
GNCSearchString *fi, GNCSearchString_Type how);
69 void gnc_search_string_set_case (
GNCSearchString *fi, gboolean ignore_case);