GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
search-numeric.h
1 /*
2  * Copyright (C) 2002 Derek Atkins
3  *
4  * Authors: Derek Atkins <[email protected]>
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 #define GNCSEARCH_NUMERIC(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, GNC_TYPE_SEARCH_NUMERIC, GNCSearchNumeric)
31 #define GNCSEARCH_NUMERIC_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, GNC_TYPE_SEARCH_NUMERIC, GNCSearchNumericClass)
32 #define IS_GNCSEARCH_NUMERIC(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, GNC_TYPE_SEARCH_NUMERIC)
33 
34 typedef struct _GNCSearchNumeric GNCSearchNumeric;
36 
38 {
39  GNCSearchCoreType parent;
40  struct _GNCSearchNumericPrivate *priv;
41 
42  QofQueryCompare how;
43  gnc_numeric value;
44  QofNumericMatch option;
45 };
46 
48 {
49  GNCSearchCoreTypeClass parent_class;
50 
51  /* virtual methods */
52 
53  /* signals */
54 };
55 
56 GType gnc_search_numeric_get_type (void);
57 GNCSearchNumeric *gnc_search_numeric_new (void);
58 GNCSearchNumeric *gnc_search_numeric_debcred_new (void);
59 
60 /* methods */
61 void gnc_search_numeric_set_value (GNCSearchNumeric *fi, gnc_numeric val);
62 void gnc_search_numeric_set_how (GNCSearchNumeric *fi, QofQueryCompare how);
63 void gnc_search_numeric_set_option (GNCSearchNumeric *fi, QofNumericMatch option);
64 
65 #endif /* ! _GNCSEARCH_NUMERIC_H */
66 
QofQueryCompare
Definition: qofquerycore.h:55
QofNumericMatch
Definition: qofquerycore.h:102