GnuCash 2.4.99
search-int64.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_INT64_H
00023 #define _GNCSEARCH_INT64_H
00024 
00025 #include "search-core-type.h"
00026 #include "qof.h"
00027 
00028 #define GNC_TYPE_SEARCH_INT64           (gnc_search_int64_get_type ())
00029 #define GNCSEARCH_INT64(obj)            GTK_CHECK_CAST (obj, GNC_TYPE_SEARCH_INT64, GNCSearchInt64)
00030 #define GNCSEARCH_INT64_CLASS(klass)    GTK_CHECK_CLASS_CAST (klass, GNC_TYPE_SEARCH_INT64, GNCSearchInt64Class)
00031 #define IS_GNCSEARCH_INT64(obj)         GTK_CHECK_TYPE (obj, GNC_TYPE_SEARCH_INT64)
00032 
00033 typedef struct _GNCSearchInt64  GNCSearchInt64;
00034 typedef struct _GNCSearchInt64Class     GNCSearchInt64Class;
00035 
00036 struct _GNCSearchInt64
00037 {
00038     GNCSearchCoreType parent;
00039 
00040     QofQueryCompare     how;
00041     gint64              value;
00042 };
00043 
00044 struct _GNCSearchInt64Class
00045 {
00046     GNCSearchCoreTypeClass parent_class;
00047 
00048     /* virtual methods */
00049 
00050     /* signals */
00051 };
00052 
00053 GType           gnc_search_int64_get_type       (void);
00054 GNCSearchInt64  *gnc_search_int64_new   (void);
00055 
00056 /* methods */
00057 void    gnc_search_int64_set_value (GNCSearchInt64 *fi, gint64 val);
00058 void    gnc_search_int64_set_how (GNCSearchInt64 *fi, QofQueryCompare how);
00059 
00060 #endif /* ! _GNCSEARCH_INT64_H */
00061 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines