GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations
qofquerycore.h File Reference

API for providing core Query data types. More...

#include "gnc-numeric.h"
#include "gnc-date.h"
#include "kvp_frame.h"
#include "qofclass.h"

Go to the source code of this file.

Data Structures

struct  _QofQueryPredData
 

Typedefs

typedef struct _QofQueryPredData QofQueryPredData
 
typedef GSList QofQueryParamList
 

Enumerations

enum  QofQueryCompare {
  QOF_COMPARE_LT = 1, QOF_COMPARE_LTE, QOF_COMPARE_EQUAL, QOF_COMPARE_GT,
  QOF_COMPARE_GTE, QOF_COMPARE_NEQ, QOF_COMPARE_CONTAINS, QOF_COMPARE_NCONTAINS
}
 
enum  QofStringMatch { QOF_STRING_MATCH_NORMAL = 1, QOF_STRING_MATCH_CASEINSENSITIVE }
 
enum  QofDateMatch { QOF_DATE_MATCH_NORMAL = 1, QOF_DATE_MATCH_DAY }
 
enum  QofNumericMatch { QOF_NUMERIC_MATCH_DEBIT = 1, QOF_NUMERIC_MATCH_CREDIT, QOF_NUMERIC_MATCH_ANY }
 
enum  QofGuidMatch {
  QOF_GUID_MATCH_ANY = 1, QOF_GUID_MATCH_NONE, QOF_GUID_MATCH_NULL, QOF_GUID_MATCH_ALL,
  QOF_GUID_MATCH_LIST_ANY
}
 
enum  QofCharMatch { QOF_CHAR_MATCH_ANY = 1, QOF_CHAR_MATCH_NONE }
 

Functions

Core Data Type Predicates
QofQueryPredDataqof_query_string_predicate (QofQueryCompare how, const gchar *str, QofStringMatch options, gboolean is_regex)
 
QofQueryPredDataqof_query_date_predicate (QofQueryCompare how, QofDateMatch options, Timespec date)
 
QofQueryPredDataqof_query_numeric_predicate (QofQueryCompare how, QofNumericMatch options, gnc_numeric value)
 
QofQueryPredDataqof_query_guid_predicate (QofGuidMatch options, GList *guids)
 
QofQueryPredDataqof_query_int32_predicate (QofQueryCompare how, gint32 val)
 
QofQueryPredDataqof_query_int64_predicate (QofQueryCompare how, gint64 val)
 
QofQueryPredDataqof_query_double_predicate (QofQueryCompare how, double val)
 
QofQueryPredDataqof_query_boolean_predicate (QofQueryCompare how, gboolean val)
 
QofQueryPredDataqof_query_char_predicate (QofCharMatch options, const gchar *chars)
 
QofQueryPredDataqof_query_collect_predicate (QofGuidMatch options, QofCollection *coll)
 
QofQueryPredDataqof_query_choice_predicate (QofGuidMatch options, GList *guids)
 
QofQueryPredDataqof_query_kvp_predicate (QofQueryCompare how, QofQueryParamList *path, const KvpValue *value)
 
QofQueryPredDataqof_query_kvp_predicate_path (QofQueryCompare how, const gchar *path, const KvpValue *value)
 
QofQueryPredDataqof_query_core_predicate_copy (const QofQueryPredData *pdata)
 
void qof_query_core_predicate_free (QofQueryPredData *pdata)
 
gboolean qof_query_date_predicate_get_date (const QofQueryPredData *pd, Timespec *date)
 
char * qof_query_core_to_string (QofType, gpointer object, QofParam *getter)
 
int qof_string_number_compare_func (gpointer a, gpointer b, gint options, QofParam *this_param)
 

Detailed Description

API for providing core Query data types.

Author
Copyright (C) 2002 Derek Atkins warlo.nosp@m.rd@M.nosp@m.IT.ED.nosp@m.U

Definition in file qofquerycore.h.