Replace more obsolete #define'd function names by their current names.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19939 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2010-12-14 20:22:48 +00:00
parent 50d6165239
commit 88cb0b1b20
37 changed files with 139 additions and 328 deletions

View File

@ -36,7 +36,6 @@
#include "Account.h" #include "Account.h"
#include "AccountP.h" #include "AccountP.h"
#include "Query.h" #include "Query.h"
#include "QueryP.h"
#include "Scrub.h" #include "Scrub.h"
#include "Transaction.h" #include "Transaction.h"
#include "TransactionP.h" #include "TransactionP.h"

View File

@ -41,7 +41,7 @@
#include "gncInvoice.h" #include "gncInvoice.h"
#include "gnc-general-search.h" #include "gnc-general-search.h"
#include "gncObject.h" #include "qof.h"
#include "business-gnome-utils.h" #include "business-gnome-utils.h"
#include "dialog-customer.h" #include "dialog-customer.h"
#include "dialog-job.h" #include "dialog-job.h"

View File

@ -30,8 +30,8 @@
#include <libguile.h> #include <libguile.h>
#include "swig-runtime.h" #include "swig-runtime.h"
#include "gncObject.h" #include "qof.h"
#include "QueryCore.h" #include "qof.h"
#include "qof.h" #include "qof.h"
#include "dialog-utils.h" #include "dialog-utils.h"
@ -2670,7 +2670,7 @@ gnc_invoice_show_bills_due (QofBook *book, double days_in_advance)
{ {
QofIdType type = GNC_INVOICE_MODULE_NAME; QofIdType type = GNC_INVOICE_MODULE_NAME;
Query *q; Query *q;
QueryPredData_t pred_data; QofQueryPredData* pred_data;
time_t end_date; time_t end_date;
GList *res; GList *res;
gint len; gint len;

View File

@ -28,7 +28,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include "QueryCore.h" #include "qof.h"
#include "gnc-ui-util.h" #include "gnc-ui-util.h"
#include "gnc-gui-query.h" #include "gnc-gui-query.h"
#include "gncOwner.h" #include "gncOwner.h"
@ -42,7 +42,7 @@
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe); static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
static gboolean gncs_validate (GNCSearchCoreType *fe); static gboolean gncs_validate (GNCSearchCoreType *fe);
static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe); static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe);
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe); static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe);
static void gnc_search_owner_class_init (GNCSearchOwnerClass *class); static void gnc_search_owner_class_init (GNCSearchOwnerClass *class);
static void gnc_search_owner_init (GNCSearchOwner *gspaper); static void gnc_search_owner_init (GNCSearchOwner *gspaper);
@ -303,7 +303,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
return box; return box;
} }
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe) static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
{ {
GNCSearchOwner *fi = (GNCSearchOwner *)fe; GNCSearchOwner *fi = (GNCSearchOwner *)fe;
GNCSearchOwnerPrivate *priv; GNCSearchOwnerPrivate *priv;

View File

@ -25,8 +25,6 @@ SET (libgncmod_engine_HEADERS
SX-book.h SX-book.h
SX-ttinfo.h SX-ttinfo.h
Query.h Query.h
QueryObject.h
QueryCore.h
Scrub.h Scrub.h
Scrub2.h Scrub2.h
Scrub3.h Scrub3.h
@ -46,7 +44,6 @@ SET (libgncmod_engine_HEADERS
gnc-pricedb.h gnc-pricedb.h
gnc-session-scm.h gnc-session-scm.h
gnc-session.h gnc-session.h
gncObject.h
kvp-scm.h kvp-scm.h
policy.h policy.h
gncAddress.h gncAddress.h

View File

@ -72,8 +72,6 @@ gncinclude_HEADERS = \
SX-book.h \ SX-book.h \
SX-ttinfo.h \ SX-ttinfo.h \
Query.h \ Query.h \
QueryObject.h \
QueryCore.h \
Scrub.h \ Scrub.h \
Scrub2.h \ Scrub2.h \
Scrub3.h \ Scrub3.h \
@ -93,7 +91,6 @@ gncinclude_HEADERS = \
gnc-pricedb.h \ gnc-pricedb.h \
gnc-session.h \ gnc-session.h \
gnc-session-scm.h \ gnc-session-scm.h \
gncObject.h \
kvp-scm.h \ kvp-scm.h \
policy.h \ policy.h \
gncAddress.h \ gncAddress.h \
@ -124,7 +121,6 @@ gncinclude_HEADERS = \
noinst_HEADERS = \ noinst_HEADERS = \
AccountP.h \ AccountP.h \
QueryP.h \
ScrubP.h \ ScrubP.h \
SplitP.h \ SplitP.h \
SX-book.h \ SX-book.h \

View File

@ -63,7 +63,7 @@ build_param_list_internal (const char *first, va_list rest)
********************************************************************/ ********************************************************************/
SplitList * SplitList *
xaccQueryGetSplitsUniqueTrans(Query *q) xaccQueryGetSplitsUniqueTrans(QofQuery *q)
{ {
GList * splits = qof_query_run(q); GList * splits = qof_query_run(q);
GList * current; GList * current;
@ -115,7 +115,7 @@ query_match_any_filter_func(gpointer key, gpointer value, gpointer user_data)
} }
TransList * TransList *
xaccQueryGetTransactions (Query * q, query_txn_match_t runtype) xaccQueryGetTransactions (QofQuery * q, query_txn_match_t runtype)
{ {
GList * splits = qof_query_run(q); GList * splits = qof_query_run(q);
GList * current = NULL; GList * current = NULL;
@ -186,7 +186,7 @@ query_match_any_lot_filter_func(gpointer key, gpointer value, gpointer user_data
} }
LotList * LotList *
xaccQueryGetLots (Query * q, query_txn_match_t runtype) xaccQueryGetLots (QofQuery * q, query_txn_match_t runtype)
{ {
GList * splits = qof_query_run(q); GList * splits = qof_query_run(q);
GList * current = NULL; GList * current = NULL;
@ -234,7 +234,7 @@ xaccQueryGetLots (Query * q, query_txn_match_t runtype)
*******************************************************************/ *******************************************************************/
void void
xaccQueryAddAccountMatch(Query *q, AccountList *acct_list, xaccQueryAddAccountMatch(QofQuery *q, AccountList *acct_list,
QofGuidMatch how, QofQueryOp op) QofGuidMatch how, QofQueryOp op)
{ {
GList *list = NULL; GList *list = NULL;
@ -265,7 +265,7 @@ xaccQueryAddAccountMatch(Query *q, AccountList *acct_list,
} }
void void
xaccQueryAddAccountGUIDMatch(Query *q, AccountGUIDList *guid_list, xaccQueryAddAccountGUIDMatch(QofQuery *q, AccountGUIDList *guid_list,
QofGuidMatch how, QofQueryOp op) QofGuidMatch how, QofQueryOp op)
{ {
QofQueryPredData *pred_data; QofQueryPredData *pred_data;
@ -295,7 +295,7 @@ xaccQueryAddAccountGUIDMatch(Query *q, AccountGUIDList *guid_list,
} }
void void
xaccQueryAddSingleAccountMatch(Query *q, Account *acc, QofQueryOp op) xaccQueryAddSingleAccountMatch(QofQuery *q, Account *acc, QofQueryOp op)
{ {
GList *list; GList *list;
const GncGUID *guid; const GncGUID *guid;
@ -312,7 +312,7 @@ xaccQueryAddSingleAccountMatch(Query *q, Account *acc, QofQueryOp op)
} }
void void
xaccQueryAddStringMatch (Query* q, const char *matchstring, xaccQueryAddStringMatch (QofQuery* q, const char *matchstring,
gboolean case_sens, gboolean use_regexp, gboolean case_sens, gboolean use_regexp,
QofQueryOp op, QofQueryOp op,
const char * path, ...) const char * path, ...)
@ -339,7 +339,7 @@ xaccQueryAddStringMatch (Query* q, const char *matchstring,
} }
void void
xaccQueryAddNumericMatch (Query *q, gnc_numeric amount, QofNumericMatch sign, xaccQueryAddNumericMatch (QofQuery *q, gnc_numeric amount, QofNumericMatch sign,
QofQueryCompare how, QofQueryOp op, QofQueryCompare how, QofQueryOp op,
const char * path, ...) const char * path, ...)
{ {
@ -371,12 +371,12 @@ xaccQueryAddNumericMatch (Query *q, gnc_numeric amount, QofNumericMatch sign,
*/ */
void void
xaccQueryAddDateMatchTS (Query * q, xaccQueryAddDateMatchTS (QofQuery * q,
gboolean use_start, Timespec sts, gboolean use_start, Timespec sts,
gboolean use_end, Timespec ets, gboolean use_end, Timespec ets,
QofQueryOp op) QofQueryOp op)
{ {
Query *tmp_q = NULL; QofQuery *tmp_q = NULL;
QofQueryPredData *pred_data; QofQueryPredData *pred_data;
GSList *param_list; GSList *param_list;
@ -416,7 +416,7 @@ xaccQueryAddDateMatchTS (Query * q,
} }
void void
xaccQueryGetDateMatchTS (Query * q, xaccQueryGetDateMatchTS (QofQuery * q,
Timespec * sts, Timespec * sts,
Timespec * ets) Timespec * ets)
{ {
@ -448,7 +448,7 @@ xaccQueryGetDateMatchTS (Query * q,
********************************************************************/ ********************************************************************/
void void
xaccQueryAddDateMatch(Query * q, xaccQueryAddDateMatch(QofQuery * q,
gboolean use_start, int sday, int smonth, int syear, gboolean use_start, int sday, int smonth, int syear,
gboolean use_end, int eday, int emonth, int eyear, gboolean use_end, int eday, int emonth, int eyear,
QofQueryOp op) QofQueryOp op)
@ -467,7 +467,7 @@ xaccQueryAddDateMatch(Query * q,
********************************************************************/ ********************************************************************/
void void
xaccQueryAddDateMatchTT(Query * q, xaccQueryAddDateMatchTT(QofQuery * q,
gboolean use_start, gboolean use_start,
time_t stt, time_t stt,
gboolean use_end, gboolean use_end,
@ -490,7 +490,7 @@ xaccQueryAddDateMatchTT(Query * q,
} }
void void
xaccQueryGetDateMatchTT (Query * q, xaccQueryGetDateMatchTT (QofQuery * q,
time_t * stt, time_t * stt,
time_t * ett) time_t * ett)
{ {
@ -504,7 +504,7 @@ xaccQueryGetDateMatchTT (Query * q,
} }
void void
xaccQueryAddClearedMatch(Query * q, cleared_match_t how, QofQueryOp op) xaccQueryAddClearedMatch(QofQuery * q, cleared_match_t how, QofQueryOp op)
{ {
QofQueryPredData *pred_data; QofQueryPredData *pred_data;
GSList *param_list; GSList *param_list;
@ -536,7 +536,7 @@ xaccQueryAddClearedMatch(Query * q, cleared_match_t how, QofQueryOp op)
} }
void void
xaccQueryAddGUIDMatch(Query * q, const GncGUID *guid, xaccQueryAddGUIDMatch(QofQuery * q, const GncGUID *guid,
QofIdType id_type, QofQueryOp op) QofIdType id_type, QofQueryOp op)
{ {
GSList *param_list = NULL; GSList *param_list = NULL;
@ -588,7 +588,7 @@ xaccQueryAddKVPMatch(QofQuery *q, GSList *path, const KvpValue *value,
*******************************************************************/ *******************************************************************/
time_t time_t
xaccQueryGetEarliestDateFound(Query * q) xaccQueryGetEarliestDateFound(QofQuery * q)
{ {
GList * spl; GList * spl;
Split * sp; Split * sp;
@ -617,7 +617,7 @@ xaccQueryGetEarliestDateFound(Query * q)
*******************************************************************/ *******************************************************************/
time_t time_t
xaccQueryGetLatestDateFound(Query * q) xaccQueryGetLatestDateFound(QofQuery * q)
{ {
Split * sp; Split * sp;
GList * spl; GList * spl;
@ -639,7 +639,7 @@ xaccQueryGetLatestDateFound(Query * q)
} }
void void
xaccQueryAddDescriptionMatch(Query *q, const char *m, gboolean c, gboolean r, xaccQueryAddDescriptionMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
QofQueryOp o) QofQueryOp o)
{ {
xaccQueryAddStringMatch ((q), (m), (c), (r), (o), SPLIT_TRANS, xaccQueryAddStringMatch ((q), (m), (c), (r), (o), SPLIT_TRANS,
@ -647,7 +647,7 @@ xaccQueryAddDescriptionMatch(Query *q, const char *m, gboolean c, gboolean r,
} }
void void
xaccQueryAddNumberMatch(Query *q, const char *m, gboolean c, gboolean r, xaccQueryAddNumberMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
QofQueryOp o) QofQueryOp o)
{ {
xaccQueryAddStringMatch ((q), (m), (c), (r), (o), SPLIT_TRANS, xaccQueryAddStringMatch ((q), (m), (c), (r), (o), SPLIT_TRANS,
@ -655,21 +655,21 @@ xaccQueryAddNumberMatch(Query *q, const char *m, gboolean c, gboolean r,
} }
void void
xaccQueryAddActionMatch(Query *q, const char *m, gboolean c, gboolean r, xaccQueryAddActionMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
QofQueryOp o) QofQueryOp o)
{ {
xaccQueryAddStringMatch ((q), (m), (c), (r), (o), SPLIT_ACTION, NULL); xaccQueryAddStringMatch ((q), (m), (c), (r), (o), SPLIT_ACTION, NULL);
} }
void void
xaccQueryAddMemoMatch(Query *q, const char *m, gboolean c, gboolean r, xaccQueryAddMemoMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
QofQueryOp o) QofQueryOp o)
{ {
xaccQueryAddStringMatch ((q), (m), (c), (r), (o), SPLIT_MEMO, NULL); xaccQueryAddStringMatch ((q), (m), (c), (r), (o), SPLIT_MEMO, NULL);
} }
void void
xaccQueryAddValueMatch(Query *q, gnc_numeric amt, QofNumericMatch sgn, xaccQueryAddValueMatch(QofQuery *q, gnc_numeric amt, QofNumericMatch sgn,
QofQueryCompare how, QofQueryOp op) QofQueryCompare how, QofQueryOp op)
{ {
xaccQueryAddNumericMatch ((q), (amt), (sgn), (how), (op), xaccQueryAddNumericMatch ((q), (amt), (sgn), (how), (op),
@ -677,7 +677,7 @@ xaccQueryAddValueMatch(Query *q, gnc_numeric amt, QofNumericMatch sgn,
} }
void void
xaccQueryAddSharePriceMatch(Query *q, gnc_numeric amt, QofQueryCompare how, xaccQueryAddSharePriceMatch(QofQuery *q, gnc_numeric amt, QofQueryCompare how,
QofQueryOp op) QofQueryOp op)
{ {
xaccQueryAddNumericMatch ((q), (amt), QOF_NUMERIC_MATCH_ANY, (how), (op), xaccQueryAddNumericMatch ((q), (amt), QOF_NUMERIC_MATCH_ANY, (how), (op),
@ -685,7 +685,7 @@ xaccQueryAddSharePriceMatch(Query *q, gnc_numeric amt, QofQueryCompare how,
} }
void void
xaccQueryAddSharesMatch(Query *q, gnc_numeric amt, QofQueryCompare how, xaccQueryAddSharesMatch(QofQuery *q, gnc_numeric amt, QofQueryCompare how,
QofQueryOp op) QofQueryOp op)
{ {
xaccQueryAddNumericMatch ((q), (amt), QOF_NUMERIC_MATCH_ANY, (how), (op), xaccQueryAddNumericMatch ((q), (amt), QOF_NUMERIC_MATCH_ANY, (how), (op),
@ -693,7 +693,7 @@ xaccQueryAddSharesMatch(Query *q, gnc_numeric amt, QofQueryCompare how,
} }
void void
xaccQueryAddBalanceMatch(Query *q, QofQueryCompare bal, QofQueryOp op) xaccQueryAddBalanceMatch(QofQuery *q, QofQueryCompare bal, QofQueryOp op)
{ {
xaccQueryAddNumericMatch( xaccQueryAddNumericMatch(
(q), gnc_numeric_zero(), QOF_NUMERIC_MATCH_ANY, (q), gnc_numeric_zero(), QOF_NUMERIC_MATCH_ANY,

View File

@ -62,7 +62,7 @@ typedef enum
* represented at most once in the returned list. The caller must * represented at most once in the returned list. The caller must
* free the GList. * free the GList.
*/ */
SplitList * xaccQueryGetSplitsUniqueTrans(Query *q); SplitList * xaccQueryGetSplitsUniqueTrans(QofQuery *q);
/** /**
* The xaccQueryGetTransactions() routine returns a list of * The xaccQueryGetTransactions() routine returns a list of
@ -85,56 +85,56 @@ SplitList * xaccQueryGetSplitsUniqueTrans(Query *q);
* matching accounts, whereas 'AND' acts as a boolean-AND * matching accounts, whereas 'AND' acts as a boolean-AND
* for matching accounts. Whew. Got that? * for matching accounts. Whew. Got that?
*/ */
TransList * xaccQueryGetTransactions(Query * q, query_txn_match_t type); TransList * xaccQueryGetTransactions(QofQuery * q, query_txn_match_t type);
/** /**
* The xaccQueryGetLots() routine is just like GetTransactions() except * The xaccQueryGetLots() routine is just like GetTransactions() except
* it returns a list of Lots. * it returns a list of Lots.
* *
*/ */
LotList * xaccQueryGetLots(Query * q, query_txn_match_t type); LotList * xaccQueryGetLots(QofQuery * q, query_txn_match_t type);
/******************************************************************* /*******************************************************************
* match-adding API * match-adding API
*******************************************************************/ *******************************************************************/
void xaccQueryAddAccountMatch(Query *, AccountList *, void xaccQueryAddAccountMatch(QofQuery *, AccountList *,
QofGuidMatch how, QofQueryOp op); QofGuidMatch how, QofQueryOp op);
void xaccQueryAddAccountGUIDMatch(Query *, AccountGUIDList *, void xaccQueryAddAccountGUIDMatch(QofQuery *, AccountGUIDList *,
QofGuidMatch, QofQueryOp); QofGuidMatch, QofQueryOp);
void xaccQueryAddSingleAccountMatch(Query *, Account *, QofQueryOp); void xaccQueryAddSingleAccountMatch(QofQuery *, Account *, QofQueryOp);
void xaccQueryAddStringMatch (Query* q, const char *matchstring, void xaccQueryAddStringMatch (QofQuery* q, const char *matchstring,
gboolean case_sens, gboolean use_regexp, gboolean case_sens, gboolean use_regexp,
QofQueryOp op, QofQueryOp op,
const char * path, ...); const char * path, ...);
void void
xaccQueryAddDescriptionMatch(Query *q, const char *m, gboolean c, gboolean r, xaccQueryAddDescriptionMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
QofQueryOp o); QofQueryOp o);
void void
xaccQueryAddNumberMatch(Query *q, const char *m, gboolean c, gboolean r, xaccQueryAddNumberMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
QofQueryOp o); QofQueryOp o);
void void
xaccQueryAddActionMatch(Query *q, const char *m, gboolean c, gboolean r, xaccQueryAddActionMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
QofQueryOp o); QofQueryOp o);
void void
xaccQueryAddMemoMatch(Query *q, const char *m, gboolean c, gboolean r, xaccQueryAddMemoMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
QofQueryOp o); QofQueryOp o);
void void
xaccQueryAddValueMatch(Query *q, gnc_numeric amt, QofNumericMatch sgn, xaccQueryAddValueMatch(QofQuery *q, gnc_numeric amt, QofNumericMatch sgn,
QofQueryCompare how, QofQueryOp op); QofQueryCompare how, QofQueryOp op);
void void
xaccQueryAddSharePriceMatch(Query *q, gnc_numeric amt, QofQueryCompare how, xaccQueryAddSharePriceMatch(QofQuery *q, gnc_numeric amt, QofQueryCompare how,
QofQueryOp op); QofQueryOp op);
void void
xaccQueryAddSharesMatch(Query *q, gnc_numeric amt, QofQueryCompare how, xaccQueryAddSharesMatch(QofQuery *q, gnc_numeric amt, QofQueryCompare how,
QofQueryOp op); QofQueryOp op);
void void
xaccQueryAddBalanceMatch(Query *q, QofQueryCompare bal, QofQueryOp op); xaccQueryAddBalanceMatch(QofQuery *q, QofQueryCompare bal, QofQueryOp op);
void xaccQueryAddNumericMatch (Query *q, gnc_numeric amount, void xaccQueryAddNumericMatch (QofQuery *q, gnc_numeric amount,
QofNumericMatch sign, QofQueryCompare how, QofNumericMatch sign, QofQueryCompare how,
QofQueryOp op, const char * path, ...); QofQueryOp op, const char * path, ...);
@ -147,22 +147,22 @@ void xaccQueryAddNumericMatch (Query *q, gnc_numeric amount,
* all transactions are matched. * all transactions are matched.
*/ */
void xaccQueryAddDateMatch(Query * q, gboolean use_start, void xaccQueryAddDateMatch(QofQuery * q, gboolean use_start,
int sday, int smonth, int syear, int sday, int smonth, int syear,
gboolean use_end, int eday, int emonth, int eyear, gboolean use_end, int eday, int emonth, int eyear,
QofQueryOp op); QofQueryOp op);
void xaccQueryAddDateMatchTS(Query * q, void xaccQueryAddDateMatchTS(QofQuery * q,
gboolean use_start, Timespec sts, gboolean use_start, Timespec sts,
gboolean use_end, Timespec ets, gboolean use_end, Timespec ets,
QofQueryOp op); QofQueryOp op);
void xaccQueryAddDateMatchTT(Query * q, void xaccQueryAddDateMatchTT(QofQuery * q,
gboolean use_start, time_t stt, gboolean use_start, time_t stt,
gboolean use_end, time_t ett, gboolean use_end, time_t ett,
QofQueryOp op); QofQueryOp op);
void xaccQueryGetDateMatchTS (Query * q, void xaccQueryGetDateMatchTS (QofQuery * q,
Timespec * sts, Timespec * sts,
Timespec * ets); Timespec * ets);
void xaccQueryGetDateMatchTT (Query * q, void xaccQueryGetDateMatchTT (QofQuery * q,
time_t * stt, time_t * stt,
time_t * ett); time_t * ett);
@ -177,19 +177,19 @@ typedef enum
CLEARED_ALL = 0x001F CLEARED_ALL = 0x001F
} cleared_match_t; } cleared_match_t;
void xaccQueryAddClearedMatch(Query * q, cleared_match_t how, QofQueryOp op); void xaccQueryAddClearedMatch(QofQuery * q, cleared_match_t how, QofQueryOp op);
void xaccQueryAddGUIDMatch(Query * q, const GncGUID *guid, void xaccQueryAddGUIDMatch(QofQuery * q, const GncGUID *guid,
QofIdType id_type, QofQueryOp op); QofIdType id_type, QofQueryOp op);
/** given kvp value is on right side of comparison */ /** given kvp value is on right side of comparison */
void xaccQueryAddKVPMatch(Query *q, GSList *path, const KvpValue *value, void xaccQueryAddKVPMatch(QofQuery *q, GSList *path, const KvpValue *value,
QofQueryCompare how, QofIdType id_type, QofQueryCompare how, QofIdType id_type,
QofQueryOp op); QofQueryOp op);
/******************************************************************* /*******************************************************************
* compatibility interface with old Query API * compatibility interface with old QofQuery API
*******************************************************************/ *******************************************************************/
time_t xaccQueryGetEarliestDateFound(Query * q); time_t xaccQueryGetEarliestDateFound(QofQuery * q);
time_t xaccQueryGetLatestDateFound(Query * q); time_t xaccQueryGetLatestDateFound(QofQuery * q);
#endif #endif

View File

@ -1,4 +0,0 @@
#include "qof.h"
#define QueryPredData_t QofQueryPredData*

View File

@ -1,7 +0,0 @@
#include "qof.h"
#define query_object_def _QofParam
#define QueryObjectDef QofParam

View File

@ -1,169 +0,0 @@
/********************************************************************\
* QueryP.h : private, non-portable Query API structs *
* Copyright 2000 Bill Gribble <grib@billgribble.com> *
* Copyright 2002 Linas Vepstas <linas@linas.org> *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as *
* published by the Free Software Foundation; either version 2 of *
* the License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License*
* along with this program; if not, contact: *
* *
* Free Software Foundation Voice: +1-617-542-5942 *
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#ifndef GNUCASH_QUERY_P_H
#define GNUCASH_QUERY_P_H
#include "Query.h"
#if 0
typedef struct
{
pd_type_t type;
pr_type_t term_type;
int sense;
} BasePredicateData;
typedef struct
{
pd_type_t type;
pr_type_t term_type;
int sense;
acct_match_t how;
AccountList *accounts;
AccountGUIDList *account_guids;
} AccountPredicateData;
typedef struct
{
pd_type_t type;
pr_type_t term_type;
int sense;
amt_match_t how;
amt_match_sgn_t amt_sgn;
double amount;
} AmountPredicateData;
typedef struct
{
pd_type_t type;
pr_type_t term_type;
int sense;
balance_match_t how;
} BalancePredicateData;
typedef struct
{
pd_type_t type;
pr_type_t term_type;
int sense;
book_match_t how;
BookList *books;
BookGUIDList *book_guids;
} BookPredicateData;
typedef struct
{
pd_type_t type;
pr_type_t term_type;
int sense;
cleared_match_t how;
} ClearedPredicateData;
typedef struct
{
pd_type_t type;
pr_type_t term_type;
int sense;
GncGUID guid;
QofIdType id_type;
} GUIDPredicateData;
typedef struct
{
pd_type_t type;
pr_type_t term_type;
int sense;
int use_start;
Timespec start;
int use_end;
Timespec end;
} DatePredicateData;
typedef struct
{
pd_type_t type;
pr_type_t term_type;
int sense;
kvp_match_t how;
kvp_match_where_t where;
GSList *path;
KvpValue *value;
} KVPPredicateData;
typedef struct
{
pd_type_t type;
pr_type_t term_type;
int sense;
int how;
int data;
} MiscPredicateData;
typedef struct
{
pd_type_t type;
pr_type_t term_type;
int sense;
int case_sens;
int use_regexp;
char *matchstring;
regex_t compiled;
} StringPredicateData;
typedef union
{
pd_type_t type;
BasePredicateData base;
AccountPredicateData acct;
AmountPredicateData amount;
BalancePredicateData balance;
BookPredicateData book;
ClearedPredicateData cleared;
DatePredicateData date;
GUIDPredicateData guid;
KVPPredicateData kvp;
StringPredicateData str;
MiscPredicateData misc;
} PredicateData;
typedef int (* Predicate)(Split * to_test, PredicateData * test_data);
typedef struct
{
PredicateData data;
Predicate p;
} QueryTerm;
void xaccQueryAddMiscMatch(Query * q, Predicate p, int how, int data,
QofQueryOp op);
void xaccQueryAddPredicate (Query * q, PredicateData *pred, QofQueryOp op);
/* This is useful for network systems */
Predicate xaccQueryGetPredicate (pr_type_t term_type);
#endif /* 0 */
#endif /* GNUCASH_QUERY_P_H */

View File

@ -1124,7 +1124,7 @@ gnc_scm2query_term_query_v2 (SCM qt_scm)
qof_query_add_term (q, path, pd, QOF_QUERY_OR); qof_query_add_term (q, path, pd, QOF_QUERY_OR);
if (inverted) if (inverted)
{ {
Query *outq = qof_query_invert (q); QofQuery *outq = qof_query_invert (q);
qof_query_destroy (q); qof_query_destroy (q);
q = outq; q = outq;
} }
@ -1491,7 +1491,7 @@ gnc_scm2query_term_query_v1 (SCM query_term_scm)
if (ok) if (ok)
{ {
Query *out_q; QofQuery *out_q;
if (sense) if (sense)
out_q = q; out_q = q;
@ -1508,7 +1508,7 @@ gnc_scm2query_term_query_v1 (SCM query_term_scm)
return NULL; return NULL;
} }
static Query * static QofQuery *
gnc_scm2query_term_query (SCM query_term_scm, query_version_t vers) gnc_scm2query_term_query (SCM query_term_scm, query_version_t vers)
{ {
switch (vers) switch (vers)
@ -1551,10 +1551,10 @@ gnc_query_terms2scm (const GList *terms)
return scm_reverse (or_terms); return scm_reverse (or_terms);
} }
static Query * static QofQuery *
gnc_scm2query_and_terms (SCM and_terms, query_version_t vers) gnc_scm2query_and_terms (SCM and_terms, query_version_t vers)
{ {
Query *q = NULL; QofQuery *q = NULL;
if (!scm_is_list (and_terms)) if (!scm_is_list (and_terms))
return NULL; return NULL;
@ -1570,8 +1570,8 @@ gnc_scm2query_and_terms (SCM and_terms, query_version_t vers)
q = gnc_scm2query_term_query (term, vers); q = gnc_scm2query_term_query (term, vers);
else else
{ {
Query *q_and; QofQuery *q_and;
Query *q_new; QofQuery *q_new;
q_and = gnc_scm2query_term_query (term, vers); q_and = gnc_scm2query_term_query (term, vers);
@ -1591,10 +1591,10 @@ gnc_scm2query_and_terms (SCM and_terms, query_version_t vers)
return q; return q;
} }
static Query * static QofQuery *
gnc_scm2query_or_terms (SCM or_terms, query_version_t vers) gnc_scm2query_or_terms (SCM or_terms, query_version_t vers)
{ {
Query *q = NULL; QofQuery *q = NULL;
if (!scm_is_list (or_terms)) if (!scm_is_list (or_terms))
return NULL; return NULL;
@ -1612,8 +1612,8 @@ gnc_scm2query_or_terms (SCM or_terms, query_version_t vers)
q = gnc_scm2query_and_terms (and_terms, vers); q = gnc_scm2query_and_terms (and_terms, vers);
else else
{ {
Query *q_or; QofQuery *q_or;
Query *q_new; QofQuery *q_new;
q_or = gnc_scm2query_and_terms (and_terms, vers); q_or = gnc_scm2query_and_terms (and_terms, vers);
@ -1856,10 +1856,10 @@ gnc_query_sort_to_list (const gchar * symbol)
return path; return path;
} }
static Query * static QofQuery *
gnc_scm2query_v1 (SCM query_scm) gnc_scm2query_v1 (SCM query_scm)
{ {
Query *q = NULL; QofQuery *q = NULL;
gboolean ok = TRUE; gboolean ok = TRUE;
const gchar * primary_sort = NULL; const gchar * primary_sort = NULL;
const gchar * secondary_sort = NULL; const gchar * secondary_sort = NULL;
@ -2008,10 +2008,10 @@ gnc_scm2query_v1 (SCM query_scm)
return NULL; return NULL;
} }
static Query * static QofQuery *
gnc_scm2query_v2 (SCM query_scm) gnc_scm2query_v2 (SCM query_scm)
{ {
Query *q = NULL; QofQuery *q = NULL;
gboolean ok = TRUE; gboolean ok = TRUE;
const gchar * search_for = NULL; const gchar * search_for = NULL;
GSList *sp1 = NULL, *sp2 = NULL, *sp3 = NULL; GSList *sp1 = NULL, *sp2 = NULL, *sp3 = NULL;
@ -2142,12 +2142,12 @@ gnc_scm2query_v2 (SCM query_scm)
return NULL; return NULL;
} }
Query * QofQuery *
gnc_scm2query (SCM query_scm) gnc_scm2query (SCM query_scm)
{ {
SCM q_type; SCM q_type;
const gchar *type; const gchar *type;
Query *q = NULL; QofQuery *q = NULL;
/* Not a list or NULL? No need to go further */ /* Not a list or NULL? No need to go further */
if (!scm_is_list (query_scm) || scm_is_null (query_scm)) if (!scm_is_list (query_scm) || scm_is_null (query_scm))

View File

@ -60,8 +60,8 @@ GSList * gnc_query_scm2path (SCM path_scm);
/* These two functions convert a query object into a scheme /* These two functions convert a query object into a scheme
* representation of the query and vice-versa. They do not * representation of the query and vice-versa. They do not
* simply convert a query pointer to a guile query pointer! */ * simply convert a query pointer to a guile query pointer! */
SCM gnc_query2scm (Query * q); SCM gnc_query2scm (QofQuery * q);
Query * gnc_scm2query (SCM query_scm); QofQuery * gnc_scm2query (SCM query_scm);
SCM gnc_gint64_to_scm(const gint64 x); SCM gnc_gint64_to_scm(const gint64 x);
gint64 gnc_scm_to_gint64(SCM num); gint64 gnc_scm_to_gint64(SCM num);

View File

@ -79,7 +79,7 @@ static void * search(QofBook * book, const gchar *id, void * object, QofIdType t
GList *result; GList *result;
QofQuery *q; QofQuery *q;
gint len; gint len;
QueryPredData_t string_pred_data; QofQueryPredData* string_pred_data;
g_return_val_if_fail (type, NULL); g_return_val_if_fail (type, NULL);
g_return_val_if_fail (id, NULL); g_return_val_if_fail (id, NULL);
g_return_val_if_fail (book, NULL); g_return_val_if_fail (book, NULL);

View File

@ -32,7 +32,7 @@
#include "gncInvoice.h" #include "gncInvoice.h"
#include "gncBusiness.h" #include "gncBusiness.h"
// query // query
#include "QueryCore.h" #include "qof.h"
#include "qof.h" #include "qof.h"
#include "GNCId.h" #include "GNCId.h"

View File

@ -1 +0,0 @@
#include "qof.h"

View File

@ -1657,7 +1657,7 @@ typedef enum
} sort_type_t; } sort_type_t;
static void static void
set_query_sort (Query *q, sort_type_t sort_code) set_query_sort (QofQuery *q, sort_type_t sort_code)
{ {
GSList *p1 = NULL, *p2 = NULL, *p3 = NULL, *standard; GSList *p1 = NULL, *p2 = NULL, *p3 = NULL, *standard;
@ -1712,10 +1712,10 @@ set_query_sort (Query *q, sort_type_t sort_code)
qof_query_set_sort_order (q, p1, p2, p3); qof_query_set_sort_order (q, p1, p2, p3);
} }
Query * QofQuery *
get_random_query(void) get_random_query(void)
{ {
Query *q; QofQuery *q;
int num_terms; int num_terms;
num_terms = get_random_int_in_range (1, 3); num_terms = get_random_int_in_range (1, 3);
@ -1972,7 +1972,7 @@ typedef struct
{ {
QofIdType where; QofIdType where;
GSList *path; GSList *path;
Query *q; QofQuery *q;
} KVPQueryData; } KVPQueryData;
static void static void
@ -1997,7 +1997,7 @@ add_kvp_value_query (const char *key, KvpValue *value, gpointer data)
} }
static void static void
add_kvp_query (Query *q, KvpFrame *frame, QofIdType where) add_kvp_query (QofQuery *q, KvpFrame *frame, QofIdType where)
{ {
KVPQueryData kqd; KVPQueryData kqd;
@ -2036,12 +2036,12 @@ get_random_query_type (void)
} }
} }
Query * QofQuery *
make_trans_query (Transaction *trans, TestQueryTypes query_types) make_trans_query (Transaction *trans, TestQueryTypes query_types)
{ {
Account *a; Account *a;
gnc_numeric n; gnc_numeric n;
Query *q; QofQuery *q;
Split *s; Split *s;
if (query_types == RANDOM_QT) if (query_types == RANDOM_QT)

View File

@ -64,8 +64,8 @@ typedef enum
ALL_QT = (1 << 8) - 1 ALL_QT = (1 << 8) - 1
} TestQueryTypes; } TestQueryTypes;
Query * get_random_query(void); QofQuery * get_random_query(void);
Query * make_trans_query (Transaction *trans, TestQueryTypes query_types); QofQuery * make_trans_query (Transaction *trans, TestQueryTypes query_types);
TestQueryTypes get_random_query_type (void); TestQueryTypes get_random_query_type (void);
void trans_query_include_price (gboolean include_amounts); void trans_query_include_price (gboolean include_amounts);

View File

@ -36,7 +36,7 @@ test_trans_query (Transaction *trans, gpointer data)
{ {
QofBook *book = data; QofBook *book = data;
GList *list; GList *list;
Query *q; QofQuery *q;
q = make_trans_query (trans, ALL_QT); q = make_trans_query (trans, ALL_QT);
qof_query_set_book (q, book); qof_query_set_book (q, book);

View File

@ -12,10 +12,10 @@
static void static void
test_query (Query *q) test_query (QofQuery *q)
{ {
SCM scm_q; SCM scm_q;
Query *q2; QofQuery *q2;
scm_q = gnc_query2scm (q); scm_q = gnc_query2scm (q);
@ -42,7 +42,7 @@ test_query (Query *q)
static void static void
run_tests (void) run_tests (void)
{ {
Query *q; QofQuery *q;
int i; int i;
test_query (NULL); test_query (NULL);

View File

@ -35,10 +35,10 @@
#include "gnc-gui-query.h" #include "gnc-gui-query.h"
#include "gnc-query-list.h" #include "gnc-query-list.h"
#include "gnc-gconf-utils.h" #include "gnc-gconf-utils.h"
#include "gncObject.h"
#include "qof.h" #include "qof.h"
#include "QueryObject.h" #include "qof.h"
#include "QueryCore.h" #include "qof.h"
#include "qof.h"
#include "Transaction.h" /* for the SPLIT_* and TRANS_* */ #include "Transaction.h" /* for the SPLIT_* and TRANS_* */
@ -352,7 +352,7 @@ search_update_query (GNCSearchWindow *sw)
QofQuery *q, *q2, *new_q; QofQuery *q, *q2, *new_q;
GList *node; GList *node;
QofQueryOp op; QofQueryOp op;
QueryPredData_t pdata; QofQueryPredData* pdata;
if (sw->grouping == GNC_SEARCH_MATCH_ANY) if (sw->grouping == GNC_SEARCH_MATCH_ANY)
op = QOF_QUERY_OR; op = QOF_QUERY_OR;

View File

@ -37,9 +37,9 @@
#include <stdio.h> #include <stdio.h>
#include "gnc-component-manager.h" #include "gnc-component-manager.h"
#include "QueryCore.h" #include "qof.h"
#include "QueryObject.h" #include "qof.h"
#include "gncObject.h" #include "qof.h"
#include "gnc-general-search.h" #include "gnc-general-search.h"
#define GNCGENERALSEARCH_CLASS "gnc-general-search-widget" #define GNCGENERALSEARCH_CLASS "gnc-general-search-widget"

View File

@ -29,7 +29,7 @@
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include "Account.h" #include "Account.h"
#include "QueryCore.h" #include "qof.h"
#include "gnc-tree-view-account.h" #include "gnc-tree-view-account.h"
#include "gnc-gui-query.h" #include "gnc-gui-query.h"
@ -41,7 +41,7 @@
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe); static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
static gboolean gncs_validate (GNCSearchCoreType *fe); static gboolean gncs_validate (GNCSearchCoreType *fe);
static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe); static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe);
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe); static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe);
static void gnc_search_account_class_init (GNCSearchAccountClass *class); static void gnc_search_account_class_init (GNCSearchAccountClass *class);
static void gnc_search_account_init (GNCSearchAccount *gspaper); static void gnc_search_account_init (GNCSearchAccount *gspaper);
@ -316,7 +316,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
return box; return box;
} }
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe) static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
{ {
GNCSearchAccountPrivate *priv; GNCSearchAccountPrivate *priv;
GNCSearchAccount *fi = (GNCSearchAccount *)fe; GNCSearchAccount *fi = (GNCSearchAccount *)fe;

View File

@ -28,7 +28,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include "QueryCore.h" #include "qof.h"
#include "search-boolean.h" #include "search-boolean.h"
#include "search-core-utils.h" #include "search-core-utils.h"
@ -38,7 +38,7 @@
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe); static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
static gboolean gncs_validate (GNCSearchCoreType *fe); static gboolean gncs_validate (GNCSearchCoreType *fe);
static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe); static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe);
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe); static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe);
static void gnc_search_boolean_class_init (GNCSearchBooleanClass *class); static void gnc_search_boolean_class_init (GNCSearchBooleanClass *class);
static void gnc_search_boolean_init (GNCSearchBoolean *gspaper); static void gnc_search_boolean_init (GNCSearchBoolean *gspaper);
@ -211,7 +211,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
return box; return box;
} }
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe) static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
{ {
GNCSearchBoolean *fi = (GNCSearchBoolean *)fe; GNCSearchBoolean *fi = (GNCSearchBoolean *)fe;

View File

@ -26,7 +26,7 @@
#include <string.h> #include <string.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include "QueryCore.h" #include "qof.h"
#include "qof.h" #include "qof.h"
#include "Account.h" /* for ACCOUNT_MATCH_ALL_TYPE */ #include "Account.h" /* for ACCOUNT_MATCH_ALL_TYPE */
#include "Transaction.h" /* for RECONCILED_MATCH_TYPE */ #include "Transaction.h" /* for RECONCILED_MATCH_TYPE */
@ -193,7 +193,7 @@ gnc_search_core_type_get_widget (GNCSearchCoreType *fe)
* *
* Return value: * Return value:
**/ **/
QueryPredData_t QofQueryPredData*
gnc_search_core_type_get_predicate (GNCSearchCoreType *fe) gnc_search_core_type_get_predicate (GNCSearchCoreType *fe)
{ {
return GNC_SEARCH_CORE_TYPE_GET_CLASS (fe)->get_predicate(fe); return GNC_SEARCH_CORE_TYPE_GET_CLASS (fe)->get_predicate(fe);

View File

@ -22,7 +22,7 @@
#ifndef _GNCSEARCH_CORE_TYPE_H #ifndef _GNCSEARCH_CORE_TYPE_H
#define _GNCSEARCH_CORE_TYPE_H #define _GNCSEARCH_CORE_TYPE_H
#include "QueryCore.h" #include "qof.h"
#include "qof.h" #include "qof.h"
#include "search-param.h" #include "search-param.h"
@ -49,7 +49,7 @@ typedef struct
gboolean (*validate) (GNCSearchCoreType *fe); gboolean (*validate) (GNCSearchCoreType *fe);
GNCSearchCoreType * (*clone) (GNCSearchCoreType *fe); GNCSearchCoreType * (*clone) (GNCSearchCoreType *fe);
GtkWidget * (*get_widget) (GNCSearchCoreType *); GtkWidget * (*get_widget) (GNCSearchCoreType *);
QueryPredData_t (*get_predicate) (GNCSearchCoreType *); QofQueryPredData* (*get_predicate) (GNCSearchCoreType *);
/* signals */ /* signals */
} GNCSearchCoreTypeClass; } GNCSearchCoreTypeClass;
@ -67,7 +67,7 @@ void gnc_search_core_type_editable_enters (GNCSearchCoreType *fe);
gboolean gnc_search_core_type_validate (GNCSearchCoreType *fe); gboolean gnc_search_core_type_validate (GNCSearchCoreType *fe);
GNCSearchCoreType * gnc_search_core_type_clone (GNCSearchCoreType *fe); GNCSearchCoreType * gnc_search_core_type_clone (GNCSearchCoreType *fe);
GtkWidget * gnc_search_core_type_get_widget (GNCSearchCoreType *fe); GtkWidget * gnc_search_core_type_get_widget (GNCSearchCoreType *fe);
QueryPredData_t gnc_search_core_type_get_predicate (GNCSearchCoreType *fe); QofQueryPredData* gnc_search_core_type_get_predicate (GNCSearchCoreType *fe);
/* Register a new type in the Core Type Database */ /* Register a new type in the Core Type Database */
typedef GNCSearchCoreType * (*GNCSearchCoreNew) (void); typedef GNCSearchCoreType * (*GNCSearchCoreNew) (void);

View File

@ -30,7 +30,7 @@
#include "gnc-date.h" #include "gnc-date.h"
#include "gnc-date-edit.h" #include "gnc-date-edit.h"
#include "QueryCore.h" #include "qof.h"
#include "search-date.h" #include "search-date.h"
#include "search-core-utils.h" #include "search-core-utils.h"
@ -42,7 +42,7 @@ static void grab_focus (GNCSearchCoreType *fe);
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe); static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
static gboolean gncs_validate (GNCSearchCoreType *fe); static gboolean gncs_validate (GNCSearchCoreType *fe);
static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe); static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe);
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe); static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe);
static void gnc_search_date_class_init (GNCSearchDateClass *class); static void gnc_search_date_class_init (GNCSearchDateClass *class);
static void gnc_search_date_init (GNCSearchDate *gspaper); static void gnc_search_date_init (GNCSearchDate *gspaper);
@ -260,7 +260,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
return box; return box;
} }
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe) static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
{ {
GNCSearchDate *fi = (GNCSearchDate *)fe; GNCSearchDate *fi = (GNCSearchDate *)fe;
GNCSearchDatePrivate *priv; GNCSearchDatePrivate *priv;

View File

@ -29,7 +29,7 @@
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include "gnc-amount-edit.h" #include "gnc-amount-edit.h"
#include "QueryCore.h" #include "qof.h"
#include "search-double.h" #include "search-double.h"
#include "search-core-utils.h" #include "search-core-utils.h"
@ -41,7 +41,7 @@ static void grab_focus (GNCSearchCoreType *fe);
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe); static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
static gboolean gncs_validate (GNCSearchCoreType *fe); static gboolean gncs_validate (GNCSearchCoreType *fe);
static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe); static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe);
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe); static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe);
static void gnc_search_double_class_init (GNCSearchDoubleClass *class); static void gnc_search_double_class_init (GNCSearchDoubleClass *class);
static void gnc_search_double_init (GNCSearchDouble *gspaper); static void gnc_search_double_init (GNCSearchDouble *gspaper);
@ -254,7 +254,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
return box; return box;
} }
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe) static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
{ {
GNCSearchDouble *fi = (GNCSearchDouble *)fe; GNCSearchDouble *fi = (GNCSearchDouble *)fe;
GNCSearchDoublePrivate *priv ; GNCSearchDoublePrivate *priv ;

View File

@ -29,7 +29,7 @@
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include "gnc-amount-edit.h" #include "gnc-amount-edit.h"
#include "QueryCore.h" #include "qof.h"
#include "search-int64.h" #include "search-int64.h"
#include "search-core-utils.h" #include "search-core-utils.h"
@ -41,7 +41,7 @@ static void grab_focus (GNCSearchCoreType *fe);
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe); static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
static gboolean gncs_validate (GNCSearchCoreType *fe); static gboolean gncs_validate (GNCSearchCoreType *fe);
static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe); static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe);
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe); static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe);
static void gnc_search_int64_class_init (GNCSearchInt64Class *class); static void gnc_search_int64_class_init (GNCSearchInt64Class *class);
static void gnc_search_int64_init (GNCSearchInt64 *gspaper); static void gnc_search_int64_init (GNCSearchInt64 *gspaper);
@ -261,7 +261,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
return box; return box;
} }
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe) static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
{ {
GNCSearchInt64 *fi = (GNCSearchInt64 *)fe; GNCSearchInt64 *fi = (GNCSearchInt64 *)fe;
GNCSearchInt64Private *priv; GNCSearchInt64Private *priv;

View File

@ -29,7 +29,7 @@
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include "gnc-amount-edit.h" #include "gnc-amount-edit.h"
#include "QueryCore.h" #include "qof.h"
#include "search-numeric.h" #include "search-numeric.h"
#include "search-core-utils.h" #include "search-core-utils.h"
@ -41,7 +41,7 @@ static void grab_focus (GNCSearchCoreType *fe);
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe); static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
static gboolean gncs_validate (GNCSearchCoreType *fe); static gboolean gncs_validate (GNCSearchCoreType *fe);
static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe); static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe);
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe); static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe);
static void gnc_search_numeric_class_init (GNCSearchNumericClass *class); static void gnc_search_numeric_class_init (GNCSearchNumericClass *class);
static void gnc_search_numeric_init (GNCSearchNumeric *gspaper); static void gnc_search_numeric_init (GNCSearchNumeric *gspaper);
@ -322,7 +322,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
return box; return box;
} }
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe) static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
{ {
GNCSearchNumeric *fi = (GNCSearchNumeric *)fe; GNCSearchNumeric *fi = (GNCSearchNumeric *)fe;
GNCSearchNumericPrivate *priv; GNCSearchNumericPrivate *priv;

View File

@ -28,7 +28,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include "QueryCore.h" #include "qof.h"
#include "Transaction.h" /* for ?REC */ #include "Transaction.h" /* for ?REC */
#include "search-reconciled.h" #include "search-reconciled.h"
@ -39,7 +39,7 @@
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe); static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
static gboolean gncs_validate (GNCSearchCoreType *fe); static gboolean gncs_validate (GNCSearchCoreType *fe);
static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe); static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe);
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe); static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe);
static void gnc_search_reconciled_class_init (GNCSearchReconciledClass *class); static void gnc_search_reconciled_class_init (GNCSearchReconciledClass *class);
static void gnc_search_reconciled_init (GNCSearchReconciled *gspaper); static void gnc_search_reconciled_init (GNCSearchReconciled *gspaper);
@ -242,7 +242,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
return box; return box;
} }
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe) static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
{ {
GNCSearchReconciled *fi = (GNCSearchReconciled *)fe; GNCSearchReconciled *fi = (GNCSearchReconciled *)fe;
char chars[6]; char chars[6];

View File

@ -33,7 +33,7 @@
#include "search-string.h" #include "search-string.h"
#include "search-core-utils.h" #include "search-core-utils.h"
#include "QueryCore.h" #include "qof.h"
#define d(x) #define d(x)
@ -42,7 +42,7 @@ static void grab_focus (GNCSearchCoreType *fe);
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe); static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
static gboolean gncs_validate (GNCSearchCoreType *fe); static gboolean gncs_validate (GNCSearchCoreType *fe);
static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe); static GtkWidget *gncs_get_widget(GNCSearchCoreType *fe);
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe); static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe);
static void gnc_search_string_class_init (GNCSearchStringClass *class); static void gnc_search_string_class_init (GNCSearchStringClass *class);
static void gnc_search_string_init (GNCSearchString *gspaper); static void gnc_search_string_init (GNCSearchString *gspaper);
@ -335,7 +335,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
return box; return box;
} }
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe) static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
{ {
GNCSearchString *ss = (GNCSearchString *)fe; GNCSearchString *ss = (GNCSearchString *)fe;
QofQueryCompare how; QofQueryCompare how;

View File

@ -30,9 +30,9 @@
#include "gnc-component-manager.h" #include "gnc-component-manager.h"
#include "gnc-query-list.h" #include "gnc-query-list.h"
#include "search-param.h" #include "search-param.h"
#include "QueryCore.h"
#include "qof.h" #include "qof.h"
#include "QueryObject.h" #include "qof.h"
#include "qof.h"
/* Signal codes */ /* Signal codes */
enum enum

View File

@ -30,8 +30,8 @@
#include "gnc-engine.h" #include "gnc-engine.h"
#include "GNCId.h" #include "GNCId.h"
#include "QueryCore.h" #include "qof.h"
#include "QueryObject.h" #include "qof.h"
#include "search-param.h" #include "search-param.h"
@ -183,7 +183,7 @@ gnc_search_param_set_param_path (GNCSearchParam *param,
for (; param_path; param_path = param_path->next) for (; param_path; param_path = param_path->next)
{ {
QofIdType param_name = param_path->data; QofIdType param_name = param_path->data;
const QueryObjectDef *objDef = const QofParam *objDef =
qof_class_get_parameter (search_type, param_name); qof_class_get_parameter (search_type, param_name);
/* If it doesn't exist, then we've reached the end */ /* If it doesn't exist, then we've reached the end */

View File

@ -28,9 +28,9 @@
#include "gnc-ui-util.h" #include "gnc-ui-util.h"
#include "Query.h" #include "Query.h"
#include "QueryCore.h"
#include "qof.h" #include "qof.h"
#include "QueryObject.h" #include "qof.h"
#include "qof.h"
#include "SX-book.h" #include "SX-book.h"
#include "Transaction.h" #include "Transaction.h"
#include "dialog-find-transactions.h" #include "dialog-find-transactions.h"

View File

@ -28,7 +28,7 @@
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include "gnc-date.h" #include "gnc-date.h"
#include "QueryCore.h" #include "qof.h"
#include "qof.h" #include "qof.h"
#include "Transaction.h" #include "Transaction.h"
#include "gnc-ui-util.h" #include "gnc-ui-util.h"

View File

@ -27,7 +27,7 @@
#include "Account.h" #include "Account.h"
#include "Query.h" #include "Query.h"
#include "QueryCore.h" #include "qof.h"
#include "qof.h" #include "qof.h"
#include "SX-book.h" #include "SX-book.h"
#include "Transaction.h" #include "Transaction.h"