37 #ifndef QOF_INSTANCE_H    38 #define QOF_INSTANCE_H    49 #include "qof-gobject.h"    56 #define QOF_TYPE_INSTANCE            (qof_instance_get_type ())    57 #define QOF_INSTANCE(o)              \    58      (G_TYPE_CHECK_INSTANCE_CAST ((o), QOF_TYPE_INSTANCE, QofInstance))    59 #define QOF_INSTANCE_CLASS(k)        \    60      (G_TYPE_CHECK_CLASS_CAST((k), QOF_TYPE_INSTANCE, QofInstanceClass))    61 #define QOF_IS_INSTANCE(o)           \    62      (G_TYPE_CHECK_INSTANCE_TYPE ((o), QOF_TYPE_INSTANCE))    63 #define QOF_IS_INSTANCE_CLASS(k)     \    64      (G_TYPE_CHECK_CLASS_TYPE ((k), QOF_TYPE_INSTANCE))    65 #define QOF_INSTANCE_GET_CLASS(o)    \    66      (G_TYPE_INSTANCE_GET_CLASS ((o), QOF_TYPE_INSTANCE, QofInstanceClass))    81     GObjectClass parent_class;
   130 gint qof_instance_get_editlevel (gconstpointer ptr);
   163 void qof_instance_print_dirty (
const QofInstance *entity, gpointer dummy);
   166 #define qof_instance_is_dirty qof_instance_get_dirty   169 gboolean qof_instance_get_infant(
const QofInstance *inst);
 int qof_instance_version_cmp(const QofInstance *left, const QofInstance *right)
Compare two instances, based on their last update times. 
 
const GncGUID * qof_instance_get_guid(gconstpointer)
Return the GncGUID of this instance. 
 
void qof_instance_get(const QofInstance *inst, const gchar *first_param,...)
Wrapper for g_object_get. 
 
Date and Time handling routines. 
 
QofBook * qof_instance_get_book(gconstpointer)
Return the book pointer. 
 
GList * qof_instance_get_referring_object_list_from_collection(const QofCollection *coll, const QofInstance *ref)
Returns a list of objects from the collection which refer to the specific object. ...
 
gboolean qof_instance_get_destroying(gconstpointer ptr)
Retrieve the flag that indicates whether or not this object is about to be destroyed. 
 
void qof_instance_set(QofInstance *inst, const gchar *first_param,...)
Wrapper for g_object_set Group setting multiple parameters in a single begin/commit/rollback. 
 
globally unique ID User API 
 
QofCollection * qof_instance_get_collection(gconstpointer inst)
Return the collection this instance belongs to. 
 
QOF entity type identification system. 
 
const gchar * QofIdType
QofIdType declaration. 
 
void qof_instance_init_data(QofInstance *, QofIdType, QofBook *)
Initialise the settings associated with an instance. 
 
guint32 qof_instance_get_idata(gconstpointer inst)
get the instance tag number used for kvp management in sql backends. 
 
gboolean qof_instance_get_dirty_flag(gconstpointer ptr)
Retrieve the flag that indicates whether or not this object has been modified. 
 
void qof_instance_copy_book(gpointer ptr1, gconstpointer ptr2)
Copy the book from one QofInstances to another. 
 
GList * qof_instance_get_typed_referring_object_list(const QofInstance *inst, const QofInstance *ref)
Returns a list of my type of object which refers to an object. 
 
const GncGUID * qof_entity_get_guid(gconstpointer)
 
gboolean qof_instance_books_equal(gconstpointer ptr1, gconstpointer ptr2)
See if two QofInstances share the same book. 
 
GList * qof_instance_get_referring_object_list(const QofInstance *inst)
Returns a list of objects which refer to a specific object. 
 
QofIdType e_type
Entity type. 
 
void qof_instance_set_book(gconstpointer inst, QofBook *book)
Set the book pointer. 
 
gint qof_instance_guid_compare(const gconstpointer ptr1, const gconstpointer ptr2)
Compare the GncGUID values of two instances. 
 
GType qof_instance_get_type(void)
Return the GType of a QofInstance. 
 
gboolean qof_instance_refers_to_object(const QofInstance *inst, const QofInstance *ref)
Does this object refer to a specific object. 
 
The type used to store guids in C. 
 
gchar * qof_instance_get_display_name(const QofInstance *inst)
Returns a displayable name for this object.