00001 /********************************************************************\ 00002 * duitxnreport.h -- copy from recordset to field targets. * 00003 * Copyright (C) 2002, 2003 Linas Vepstas <linas@linas.org> * 00004 * http://dwi.sourceforge.net * 00005 * * 00006 * This library is free software; you can redistribute it and/or * 00007 * modify it under the terms of the GNU Lesser General Public * 00008 * License as published by the Free Software Foundation; either * 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * * 00011 * This library 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 * 00014 * GNU Lesser General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU Lesser General Public * 00017 * License along with this program; if not, contact: * 00018 * * 00019 * Free Software Foundation Voice: +1-617-542-5942 * 00020 * 59 Temple Place - Suite 330 Fax: +1-617-542-2652 * 00021 * Boston, MA 02111-1307, USA gnu@gnu.org * 00022 \********************************************************************/ 00023 00054 #ifndef DUI_TXN_REPORT_H_ 00055 #define DUI_TXN_REPORT_H_ 00056 00057 #include "config.h" 00058 00059 #include "dui-initdb.h" 00060 #include "duifield.h" 00061 #include "duifieldmap.h" 00062 #include "duiresolver.h" 00063 #include "duiresolver.h" 00064 00065 typedef struct DuiTxnReport_s DuiTxnReport; 00066 00067 DuiTxnReport * dui_txnreport_new (const char * name, int nest); 00068 void dui_txnreport_destroy (DuiTxnReport *row); 00069 00070 const char * dui_txnreport_get_name (DuiTxnReport *); 00071 int dui_txnreport_get_nest (DuiTxnReport *); 00072 00076 void dui_txnreport_add_term (DuiTxnReport *row, DuiFieldMap *fm); 00077 00082 void dui_txnreport_add_match_term (DuiTxnReport *row, DuiFieldMap *fm); 00083 00084 void dui_txnreport_set_resolver (DuiTxnReport * row, DuiResolver *res); 00085 00088 gboolean dui_txnreport_is_empty (DuiTxnReport * row, DuiDBRecordSet *recs); 00089 00091 void dui_txnreport_run (DuiTxnReport * row, DuiDBRecordSet *recs); 00092 00096 #endif /* DUI_TXN_REPORT_H_ */
1.5.5