|
GnuCash c935c2f+
|
Qof Instances are a derived type of QofInstance. More...
Files | |
| file | qofinstance.h |
| Object instance holds common fields that most gnucash objects use. | |
Data Structures | |
| struct | QofInstance |
| struct | QofInstanceClass |
Macros | |
| #define | QOF_TYPE_INSTANCE (qof_instance_get_type ()) |
| #define | QOF_INSTANCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), QOF_TYPE_INSTANCE, QofInstance)) |
| #define | QOF_INSTANCE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), QOF_TYPE_INSTANCE, QofInstanceClass)) |
| #define | QOF_IS_INSTANCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), QOF_TYPE_INSTANCE)) |
| #define | QOF_IS_INSTANCE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), QOF_TYPE_INSTANCE)) |
| #define | QOF_INSTANCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), QOF_TYPE_INSTANCE, QofInstanceClass)) |
| #define | qof_instance_is_dirty qof_instance_get_dirty |
| Return value of is_dirty flag. | |
Functions | |
| GType | qof_instance_get_type (void) |
| Return the GType of a QofInstance. | |
| void | qof_instance_init_data (QofInstance *, QofIdType, QofBook *) |
| Initialise the settings associated with an instance. | |
| QofBook * | qof_instance_get_book (gconstpointer) |
| Return the book pointer. | |
| void | qof_instance_set_book (gconstpointer inst, QofBook *book) |
| Set the book pointer. | |
| void | qof_instance_copy_book (gpointer ptr1, gconstpointer ptr2) |
| Copy the book from one QofInstances to another. | |
| gboolean | qof_instance_books_equal (gconstpointer ptr1, gconstpointer ptr2) |
| See if two QofInstances share the same book. | |
| const GncGUID * | qof_instance_get_guid (gconstpointer) |
| Return the GncGUID of this instance. | |
| const GncGUID * | qof_entity_get_guid (gconstpointer) |
| QofCollection * | qof_instance_get_collection (gconstpointer inst) |
| Return the collection this instance belongs to. | |
| gint | qof_instance_guid_compare (const gconstpointer ptr1, const gconstpointer ptr2) |
| Compare the GncGUID values of two instances. | |
| gint | qof_instance_get_editlevel (gconstpointer ptr) |
| int | qof_instance_version_cmp (const QofInstance *left, const QofInstance *right) |
| Compare two instances, based on their last update times. | |
| gboolean | qof_instance_get_destroying (gconstpointer ptr) |
| Retrieve the flag that indicates whether or not this object is about to be destroyed. | |
| gboolean | qof_instance_get_dirty_flag (gconstpointer ptr) |
| Retrieve the flag that indicates whether or not this object has been modified. | |
| void | qof_instance_print_dirty (const QofInstance *entity, gpointer dummy) |
| gboolean | qof_instance_get_dirty (QofInstance *) |
| gboolean | qof_instance_get_infant (const QofInstance *inst) |
| void | qof_instance_get (const QofInstance *inst, const gchar *first_param,...) |
| Wrapper for g_object_get. | |
| 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. | |
| guint32 | qof_instance_get_idata (gconstpointer inst) |
| get the instance tag number used for kvp management in sql backends. | |
| gchar * | qof_instance_get_display_name (const QofInstance *inst) |
| Returns a displayable name for this object. | |
| GList * | qof_instance_get_referring_object_list (const QofInstance *inst) |
| Returns a list of objects which refer to a specific object. | |
| gboolean | qof_instance_refers_to_object (const QofInstance *inst, const QofInstance *ref) |
| Does this object refer to a specific object. | |
| 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. | |
| 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. | |
Variables | |
| GObject | QofInstance::object |
| QofIdType | QofInstance::e_type |
| Entity type. | |
| KvpFrame * | QofInstance::kvp_data |
| GObjectClass | QofInstanceClass::parent_class |
| gchar *(* | QofInstanceClass::get_display_name )(const QofInstance *) |
| gboolean(* | QofInstanceClass::refers_to_object )(const QofInstance *inst, const QofInstance *ref) |
| GList *(* | QofInstanceClass::get_typed_referring_object_list )(const QofInstance *inst, const QofInstance *ref) |
Qof Instances are a derived type of QofInstance.
The Instance adds some common features and functions that most objects will want to use.
| #define QOF_INSTANCE | ( | o | ) | (G_TYPE_CHECK_INSTANCE_CAST ((o), QOF_TYPE_INSTANCE, QofInstance)) |
Definition at line 57 of file qofinstance.h.
| #define QOF_INSTANCE_CLASS | ( | k | ) | (G_TYPE_CHECK_CLASS_CAST((k), QOF_TYPE_INSTANCE, QofInstanceClass)) |
Definition at line 59 of file qofinstance.h.
| #define QOF_INSTANCE_GET_CLASS | ( | o | ) | (G_TYPE_INSTANCE_GET_CLASS ((o), QOF_TYPE_INSTANCE, QofInstanceClass)) |
Definition at line 65 of file qofinstance.h.
| #define qof_instance_is_dirty qof_instance_get_dirty |
Return value of is_dirty flag.
Definition at line 166 of file qofinstance.h.
| #define QOF_IS_INSTANCE | ( | o | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((o), QOF_TYPE_INSTANCE)) |
Definition at line 61 of file qofinstance.h.
| #define QOF_IS_INSTANCE_CLASS | ( | k | ) | (G_TYPE_CHECK_CLASS_TYPE ((k), QOF_TYPE_INSTANCE)) |
Definition at line 63 of file qofinstance.h.
| #define QOF_TYPE_INSTANCE (qof_instance_get_type ()) |
Definition at line 56 of file qofinstance.h.
| const GncGUID * qof_entity_get_guid | ( | gconstpointer | ent | ) |
Definition at line 457 of file qofinstance.cpp.
| gboolean qof_instance_books_equal | ( | gconstpointer | ptr1, |
| gconstpointer | ptr2 | ||
| ) |
See if two QofInstances share the same book.
Definition at line 545 of file qofinstance.cpp.
| void qof_instance_copy_book | ( | gpointer | ptr1, |
| gconstpointer | ptr2 | ||
| ) |
Copy the book from one QofInstances to another.
Definition at line 536 of file qofinstance.cpp.
| void qof_instance_get | ( | const QofInstance * | inst, |
| const gchar * | first_param, | ||
| ... | |||
| ) |
Wrapper for g_object_get.
Definition at line 29 of file gmock-qofinstance.cpp.
| QofBook * qof_instance_get_book | ( | gconstpointer | inst | ) |
Return the book pointer.
Definition at line 521 of file qofinstance.cpp.
| QofCollection * qof_instance_get_collection | ( | gconstpointer | inst | ) |
Return the collection this instance belongs to.
Definition at line 506 of file qofinstance.cpp.
| gboolean qof_instance_get_destroying | ( | gconstpointer | ptr | ) |
Retrieve the flag that indicates whether or not this object is about to be destroyed.
| ptr | The object whose flag should be retrieved. |
Definition at line 631 of file qofinstance.cpp.
| gboolean qof_instance_get_dirty | ( | QofInstance * | inst | ) |
Definition at line 680 of file qofinstance.cpp.
| gboolean qof_instance_get_dirty_flag | ( | gconstpointer | ptr | ) |
Retrieve the flag that indicates whether or not this object has been modified.
This is specifically the flag on the object. It does not perform any other checking which might normally be performed when testing to see if an object is dirty. If there is any question, use the qof_instance_is_dirty() function instead.
| ptr | The object whose flag should be retrieved. |
Definition at line 645 of file qofinstance.cpp.
| gchar * qof_instance_get_display_name | ( | const QofInstance * | inst | ) |
Returns a displayable name for this object.
The returned string must be freed by the caller.
Definition at line 776 of file qofinstance.cpp.
| gint qof_instance_get_editlevel | ( | gconstpointer | ptr | ) |
Definition at line 591 of file qofinstance.cpp.
| const GncGUID * qof_instance_get_guid | ( | gconstpointer | inst | ) |
Return the GncGUID of this instance.
Definition at line 446 of file qofinstance.cpp.
| guint32 qof_instance_get_idata | ( | gconstpointer | inst | ) |
get the instance tag number used for kvp management in sql backends.
Definition at line 753 of file qofinstance.cpp.
| gboolean qof_instance_get_infant | ( | const QofInstance * | inst | ) |
Definition at line 703 of file qofinstance.cpp.
| GList * qof_instance_get_referring_object_list | ( | const QofInstance * | inst | ) |
Returns a list of objects which refer to a specific object.
The list must be freed by the caller, but the objects on the list must not.
Definition at line 826 of file qofinstance.cpp.
| 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.
The list must be freed by the caller but the objects on the list must not.
Definition at line 854 of file qofinstance.cpp.
| 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.
For example, when called as qof_instance_get_typed_referring_object_list(taxtable, account); it will return the list of taxtables which refer to a specific account. The result should be the same regardless of which taxtable object is used. The list must be freed by the caller but the objects on the list must not.
Definition at line 869 of file qofinstance.cpp.
| gint qof_instance_guid_compare | ( | const gconstpointer | ptr1, |
| const gconstpointer | ptr2 | ||
| ) |
Compare the GncGUID values of two instances.
This routine returns 0 if the two values are equal, <0 if the first is smaller than the second, or >0 if the second is smaller tan the first.
Definition at line 492 of file qofinstance.cpp.
| void qof_instance_init_data | ( | QofInstance * | inst, |
| QofIdType | type, | ||
| QofBook * | book | ||
| ) |
Initialise the settings associated with an instance.
Definition at line 260 of file qofinstance.cpp.
| void qof_instance_print_dirty | ( | const QofInstance * | entity, |
| gpointer | dummy | ||
| ) |
Definition at line 666 of file qofinstance.cpp.
| gboolean qof_instance_refers_to_object | ( | const QofInstance * | inst, |
| const QofInstance * | ref | ||
| ) |
Does this object refer to a specific object.
Definition at line 890 of file qofinstance.cpp.
| 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.
Definition at line 42 of file gmock-qofinstance.cpp.
| void qof_instance_set_book | ( | gconstpointer | inst, |
| QofBook * | book | ||
| ) |
Set the book pointer.
Definition at line 529 of file qofinstance.cpp.
| int qof_instance_version_cmp | ( | const QofInstance * | left, |
| const QofInstance * | right | ||
| ) |
Compare two instances, based on their last update times.
Returns a negative, zero or positive value, respectively, if 'left' is earlier, same as or later than 'right'. Accepts NULL pointers, NULL's are by definition earlier than any value.
Definition at line 616 of file qofinstance.cpp.
| QofIdType QofInstance::e_type |
Entity type.
Definition at line 75 of file qofinstance.h.
| gchar *(* QofInstanceClass::get_display_name) (const QofInstance *) |
Definition at line 84 of file qofinstance.h.
| GList *(* QofInstanceClass::get_typed_referring_object_list) (const QofInstance *inst, const QofInstance *ref) |
Definition at line 90 of file qofinstance.h.
| KvpFrame* QofInstance::kvp_data |
Definition at line 76 of file qofinstance.h.
| GObject QofInstance::object |
Definition at line 74 of file qofinstance.h.
| GObjectClass QofInstanceClass::parent_class |
Definition at line 81 of file qofinstance.h.
| gboolean(* QofInstanceClass::refers_to_object) (const QofInstance *inst, const QofInstance *ref) |
Definition at line 87 of file qofinstance.h.