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" 102 #define QOF_TYPE_COLLECT "collection" 132 typedef const char * QofType; 151 typedef gpointer (*
QofAccessFunc)(gpointer object,
const QofParam *param);
164 typedef gint (*QofCompareFunc) (gpointer a, gpointer b,
165 gint compare_options,
187 const char * param_name;
191 QofCompareFunc param_compfcn;
192 gpointer param_userdata;
196 typedef int (*
QofSortFunc)(gconstpointer, gconstpointer);
213 const QofParam *params);
241 const char *param_name);
245 const char *parameter);
249 const char *parameter);
253 const char *parameter);
gboolean qof_class_is_registered(QofIdTypeConst obj_name)
An example:
void qof_class_param_foreach(QofIdTypeConst obj_name, QofParamForeachCB, gpointer user_data)
Call the callback once for each parameter on the indicated object class.
This structure is for each queryable parameter in an object.
const char * QofType
Type of Parameters (String, Date, Numeric, GncGUID, etc.)
const gchar * QofIdTypeConst
QofIdTypeConst declaration.
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.
void(* QofClassForeachCB)(QofIdTypeConst, gpointer)
Type definition for the class callback function.
int(* QofSortFunc)(gconstpointer, gconstpointer)
This function is the default sort function for a particular object type.
QOF entity type identification system.
QofAccessFunc qof_class_get_parameter_getter(QofIdTypeConst obj_name, const char *parameter)
Return the object's parameter getter function.
void(* QofSetterFunc)(gpointer, gpointer)
The QofSetterFunc defines an function pointer for parameter setters.
const QofParam * qof_class_get_parameter(QofIdTypeConst obj_name, const char *parameter)
Return the registered Parameter Definition for the requested parameter.
void qof_class_foreach(QofClassForeachCB, gpointer user_data)
Call the callback once for each object class that is registered with the system.
gpointer(* QofAccessFunc)(gpointer object, const QofParam *param)
The QofAccessFunc defines an arbitrary function pointer for access functions.
GList * qof_class_get_referenceList(QofIdTypeConst type)
List of the parameters that could be references.
QofSetterFunc qof_class_get_parameter_setter(QofIdTypeConst obj_name, const char *parameter)
Return the object's parameter setter function.
void(* QofParamForeachCB)(QofParam *, gpointer user_data)
Type definition for the parameter callback function.
QofType qof_class_get_parameter_type(QofIdTypeConst obj_name, const char *param_name)
Return the core datatype of the specified object's parameter.