GnuCash 2.4.99
search-reconciled.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_RECONCILED_H
00023 #define _GNCSEARCH_RECONCILED_H
00024 
00025 #include "search-core-type.h"
00026 #include "Query.h"              /* for cleared_match_t */
00027 
00028 #define GNC_TYPE_SEARCH_RECONCILED        (gnc_search_reconciled_get_type ())
00029 #define GNCSEARCH_RECONCILED(obj)         GTK_CHECK_CAST (obj, GNC_TYPE_SEARCH_RECONCILED, GNCSearchReconciled)
00030 #define GNCSEARCH_RECONCILED_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, GNC_TYPE_SEARCH_RECONCILED, GNCSearchReconciledClass)
00031 #define IS_GNCSEARCH_RECONCILED(obj)      GTK_CHECK_TYPE (obj, GNC_TYPE_SEARCH_RECONCILED)
00032 
00033 typedef struct _GNCSearchReconciled     GNCSearchReconciled;
00034 typedef struct _GNCSearchReconciledClass        GNCSearchReconciledClass;
00035 
00036 struct _GNCSearchReconciled
00037 {
00038     GNCSearchCoreType parent;
00039 
00040     QofCharMatch                how;
00041     cleared_match_t     value;
00042 };
00043 
00044 struct _GNCSearchReconciledClass
00045 {
00046     GNCSearchCoreTypeClass parent_class;
00047 
00048     /* virtual methods */
00049 
00050     /* signals */
00051 };
00052 
00053 GType           gnc_search_reconciled_get_type  (void);
00054 GNCSearchReconciled     *gnc_search_reconciled_new      (void);
00055 
00056 /* methods */
00057 void    gnc_search_reconciled_set_value(GNCSearchReconciled *fi, cleared_match_t value);
00058 void    gnc_search_reconciled_set_how (GNCSearchReconciled *fi, QofCharMatch how);
00059 
00060 #endif /* ! _GNCSEARCH_RECONCILED_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines