mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
50d6165239
commit
88cb0b1b20
@ -36,7 +36,6 @@
|
||||
#include "Account.h"
|
||||
#include "AccountP.h"
|
||||
#include "Query.h"
|
||||
#include "QueryP.h"
|
||||
#include "Scrub.h"
|
||||
#include "Transaction.h"
|
||||
#include "TransactionP.h"
|
||||
|
@ -41,7 +41,7 @@
|
||||
#include "gncInvoice.h"
|
||||
|
||||
#include "gnc-general-search.h"
|
||||
#include "gncObject.h"
|
||||
#include "qof.h"
|
||||
#include "business-gnome-utils.h"
|
||||
#include "dialog-customer.h"
|
||||
#include "dialog-job.h"
|
||||
|
@ -30,8 +30,8 @@
|
||||
#include <libguile.h>
|
||||
#include "swig-runtime.h"
|
||||
|
||||
#include "gncObject.h"
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
#include "qof.h"
|
||||
#include "qof.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;
|
||||
Query *q;
|
||||
QueryPredData_t pred_data;
|
||||
QofQueryPredData* pred_data;
|
||||
time_t end_date;
|
||||
GList *res;
|
||||
gint len;
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
#include "gnc-ui-util.h"
|
||||
#include "gnc-gui-query.h"
|
||||
#include "gncOwner.h"
|
||||
@ -42,7 +42,7 @@
|
||||
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
|
||||
static gboolean gncs_validate (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_init (GNCSearchOwner *gspaper);
|
||||
@ -303,7 +303,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
|
||||
return box;
|
||||
}
|
||||
|
||||
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
{
|
||||
GNCSearchOwner *fi = (GNCSearchOwner *)fe;
|
||||
GNCSearchOwnerPrivate *priv;
|
||||
|
@ -25,8 +25,6 @@ SET (libgncmod_engine_HEADERS
|
||||
SX-book.h
|
||||
SX-ttinfo.h
|
||||
Query.h
|
||||
QueryObject.h
|
||||
QueryCore.h
|
||||
Scrub.h
|
||||
Scrub2.h
|
||||
Scrub3.h
|
||||
@ -46,7 +44,6 @@ SET (libgncmod_engine_HEADERS
|
||||
gnc-pricedb.h
|
||||
gnc-session-scm.h
|
||||
gnc-session.h
|
||||
gncObject.h
|
||||
kvp-scm.h
|
||||
policy.h
|
||||
gncAddress.h
|
||||
|
@ -72,8 +72,6 @@ gncinclude_HEADERS = \
|
||||
SX-book.h \
|
||||
SX-ttinfo.h \
|
||||
Query.h \
|
||||
QueryObject.h \
|
||||
QueryCore.h \
|
||||
Scrub.h \
|
||||
Scrub2.h \
|
||||
Scrub3.h \
|
||||
@ -93,7 +91,6 @@ gncinclude_HEADERS = \
|
||||
gnc-pricedb.h \
|
||||
gnc-session.h \
|
||||
gnc-session-scm.h \
|
||||
gncObject.h \
|
||||
kvp-scm.h \
|
||||
policy.h \
|
||||
gncAddress.h \
|
||||
@ -124,7 +121,6 @@ gncinclude_HEADERS = \
|
||||
|
||||
noinst_HEADERS = \
|
||||
AccountP.h \
|
||||
QueryP.h \
|
||||
ScrubP.h \
|
||||
SplitP.h \
|
||||
SX-book.h \
|
||||
|
@ -63,7 +63,7 @@ build_param_list_internal (const char *first, va_list rest)
|
||||
********************************************************************/
|
||||
|
||||
SplitList *
|
||||
xaccQueryGetSplitsUniqueTrans(Query *q)
|
||||
xaccQueryGetSplitsUniqueTrans(QofQuery *q)
|
||||
{
|
||||
GList * splits = qof_query_run(q);
|
||||
GList * current;
|
||||
@ -115,7 +115,7 @@ query_match_any_filter_func(gpointer key, gpointer value, gpointer user_data)
|
||||
}
|
||||
|
||||
TransList *
|
||||
xaccQueryGetTransactions (Query * q, query_txn_match_t runtype)
|
||||
xaccQueryGetTransactions (QofQuery * q, query_txn_match_t runtype)
|
||||
{
|
||||
GList * splits = qof_query_run(q);
|
||||
GList * current = NULL;
|
||||
@ -186,7 +186,7 @@ query_match_any_lot_filter_func(gpointer key, gpointer value, gpointer user_data
|
||||
}
|
||||
|
||||
LotList *
|
||||
xaccQueryGetLots (Query * q, query_txn_match_t runtype)
|
||||
xaccQueryGetLots (QofQuery * q, query_txn_match_t runtype)
|
||||
{
|
||||
GList * splits = qof_query_run(q);
|
||||
GList * current = NULL;
|
||||
@ -234,7 +234,7 @@ xaccQueryGetLots (Query * q, query_txn_match_t runtype)
|
||||
*******************************************************************/
|
||||
|
||||
void
|
||||
xaccQueryAddAccountMatch(Query *q, AccountList *acct_list,
|
||||
xaccQueryAddAccountMatch(QofQuery *q, AccountList *acct_list,
|
||||
QofGuidMatch how, QofQueryOp op)
|
||||
{
|
||||
GList *list = NULL;
|
||||
@ -265,7 +265,7 @@ xaccQueryAddAccountMatch(Query *q, AccountList *acct_list,
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddAccountGUIDMatch(Query *q, AccountGUIDList *guid_list,
|
||||
xaccQueryAddAccountGUIDMatch(QofQuery *q, AccountGUIDList *guid_list,
|
||||
QofGuidMatch how, QofQueryOp op)
|
||||
{
|
||||
QofQueryPredData *pred_data;
|
||||
@ -295,7 +295,7 @@ xaccQueryAddAccountGUIDMatch(Query *q, AccountGUIDList *guid_list,
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddSingleAccountMatch(Query *q, Account *acc, QofQueryOp op)
|
||||
xaccQueryAddSingleAccountMatch(QofQuery *q, Account *acc, QofQueryOp op)
|
||||
{
|
||||
GList *list;
|
||||
const GncGUID *guid;
|
||||
@ -312,7 +312,7 @@ xaccQueryAddSingleAccountMatch(Query *q, Account *acc, QofQueryOp op)
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddStringMatch (Query* q, const char *matchstring,
|
||||
xaccQueryAddStringMatch (QofQuery* q, const char *matchstring,
|
||||
gboolean case_sens, gboolean use_regexp,
|
||||
QofQueryOp op,
|
||||
const char * path, ...)
|
||||
@ -339,7 +339,7 @@ xaccQueryAddStringMatch (Query* q, const char *matchstring,
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddNumericMatch (Query *q, gnc_numeric amount, QofNumericMatch sign,
|
||||
xaccQueryAddNumericMatch (QofQuery *q, gnc_numeric amount, QofNumericMatch sign,
|
||||
QofQueryCompare how, QofQueryOp op,
|
||||
const char * path, ...)
|
||||
{
|
||||
@ -371,12 +371,12 @@ xaccQueryAddNumericMatch (Query *q, gnc_numeric amount, QofNumericMatch sign,
|
||||
*/
|
||||
|
||||
void
|
||||
xaccQueryAddDateMatchTS (Query * q,
|
||||
xaccQueryAddDateMatchTS (QofQuery * q,
|
||||
gboolean use_start, Timespec sts,
|
||||
gboolean use_end, Timespec ets,
|
||||
QofQueryOp op)
|
||||
{
|
||||
Query *tmp_q = NULL;
|
||||
QofQuery *tmp_q = NULL;
|
||||
QofQueryPredData *pred_data;
|
||||
GSList *param_list;
|
||||
|
||||
@ -416,7 +416,7 @@ xaccQueryAddDateMatchTS (Query * q,
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryGetDateMatchTS (Query * q,
|
||||
xaccQueryGetDateMatchTS (QofQuery * q,
|
||||
Timespec * sts,
|
||||
Timespec * ets)
|
||||
{
|
||||
@ -448,7 +448,7 @@ xaccQueryGetDateMatchTS (Query * q,
|
||||
********************************************************************/
|
||||
|
||||
void
|
||||
xaccQueryAddDateMatch(Query * q,
|
||||
xaccQueryAddDateMatch(QofQuery * q,
|
||||
gboolean use_start, int sday, int smonth, int syear,
|
||||
gboolean use_end, int eday, int emonth, int eyear,
|
||||
QofQueryOp op)
|
||||
@ -467,7 +467,7 @@ xaccQueryAddDateMatch(Query * q,
|
||||
********************************************************************/
|
||||
|
||||
void
|
||||
xaccQueryAddDateMatchTT(Query * q,
|
||||
xaccQueryAddDateMatchTT(QofQuery * q,
|
||||
gboolean use_start,
|
||||
time_t stt,
|
||||
gboolean use_end,
|
||||
@ -490,7 +490,7 @@ xaccQueryAddDateMatchTT(Query * q,
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryGetDateMatchTT (Query * q,
|
||||
xaccQueryGetDateMatchTT (QofQuery * q,
|
||||
time_t * stt,
|
||||
time_t * ett)
|
||||
{
|
||||
@ -504,7 +504,7 @@ xaccQueryGetDateMatchTT (Query * q,
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddClearedMatch(Query * q, cleared_match_t how, QofQueryOp op)
|
||||
xaccQueryAddClearedMatch(QofQuery * q, cleared_match_t how, QofQueryOp op)
|
||||
{
|
||||
QofQueryPredData *pred_data;
|
||||
GSList *param_list;
|
||||
@ -536,7 +536,7 @@ xaccQueryAddClearedMatch(Query * q, cleared_match_t how, QofQueryOp op)
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddGUIDMatch(Query * q, const GncGUID *guid,
|
||||
xaccQueryAddGUIDMatch(QofQuery * q, const GncGUID *guid,
|
||||
QofIdType id_type, QofQueryOp op)
|
||||
{
|
||||
GSList *param_list = NULL;
|
||||
@ -588,7 +588,7 @@ xaccQueryAddKVPMatch(QofQuery *q, GSList *path, const KvpValue *value,
|
||||
*******************************************************************/
|
||||
|
||||
time_t
|
||||
xaccQueryGetEarliestDateFound(Query * q)
|
||||
xaccQueryGetEarliestDateFound(QofQuery * q)
|
||||
{
|
||||
GList * spl;
|
||||
Split * sp;
|
||||
@ -617,7 +617,7 @@ xaccQueryGetEarliestDateFound(Query * q)
|
||||
*******************************************************************/
|
||||
|
||||
time_t
|
||||
xaccQueryGetLatestDateFound(Query * q)
|
||||
xaccQueryGetLatestDateFound(QofQuery * q)
|
||||
{
|
||||
Split * sp;
|
||||
GList * spl;
|
||||
@ -639,7 +639,7 @@ xaccQueryGetLatestDateFound(Query * q)
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddDescriptionMatch(Query *q, const char *m, gboolean c, gboolean r,
|
||||
xaccQueryAddDescriptionMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
|
||||
QofQueryOp o)
|
||||
{
|
||||
xaccQueryAddStringMatch ((q), (m), (c), (r), (o), SPLIT_TRANS,
|
||||
@ -647,7 +647,7 @@ xaccQueryAddDescriptionMatch(Query *q, const char *m, gboolean c, gboolean r,
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddNumberMatch(Query *q, const char *m, gboolean c, gboolean r,
|
||||
xaccQueryAddNumberMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
|
||||
QofQueryOp o)
|
||||
{
|
||||
xaccQueryAddStringMatch ((q), (m), (c), (r), (o), SPLIT_TRANS,
|
||||
@ -655,21 +655,21 @@ xaccQueryAddNumberMatch(Query *q, const char *m, gboolean c, gboolean r,
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddActionMatch(Query *q, const char *m, gboolean c, gboolean r,
|
||||
xaccQueryAddActionMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
|
||||
QofQueryOp o)
|
||||
{
|
||||
xaccQueryAddStringMatch ((q), (m), (c), (r), (o), SPLIT_ACTION, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddMemoMatch(Query *q, const char *m, gboolean c, gboolean r,
|
||||
xaccQueryAddMemoMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
|
||||
QofQueryOp o)
|
||||
{
|
||||
xaccQueryAddStringMatch ((q), (m), (c), (r), (o), SPLIT_MEMO, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddValueMatch(Query *q, gnc_numeric amt, QofNumericMatch sgn,
|
||||
xaccQueryAddValueMatch(QofQuery *q, gnc_numeric amt, QofNumericMatch sgn,
|
||||
QofQueryCompare how, QofQueryOp op)
|
||||
{
|
||||
xaccQueryAddNumericMatch ((q), (amt), (sgn), (how), (op),
|
||||
@ -677,7 +677,7 @@ xaccQueryAddValueMatch(Query *q, gnc_numeric amt, QofNumericMatch sgn,
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddSharePriceMatch(Query *q, gnc_numeric amt, QofQueryCompare how,
|
||||
xaccQueryAddSharePriceMatch(QofQuery *q, gnc_numeric amt, QofQueryCompare how,
|
||||
QofQueryOp op)
|
||||
{
|
||||
xaccQueryAddNumericMatch ((q), (amt), QOF_NUMERIC_MATCH_ANY, (how), (op),
|
||||
@ -685,7 +685,7 @@ xaccQueryAddSharePriceMatch(Query *q, gnc_numeric amt, QofQueryCompare how,
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddSharesMatch(Query *q, gnc_numeric amt, QofQueryCompare how,
|
||||
xaccQueryAddSharesMatch(QofQuery *q, gnc_numeric amt, QofQueryCompare how,
|
||||
QofQueryOp op)
|
||||
{
|
||||
xaccQueryAddNumericMatch ((q), (amt), QOF_NUMERIC_MATCH_ANY, (how), (op),
|
||||
@ -693,7 +693,7 @@ xaccQueryAddSharesMatch(Query *q, gnc_numeric amt, QofQueryCompare how,
|
||||
}
|
||||
|
||||
void
|
||||
xaccQueryAddBalanceMatch(Query *q, QofQueryCompare bal, QofQueryOp op)
|
||||
xaccQueryAddBalanceMatch(QofQuery *q, QofQueryCompare bal, QofQueryOp op)
|
||||
{
|
||||
xaccQueryAddNumericMatch(
|
||||
(q), gnc_numeric_zero(), QOF_NUMERIC_MATCH_ANY,
|
||||
|
@ -62,7 +62,7 @@ typedef enum
|
||||
* represented at most once in the returned list. The caller must
|
||||
* free the GList.
|
||||
*/
|
||||
SplitList * xaccQueryGetSplitsUniqueTrans(Query *q);
|
||||
SplitList * xaccQueryGetSplitsUniqueTrans(QofQuery *q);
|
||||
|
||||
/**
|
||||
* The xaccQueryGetTransactions() routine returns a list of
|
||||
@ -85,56 +85,56 @@ SplitList * xaccQueryGetSplitsUniqueTrans(Query *q);
|
||||
* matching accounts, whereas 'AND' acts as a boolean-AND
|
||||
* 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
|
||||
* 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
|
||||
*******************************************************************/
|
||||
|
||||
void xaccQueryAddAccountMatch(Query *, AccountList *,
|
||||
void xaccQueryAddAccountMatch(QofQuery *, AccountList *,
|
||||
QofGuidMatch how, QofQueryOp op);
|
||||
|
||||
void xaccQueryAddAccountGUIDMatch(Query *, AccountGUIDList *,
|
||||
void xaccQueryAddAccountGUIDMatch(QofQuery *, AccountGUIDList *,
|
||||
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,
|
||||
QofQueryOp op,
|
||||
const char * path, ...);
|
||||
void
|
||||
xaccQueryAddDescriptionMatch(Query *q, const char *m, gboolean c, gboolean r,
|
||||
xaccQueryAddDescriptionMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
|
||||
QofQueryOp o);
|
||||
void
|
||||
xaccQueryAddNumberMatch(Query *q, const char *m, gboolean c, gboolean r,
|
||||
xaccQueryAddNumberMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
|
||||
QofQueryOp o);
|
||||
void
|
||||
xaccQueryAddActionMatch(Query *q, const char *m, gboolean c, gboolean r,
|
||||
xaccQueryAddActionMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
|
||||
QofQueryOp o);
|
||||
void
|
||||
xaccQueryAddMemoMatch(Query *q, const char *m, gboolean c, gboolean r,
|
||||
xaccQueryAddMemoMatch(QofQuery *q, const char *m, gboolean c, gboolean r,
|
||||
QofQueryOp o);
|
||||
void
|
||||
xaccQueryAddValueMatch(Query *q, gnc_numeric amt, QofNumericMatch sgn,
|
||||
xaccQueryAddValueMatch(QofQuery *q, gnc_numeric amt, QofNumericMatch sgn,
|
||||
QofQueryCompare how, QofQueryOp op);
|
||||
void
|
||||
xaccQueryAddSharePriceMatch(Query *q, gnc_numeric amt, QofQueryCompare how,
|
||||
xaccQueryAddSharePriceMatch(QofQuery *q, gnc_numeric amt, QofQueryCompare how,
|
||||
QofQueryOp op);
|
||||
void
|
||||
xaccQueryAddSharesMatch(Query *q, gnc_numeric amt, QofQueryCompare how,
|
||||
xaccQueryAddSharesMatch(QofQuery *q, gnc_numeric amt, QofQueryCompare how,
|
||||
QofQueryOp op);
|
||||
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,
|
||||
QofQueryOp op, const char * path, ...);
|
||||
|
||||
@ -147,22 +147,22 @@ void xaccQueryAddNumericMatch (Query *q, gnc_numeric amount,
|
||||
* all transactions are matched.
|
||||
*/
|
||||
|
||||
void xaccQueryAddDateMatch(Query * q, gboolean use_start,
|
||||
void xaccQueryAddDateMatch(QofQuery * q, gboolean use_start,
|
||||
int sday, int smonth, int syear,
|
||||
gboolean use_end, int eday, int emonth, int eyear,
|
||||
QofQueryOp op);
|
||||
void xaccQueryAddDateMatchTS(Query * q,
|
||||
void xaccQueryAddDateMatchTS(QofQuery * q,
|
||||
gboolean use_start, Timespec sts,
|
||||
gboolean use_end, Timespec ets,
|
||||
QofQueryOp op);
|
||||
void xaccQueryAddDateMatchTT(Query * q,
|
||||
void xaccQueryAddDateMatchTT(QofQuery * q,
|
||||
gboolean use_start, time_t stt,
|
||||
gboolean use_end, time_t ett,
|
||||
QofQueryOp op);
|
||||
void xaccQueryGetDateMatchTS (Query * q,
|
||||
void xaccQueryGetDateMatchTS (QofQuery * q,
|
||||
Timespec * sts,
|
||||
Timespec * ets);
|
||||
void xaccQueryGetDateMatchTT (Query * q,
|
||||
void xaccQueryGetDateMatchTT (QofQuery * q,
|
||||
time_t * stt,
|
||||
time_t * ett);
|
||||
|
||||
@ -177,19 +177,19 @@ typedef enum
|
||||
CLEARED_ALL = 0x001F
|
||||
} cleared_match_t;
|
||||
|
||||
void xaccQueryAddClearedMatch(Query * q, cleared_match_t how, QofQueryOp op);
|
||||
void xaccQueryAddGUIDMatch(Query * q, const GncGUID *guid,
|
||||
void xaccQueryAddClearedMatch(QofQuery * q, cleared_match_t how, QofQueryOp op);
|
||||
void xaccQueryAddGUIDMatch(QofQuery * q, const GncGUID *guid,
|
||||
QofIdType id_type, QofQueryOp op);
|
||||
|
||||
/** 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,
|
||||
QofQueryOp op);
|
||||
|
||||
/*******************************************************************
|
||||
* compatibility interface with old Query API
|
||||
* compatibility interface with old QofQuery API
|
||||
*******************************************************************/
|
||||
time_t xaccQueryGetEarliestDateFound(Query * q);
|
||||
time_t xaccQueryGetLatestDateFound(Query * q);
|
||||
time_t xaccQueryGetEarliestDateFound(QofQuery * q);
|
||||
time_t xaccQueryGetLatestDateFound(QofQuery * q);
|
||||
|
||||
#endif
|
||||
|
@ -1,4 +0,0 @@
|
||||
|
||||
#include "qof.h"
|
||||
|
||||
#define QueryPredData_t QofQueryPredData*
|
@ -1,7 +0,0 @@
|
||||
|
||||
#include "qof.h"
|
||||
|
||||
#define query_object_def _QofParam
|
||||
#define QueryObjectDef QofParam
|
||||
|
||||
|
@ -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 */
|
@ -1124,7 +1124,7 @@ gnc_scm2query_term_query_v2 (SCM qt_scm)
|
||||
qof_query_add_term (q, path, pd, QOF_QUERY_OR);
|
||||
if (inverted)
|
||||
{
|
||||
Query *outq = qof_query_invert (q);
|
||||
QofQuery *outq = qof_query_invert (q);
|
||||
qof_query_destroy (q);
|
||||
q = outq;
|
||||
}
|
||||
@ -1491,7 +1491,7 @@ gnc_scm2query_term_query_v1 (SCM query_term_scm)
|
||||
|
||||
if (ok)
|
||||
{
|
||||
Query *out_q;
|
||||
QofQuery *out_q;
|
||||
|
||||
if (sense)
|
||||
out_q = q;
|
||||
@ -1508,7 +1508,7 @@ gnc_scm2query_term_query_v1 (SCM query_term_scm)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static Query *
|
||||
static QofQuery *
|
||||
gnc_scm2query_term_query (SCM query_term_scm, query_version_t vers)
|
||||
{
|
||||
switch (vers)
|
||||
@ -1551,10 +1551,10 @@ gnc_query_terms2scm (const GList *terms)
|
||||
return scm_reverse (or_terms);
|
||||
}
|
||||
|
||||
static Query *
|
||||
static QofQuery *
|
||||
gnc_scm2query_and_terms (SCM and_terms, query_version_t vers)
|
||||
{
|
||||
Query *q = NULL;
|
||||
QofQuery *q = NULL;
|
||||
|
||||
if (!scm_is_list (and_terms))
|
||||
return NULL;
|
||||
@ -1570,8 +1570,8 @@ gnc_scm2query_and_terms (SCM and_terms, query_version_t vers)
|
||||
q = gnc_scm2query_term_query (term, vers);
|
||||
else
|
||||
{
|
||||
Query *q_and;
|
||||
Query *q_new;
|
||||
QofQuery *q_and;
|
||||
QofQuery *q_new;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
static Query *
|
||||
static QofQuery *
|
||||
gnc_scm2query_or_terms (SCM or_terms, query_version_t vers)
|
||||
{
|
||||
Query *q = NULL;
|
||||
QofQuery *q = NULL;
|
||||
|
||||
if (!scm_is_list (or_terms))
|
||||
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);
|
||||
else
|
||||
{
|
||||
Query *q_or;
|
||||
Query *q_new;
|
||||
QofQuery *q_or;
|
||||
QofQuery *q_new;
|
||||
|
||||
q_or = gnc_scm2query_and_terms (and_terms, vers);
|
||||
|
||||
@ -1856,10 +1856,10 @@ gnc_query_sort_to_list (const gchar * symbol)
|
||||
return path;
|
||||
}
|
||||
|
||||
static Query *
|
||||
static QofQuery *
|
||||
gnc_scm2query_v1 (SCM query_scm)
|
||||
{
|
||||
Query *q = NULL;
|
||||
QofQuery *q = NULL;
|
||||
gboolean ok = TRUE;
|
||||
const gchar * primary_sort = NULL;
|
||||
const gchar * secondary_sort = NULL;
|
||||
@ -2008,10 +2008,10 @@ gnc_scm2query_v1 (SCM query_scm)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static Query *
|
||||
static QofQuery *
|
||||
gnc_scm2query_v2 (SCM query_scm)
|
||||
{
|
||||
Query *q = NULL;
|
||||
QofQuery *q = NULL;
|
||||
gboolean ok = TRUE;
|
||||
const gchar * search_for = NULL;
|
||||
GSList *sp1 = NULL, *sp2 = NULL, *sp3 = NULL;
|
||||
@ -2142,12 +2142,12 @@ gnc_scm2query_v2 (SCM query_scm)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Query *
|
||||
QofQuery *
|
||||
gnc_scm2query (SCM query_scm)
|
||||
{
|
||||
SCM q_type;
|
||||
const gchar *type;
|
||||
Query *q = NULL;
|
||||
QofQuery *q = NULL;
|
||||
|
||||
/* Not a list or NULL? No need to go further */
|
||||
if (!scm_is_list (query_scm) || scm_is_null (query_scm))
|
||||
|
@ -60,8 +60,8 @@ GSList * gnc_query_scm2path (SCM path_scm);
|
||||
/* These two functions convert a query object into a scheme
|
||||
* representation of the query and vice-versa. They do not
|
||||
* simply convert a query pointer to a guile query pointer! */
|
||||
SCM gnc_query2scm (Query * q);
|
||||
Query * gnc_scm2query (SCM query_scm);
|
||||
SCM gnc_query2scm (QofQuery * q);
|
||||
QofQuery * gnc_scm2query (SCM query_scm);
|
||||
|
||||
SCM gnc_gint64_to_scm(const gint64 x);
|
||||
gint64 gnc_scm_to_gint64(SCM num);
|
||||
|
@ -79,7 +79,7 @@ static void * search(QofBook * book, const gchar *id, void * object, QofIdType t
|
||||
GList *result;
|
||||
QofQuery *q;
|
||||
gint len;
|
||||
QueryPredData_t string_pred_data;
|
||||
QofQueryPredData* string_pred_data;
|
||||
g_return_val_if_fail (type, NULL);
|
||||
g_return_val_if_fail (id, NULL);
|
||||
g_return_val_if_fail (book, NULL);
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include "gncInvoice.h"
|
||||
#include "gncBusiness.h"
|
||||
// query
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
#include "qof.h"
|
||||
#include "GNCId.h"
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
#include "qof.h"
|
@ -1657,7 +1657,7 @@ typedef enum
|
||||
} sort_type_t;
|
||||
|
||||
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;
|
||||
|
||||
@ -1712,10 +1712,10 @@ set_query_sort (Query *q, sort_type_t sort_code)
|
||||
qof_query_set_sort_order (q, p1, p2, p3);
|
||||
}
|
||||
|
||||
Query *
|
||||
QofQuery *
|
||||
get_random_query(void)
|
||||
{
|
||||
Query *q;
|
||||
QofQuery *q;
|
||||
int num_terms;
|
||||
|
||||
num_terms = get_random_int_in_range (1, 3);
|
||||
@ -1972,7 +1972,7 @@ typedef struct
|
||||
{
|
||||
QofIdType where;
|
||||
GSList *path;
|
||||
Query *q;
|
||||
QofQuery *q;
|
||||
} KVPQueryData;
|
||||
|
||||
static void
|
||||
@ -1997,7 +1997,7 @@ add_kvp_value_query (const char *key, KvpValue *value, gpointer data)
|
||||
}
|
||||
|
||||
static void
|
||||
add_kvp_query (Query *q, KvpFrame *frame, QofIdType where)
|
||||
add_kvp_query (QofQuery *q, KvpFrame *frame, QofIdType where)
|
||||
{
|
||||
KVPQueryData kqd;
|
||||
|
||||
@ -2036,12 +2036,12 @@ get_random_query_type (void)
|
||||
}
|
||||
}
|
||||
|
||||
Query *
|
||||
QofQuery *
|
||||
make_trans_query (Transaction *trans, TestQueryTypes query_types)
|
||||
{
|
||||
Account *a;
|
||||
gnc_numeric n;
|
||||
Query *q;
|
||||
QofQuery *q;
|
||||
Split *s;
|
||||
|
||||
if (query_types == RANDOM_QT)
|
||||
|
@ -64,8 +64,8 @@ typedef enum
|
||||
ALL_QT = (1 << 8) - 1
|
||||
} TestQueryTypes;
|
||||
|
||||
Query * get_random_query(void);
|
||||
Query * make_trans_query (Transaction *trans, TestQueryTypes query_types);
|
||||
QofQuery * get_random_query(void);
|
||||
QofQuery * make_trans_query (Transaction *trans, TestQueryTypes query_types);
|
||||
TestQueryTypes get_random_query_type (void);
|
||||
void trans_query_include_price (gboolean include_amounts);
|
||||
|
||||
|
@ -36,7 +36,7 @@ test_trans_query (Transaction *trans, gpointer data)
|
||||
{
|
||||
QofBook *book = data;
|
||||
GList *list;
|
||||
Query *q;
|
||||
QofQuery *q;
|
||||
|
||||
q = make_trans_query (trans, ALL_QT);
|
||||
qof_query_set_book (q, book);
|
||||
|
@ -12,10 +12,10 @@
|
||||
|
||||
|
||||
static void
|
||||
test_query (Query *q)
|
||||
test_query (QofQuery *q)
|
||||
{
|
||||
SCM scm_q;
|
||||
Query *q2;
|
||||
QofQuery *q2;
|
||||
|
||||
scm_q = gnc_query2scm (q);
|
||||
|
||||
@ -42,7 +42,7 @@ test_query (Query *q)
|
||||
static void
|
||||
run_tests (void)
|
||||
{
|
||||
Query *q;
|
||||
QofQuery *q;
|
||||
int i;
|
||||
|
||||
test_query (NULL);
|
||||
|
@ -35,10 +35,10 @@
|
||||
#include "gnc-gui-query.h"
|
||||
#include "gnc-query-list.h"
|
||||
#include "gnc-gconf-utils.h"
|
||||
#include "gncObject.h"
|
||||
#include "qof.h"
|
||||
#include "QueryObject.h"
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
#include "qof.h"
|
||||
#include "qof.h"
|
||||
|
||||
#include "Transaction.h" /* for the SPLIT_* and TRANS_* */
|
||||
|
||||
@ -352,7 +352,7 @@ search_update_query (GNCSearchWindow *sw)
|
||||
QofQuery *q, *q2, *new_q;
|
||||
GList *node;
|
||||
QofQueryOp op;
|
||||
QueryPredData_t pdata;
|
||||
QofQueryPredData* pdata;
|
||||
|
||||
if (sw->grouping == GNC_SEARCH_MATCH_ANY)
|
||||
op = QOF_QUERY_OR;
|
||||
|
@ -37,9 +37,9 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "gnc-component-manager.h"
|
||||
#include "QueryCore.h"
|
||||
#include "QueryObject.h"
|
||||
#include "gncObject.h"
|
||||
#include "qof.h"
|
||||
#include "qof.h"
|
||||
#include "qof.h"
|
||||
#include "gnc-general-search.h"
|
||||
|
||||
#define GNCGENERALSEARCH_CLASS "gnc-general-search-widget"
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "Account.h"
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
#include "gnc-tree-view-account.h"
|
||||
#include "gnc-gui-query.h"
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
|
||||
static gboolean gncs_validate (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_init (GNCSearchAccount *gspaper);
|
||||
@ -316,7 +316,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
|
||||
return box;
|
||||
}
|
||||
|
||||
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
{
|
||||
GNCSearchAccountPrivate *priv;
|
||||
GNCSearchAccount *fi = (GNCSearchAccount *)fe;
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
|
||||
#include "search-boolean.h"
|
||||
#include "search-core-utils.h"
|
||||
@ -38,7 +38,7 @@
|
||||
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
|
||||
static gboolean gncs_validate (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_init (GNCSearchBoolean *gspaper);
|
||||
@ -211,7 +211,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
|
||||
return box;
|
||||
}
|
||||
|
||||
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
{
|
||||
GNCSearchBoolean *fi = (GNCSearchBoolean *)fe;
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include <string.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
#include "qof.h"
|
||||
#include "Account.h" /* for ACCOUNT_MATCH_ALL_TYPE */
|
||||
#include "Transaction.h" /* for RECONCILED_MATCH_TYPE */
|
||||
@ -193,7 +193,7 @@ gnc_search_core_type_get_widget (GNCSearchCoreType *fe)
|
||||
*
|
||||
* Return value:
|
||||
**/
|
||||
QueryPredData_t
|
||||
QofQueryPredData*
|
||||
gnc_search_core_type_get_predicate (GNCSearchCoreType *fe)
|
||||
{
|
||||
return GNC_SEARCH_CORE_TYPE_GET_CLASS (fe)->get_predicate(fe);
|
||||
|
@ -22,7 +22,7 @@
|
||||
#ifndef _GNCSEARCH_CORE_TYPE_H
|
||||
#define _GNCSEARCH_CORE_TYPE_H
|
||||
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
#include "qof.h"
|
||||
#include "search-param.h"
|
||||
|
||||
@ -49,7 +49,7 @@ typedef struct
|
||||
gboolean (*validate) (GNCSearchCoreType *fe);
|
||||
GNCSearchCoreType * (*clone) (GNCSearchCoreType *fe);
|
||||
GtkWidget * (*get_widget) (GNCSearchCoreType *);
|
||||
QueryPredData_t (*get_predicate) (GNCSearchCoreType *);
|
||||
QofQueryPredData* (*get_predicate) (GNCSearchCoreType *);
|
||||
|
||||
/* signals */
|
||||
} GNCSearchCoreTypeClass;
|
||||
@ -67,7 +67,7 @@ void gnc_search_core_type_editable_enters (GNCSearchCoreType *fe);
|
||||
gboolean gnc_search_core_type_validate (GNCSearchCoreType *fe);
|
||||
GNCSearchCoreType * gnc_search_core_type_clone (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 */
|
||||
typedef GNCSearchCoreType * (*GNCSearchCoreNew) (void);
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
#include "gnc-date.h"
|
||||
#include "gnc-date-edit.h"
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
|
||||
#include "search-date.h"
|
||||
#include "search-core-utils.h"
|
||||
@ -42,7 +42,7 @@ static void grab_focus (GNCSearchCoreType *fe);
|
||||
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
|
||||
static gboolean gncs_validate (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_init (GNCSearchDate *gspaper);
|
||||
@ -260,7 +260,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
|
||||
return box;
|
||||
}
|
||||
|
||||
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
{
|
||||
GNCSearchDate *fi = (GNCSearchDate *)fe;
|
||||
GNCSearchDatePrivate *priv;
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "gnc-amount-edit.h"
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
|
||||
#include "search-double.h"
|
||||
#include "search-core-utils.h"
|
||||
@ -41,7 +41,7 @@ static void grab_focus (GNCSearchCoreType *fe);
|
||||
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
|
||||
static gboolean gncs_validate (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_init (GNCSearchDouble *gspaper);
|
||||
@ -254,7 +254,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
|
||||
return box;
|
||||
}
|
||||
|
||||
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
{
|
||||
GNCSearchDouble *fi = (GNCSearchDouble *)fe;
|
||||
GNCSearchDoublePrivate *priv ;
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "gnc-amount-edit.h"
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
|
||||
#include "search-int64.h"
|
||||
#include "search-core-utils.h"
|
||||
@ -41,7 +41,7 @@ static void grab_focus (GNCSearchCoreType *fe);
|
||||
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
|
||||
static gboolean gncs_validate (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_init (GNCSearchInt64 *gspaper);
|
||||
@ -261,7 +261,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
|
||||
return box;
|
||||
}
|
||||
|
||||
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
{
|
||||
GNCSearchInt64 *fi = (GNCSearchInt64 *)fe;
|
||||
GNCSearchInt64Private *priv;
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "gnc-amount-edit.h"
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
|
||||
#include "search-numeric.h"
|
||||
#include "search-core-utils.h"
|
||||
@ -41,7 +41,7 @@ static void grab_focus (GNCSearchCoreType *fe);
|
||||
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
|
||||
static gboolean gncs_validate (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_init (GNCSearchNumeric *gspaper);
|
||||
@ -322,7 +322,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
|
||||
return box;
|
||||
}
|
||||
|
||||
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
{
|
||||
GNCSearchNumeric *fi = (GNCSearchNumeric *)fe;
|
||||
GNCSearchNumericPrivate *priv;
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
#include "Transaction.h" /* for ?REC */
|
||||
|
||||
#include "search-reconciled.h"
|
||||
@ -39,7 +39,7 @@
|
||||
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
|
||||
static gboolean gncs_validate (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_init (GNCSearchReconciled *gspaper);
|
||||
@ -242,7 +242,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
|
||||
return box;
|
||||
}
|
||||
|
||||
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
{
|
||||
GNCSearchReconciled *fi = (GNCSearchReconciled *)fe;
|
||||
char chars[6];
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
#include "search-string.h"
|
||||
#include "search-core-utils.h"
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
|
||||
#define d(x)
|
||||
|
||||
@ -42,7 +42,7 @@ static void grab_focus (GNCSearchCoreType *fe);
|
||||
static GNCSearchCoreType *gncs_clone(GNCSearchCoreType *fe);
|
||||
static gboolean gncs_validate (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_init (GNCSearchString *gspaper);
|
||||
@ -335,7 +335,7 @@ gncs_get_widget (GNCSearchCoreType *fe)
|
||||
return box;
|
||||
}
|
||||
|
||||
static QueryPredData_t gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
static QofQueryPredData* gncs_get_predicate (GNCSearchCoreType *fe)
|
||||
{
|
||||
GNCSearchString *ss = (GNCSearchString *)fe;
|
||||
QofQueryCompare how;
|
||||
|
@ -30,9 +30,9 @@
|
||||
#include "gnc-component-manager.h"
|
||||
#include "gnc-query-list.h"
|
||||
#include "search-param.h"
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
#include "QueryObject.h"
|
||||
#include "qof.h"
|
||||
#include "qof.h"
|
||||
|
||||
/* Signal codes */
|
||||
enum
|
||||
|
@ -30,8 +30,8 @@
|
||||
|
||||
#include "gnc-engine.h"
|
||||
#include "GNCId.h"
|
||||
#include "QueryCore.h"
|
||||
#include "QueryObject.h"
|
||||
#include "qof.h"
|
||||
#include "qof.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)
|
||||
{
|
||||
QofIdType param_name = param_path->data;
|
||||
const QueryObjectDef *objDef =
|
||||
const QofParam *objDef =
|
||||
qof_class_get_parameter (search_type, param_name);
|
||||
|
||||
/* If it doesn't exist, then we've reached the end */
|
||||
|
@ -28,9 +28,9 @@
|
||||
|
||||
#include "gnc-ui-util.h"
|
||||
#include "Query.h"
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
#include "QueryObject.h"
|
||||
#include "qof.h"
|
||||
#include "qof.h"
|
||||
#include "SX-book.h"
|
||||
#include "Transaction.h"
|
||||
#include "dialog-find-transactions.h"
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "gnc-date.h"
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
#include "qof.h"
|
||||
#include "Transaction.h"
|
||||
#include "gnc-ui-util.h"
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
#include "Account.h"
|
||||
#include "Query.h"
|
||||
#include "QueryCore.h"
|
||||
#include "qof.h"
|
||||
#include "qof.h"
|
||||
#include "SX-book.h"
|
||||
#include "Transaction.h"
|
||||
|
Loading…
Reference in New Issue
Block a user