GnuCash 2.4.99
search-boolean.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_BOOLEAN_H
00023 #define _GNCSEARCH_BOOLEAN_H
00024 
00025 #include "search-core-type.h"
00026 #include "qof.h"
00027 
00028 #define GNC_TYPE_SEARCH_BOOLEAN         (gnc_search_boolean_get_type ())
00029 #define GNCSEARCH_BOOLEAN(obj)          GTK_CHECK_CAST (obj, GNC_TYPE_SEARCH_BOOLEAN, GNCSearchBoolean)
00030 #define GNCSEARCH_BOOLEAN_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, GNC_TYPE_SEARCH_BOOLEAN, GNCSearchBooleanClass)
00031 #define IS_GNCSEARCH_BOOLEAN(obj)       GTK_CHECK_TYPE (obj, GNC_TYPE_SEARCH_BOOLEAN)
00032 
00033 typedef struct _GNCSearchBoolean        GNCSearchBoolean;
00034 typedef struct _GNCSearchBooleanClass   GNCSearchBooleanClass;
00035 
00036 struct _GNCSearchBoolean
00037 {
00038     GNCSearchCoreType parent;
00039 
00040     QofQueryCompare     how;
00041     gboolean            value;
00042 };
00043 
00044 struct _GNCSearchBooleanClass
00045 {
00046     GNCSearchCoreTypeClass parent_class;
00047 
00048     /* virtual methods */
00049 
00050     /* signals */
00051 };
00052 
00053 GType           gnc_search_boolean_get_type     (void);
00054 GNCSearchBoolean        *gnc_search_boolean_new (void);
00055 
00056 /* methods */
00057 void    gnc_search_boolean_set_value (GNCSearchBoolean *fi, gboolean val);
00058 void    gnc_search_boolean_set_how (GNCSearchBoolean *fi, QofQueryCompare how);
00059 
00060 #endif /* ! _GNCSEARCH_BOOLEAN_H */
00061 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines