74 #ifndef QOF_QUERYNEW_H 75 #define QOF_QUERYNEW_H 82 #define QOF_MOD_QUERY "qof-query" 98 #define QOF_QUERY_FIRST_TERM QOF_QUERY_AND 101 #define QUERY_DEFAULT_SORT "QofQueryDefaultSort" 104 #define QOF_PARAM_BOOK "book" 105 #define QOF_PARAM_GUID "guid" 108 #define QOF_PARAM_KVP "kvp" 109 #define QOF_PARAM_ACTIVE "active" 110 #define QOF_PARAM_VERSION "version" 122 void qof_query_shutdown (
void);
129 GSList *qof_query_build_param_list (gchar
const *param, ...);
256 qof_query_get_term_type (
QofQuery * q, GSList * term_param);
320 GSList * primary_sort_params,
321 GSList * secondary_sort_params,
322 GSList * tertiary_sort_params);
324 void qof_query_set_sort_options (
QofQuery * q, gint prim_op, gint sec_op,
340 gboolean sec_inc, gboolean tert_inc);
gint qof_query_num_terms(QofQuery *q)
QofIdType qof_query_get_search_for(QofQuery *q)
gboolean qof_query_has_term_type(QofQuery *q, GSList *term_param)
gboolean qof_query_equal(QofQuery *q1, QofQuery *q2)
globally unique ID User API
QofQuery * qof_query_copy(QofQuery *q)
void qof_query_set_sort_increasing(QofQuery *q, gboolean prim_inc, gboolean sec_inc, gboolean tert_inc)
void qof_query_purge_terms(QofQuery *q, GSList *param_list)
struct _QofQuery QofQuery
QofQuery * qof_query_create_for(QofIdTypeConst obj_type)
API for providing core Query data types.
void qof_query_destroy(QofQuery *q)
void qof_query_init(void)
void qof_query_add_term(QofQuery *query, GSList *param_list, QofQueryPredData *pred_data, QofQueryOp op)
void qof_query_set_book(QofQuery *q, QofBook *book)
void qof_query_set_sort_order(QofQuery *q, GSList *primary_sort_params, GSList *secondary_sort_params, GSList *tertiary_sort_params)
gint qof_query_has_terms(QofQuery *q)
QofQuery * qof_query_merge(QofQuery *q1, QofQuery *q2, QofQueryOp op)
void qof_query_add_guid_list_match(QofQuery *q, GSList *param_list, GList *guid_list, QofGuidMatch options, QofQueryOp op)
QofQuery * qof_query_invert(QofQuery *q)
void qof_query_clear(QofQuery *query)
Encapsulate all the information about a dataset.
GList * qof_query_last_run(QofQuery *query)
void qof_query_add_guid_match(QofQuery *q, GSList *param_list, const GUID *guid, QofQueryOp op)
GList * qof_query_run(QofQuery *query)
const gchar * QofIdTypeConst
Linking one entity to other entities of many possible types.
void qof_query_set_max_results(QofQuery *q, gint n)
void qof_query_add_boolean_match(QofQuery *q, GSList *param_list, gboolean value, QofQueryOp op)
QofQuery * qof_query_create(void)
void qof_query_search_for(QofQuery *query, QofIdTypeConst obj_type)
GList * qof_query_get_books(QofQuery *q)
void qof_query_merge_in_place(QofQuery *q1, QofQuery *q2, QofQueryOp op)