GnuCash  5.6-150-g038405b370+
search-numeric.h
1 /*
2  * Copyright (C) 2002 Derek Atkins
3  *
4  * Authors: Derek Atkins <warlord@MIT.EDU>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
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 GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public
17  * License along with this program; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef _GNCSEARCH_NUMERIC_H
23 #define _GNCSEARCH_NUMERIC_H
24 
25 #include "search-core-type.h"
26 #include "qof.h"
27 #include "qof.h"
28 
29 #define GNC_TYPE_SEARCH_NUMERIC (gnc_search_numeric_get_type ())
30 G_DECLARE_FINAL_TYPE (GNCSearchNumeric, gnc_search_numeric, GNC, SEARCH_NUMERIC, GNCSearchCoreType)
31 
32 GNCSearchNumeric *gnc_search_numeric_new (void);
33 GNCSearchNumeric *gnc_search_numeric_debcred_new (void);
34 
35 /* methods */
36 void gnc_search_numeric_set_value (GNCSearchNumeric *fi, gnc_numeric val);
37 void gnc_search_numeric_set_how (GNCSearchNumeric *fi, QofQueryCompare how);
38 void gnc_search_numeric_set_option (GNCSearchNumeric *fi, QofNumericMatch option);
39 
40 #endif /* ! _GNCSEARCH_NUMERIC_H */
41 
QofQueryCompare
Standard Query comparators, for how to compare objects in a predicate.
Definition: qofquerycore.h:54
QofNumericMatch
Comparisons for QOF_TYPE_NUMERIC, QOF_TYPE_DEBCRED.
Definition: qofquerycore.h:101