GnuCash 2.4.99
search-numeric.h
00001 /*
00002  *  Copyright (C) 2002 Derek Atkins
00003  *
00004  *  Authors: Derek Atkins <warlord@MIT.EDU>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License as
00008  * published by the Free Software Foundation; either version 2 of
00009  * the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public
00017  * License along with this program; if not, write to the
00018  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020  */
00021 
00022 #ifndef _GNCSEARCH_NUMERIC_H
00023 #define _GNCSEARCH_NUMERIC_H
00024 
00025 #include "search-core-type.h"
00026 #include "qof.h"
00027 #include "qof.h"
00028 
00029 #define GNC_TYPE_SEARCH_NUMERIC         (gnc_search_numeric_get_type ())
00030 #define GNCSEARCH_NUMERIC(obj)          GTK_CHECK_CAST (obj, GNC_TYPE_SEARCH_NUMERIC, GNCSearchNumeric)
00031 #define GNCSEARCH_NUMERIC_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, GNC_TYPE_SEARCH_NUMERIC, GNCSearchNumericClass)
00032 #define IS_GNCSEARCH_NUMERIC(obj)       GTK_CHECK_TYPE (obj, GNC_TYPE_SEARCH_NUMERIC)
00033 
00034 typedef struct _GNCSearchNumeric        GNCSearchNumeric;
00035 typedef struct _GNCSearchNumericClass   GNCSearchNumericClass;
00036 
00037 struct _GNCSearchNumeric
00038 {
00039     GNCSearchCoreType parent;
00040     struct _GNCSearchNumericPrivate *priv;
00041 
00042     QofQueryCompare     how;
00043     gnc_numeric         value;
00044     QofNumericMatch     option;
00045 };
00046 
00047 struct _GNCSearchNumericClass
00048 {
00049     GNCSearchCoreTypeClass parent_class;
00050 
00051     /* virtual methods */
00052 
00053     /* signals */
00054 };
00055 
00056 GType           gnc_search_numeric_get_type     (void);
00057 GNCSearchNumeric        *gnc_search_numeric_new (void);
00058 GNCSearchNumeric        *gnc_search_numeric_debcred_new (void);
00059 
00060 /* methods */
00061 void    gnc_search_numeric_set_value (GNCSearchNumeric *fi, gnc_numeric val);
00062 void    gnc_search_numeric_set_how (GNCSearchNumeric *fi, QofQueryCompare how);
00063 void    gnc_search_numeric_set_option (GNCSearchNumeric *fi, QofNumericMatch option);
00064 
00065 #endif /* ! _GNCSEARCH_NUMERIC_H */
00066 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines