79#define QOF_MOD_CLASS "qof.class"
90#define QOF_TYPE_STRING "string"
91#define QOF_TYPE_DATE "date"
92#define QOF_TYPE_NUMERIC "numeric"
93#define QOF_TYPE_DEBCRED "debcred"
94#define QOF_TYPE_GUID "guid"
95#define QOF_TYPE_INT32 "gint32"
96#define QOF_TYPE_INT64 "gint64"
97#define QOF_TYPE_DOUBLE "double"
98#define QOF_TYPE_BOOLEAN "boolean"
99#define QOF_TYPE_KVP "kvp"
100#define QOF_TYPE_CHAR "character"
101#define QOF_TYPE_CHOICE "choice"
136typedef gint (*QofCompareFunc) (gpointer a, gpointer b,
137 gint compare_options,
159 const char * param_name;
163 QofCompareFunc param_compfcn;
164 gpointer param_userdata;
185 const QofParam *params);
213 const char *param_name);
217 const char *parameter);
221 const char *parameter);
225 const char *parameter);
gpointer(* QofAccessFunc)(gpointer object, const QofParam *param)
The QofAccessFunc defines an arbitrary function pointer for access functions.
void qof_class_param_foreach(QofIdTypeConst obj_name, QofParamForeachCB, gpointer user_data)
Call the callback once for each parameter on the indicated object class.
GList * qof_class_get_referenceList(QofIdTypeConst type)
List of the parameters that could be references.
void qof_class_foreach(QofClassForeachCB, gpointer user_data)
Call the callback once for each object class that is registered with the system.
void(* QofSetterFunc)(gpointer, gpointer)
The QofSetterFunc defines an function pointer for parameter setters.
QofType qof_class_get_parameter_type(QofIdTypeConst obj_name, const char *param_name)
Return the core datatype of the specified object's parameter.
void qof_class_register(QofIdTypeConst obj_name, QofSortFunc default_sort_fcn, const QofParam *params)
This function registers a new object class with the Qof subsystem.
QofSetterFunc qof_class_get_parameter_setter(QofIdTypeConst obj_name, const char *parameter)
Return the object's parameter setter function.
void(* QofClassForeachCB)(QofIdTypeConst, gpointer)
Type definition for the class callback function.
QofAccessFunc qof_class_get_parameter_getter(QofIdTypeConst obj_name, const char *parameter)
Return the object's parameter getter function.
const QofParam * qof_class_get_parameter(QofIdTypeConst obj_name, const char *parameter)
Return the registered Parameter Definition for the requested parameter.
int(* QofSortFunc)(gconstpointer, gconstpointer)
This function is the default sort function for a particular object type.
const char * QofType
Type of Parameters (String, Date, Numeric, GncGUID, etc.)
void(* QofParamForeachCB)(QofParam *, gpointer user_data)
Type definition for the parameter callback function.
gboolean qof_class_is_registered(QofIdTypeConst obj_name)
An example:
const gchar * QofIdTypeConst
QofIdTypeConst declaration.
QOF entity type identification system.
This structure is for each queryable parameter in an object.