5845{
5846 static QofParam params[] =
5847 {
5848 {
5849 ACCOUNT_NAME_, QOF_TYPE_STRING,
5852 },
5853 {
5854 ACCOUNT_CODE_, QOF_TYPE_STRING,
5857 },
5858 {
5859 ACCOUNT_DESCRIPTION_, QOF_TYPE_STRING,
5862 },
5863 {
5864 ACCOUNT_COLOR_, QOF_TYPE_STRING,
5867 },
5868 {
5869 ACCOUNT_FILTER_, QOF_TYPE_STRING,
5872 },
5873 {
5874 ACCOUNT_SORT_ORDER_, QOF_TYPE_STRING,
5877 },
5878 {
5879 ACCOUNT_SORT_REVERSED_, QOF_TYPE_BOOLEAN,
5882 },
5883 {
5884 ACCOUNT_NOTES_, QOF_TYPE_STRING,
5887 },
5888 {
5889 ACCOUNT_PRESENT_, QOF_TYPE_NUMERIC,
5891 },
5892 {
5893 ACCOUNT_BALANCE_, QOF_TYPE_NUMERIC,
5895 },
5896 {
5897 ACCOUNT_CLEARED_, QOF_TYPE_NUMERIC,
5899 },
5900 {
5901 ACCOUNT_RECONCILED_, QOF_TYPE_NUMERIC,
5903 },
5904 {
5905 ACCOUNT_TYPE_, QOF_TYPE_STRING,
5908 },
5909 {
5910 ACCOUNT_FUTURE_MINIMUM_, QOF_TYPE_NUMERIC,
5911 (
QofAccessFunc) xaccAccountGetProjectedMinimumBalance,
nullptr
5912 },
5913 {
5914 ACCOUNT_TAX_RELATED, QOF_TYPE_BOOLEAN,
5917 },
5918 {
5919 ACCOUNT_OPENING_BALANCE_, QOF_TYPE_BOOLEAN,
5922 },
5923 {
5924 ACCOUNT_SCU, QOF_TYPE_INT32,
5927 },
5928 {
5929 ACCOUNT_NSCU, QOF_TYPE_BOOLEAN,
5932 },
5933 {
5934 ACCOUNT_PARENT, GNC_ID_ACCOUNT,
5937 },
5938 {
5941 },
5942 {
5943 QOF_PARAM_GUID, QOF_TYPE_GUID,
5945 },
5946 { nullptr },
5947 };
5948
5950
5952}
const char * xaccAccountGetName(const Account *acc)
Get the account's name.
const char * xaccAccountGetDescription(const Account *acc)
Get the account's description.
void xaccAccountSetColor(Account *acc, const char *str)
Set the account's Color.
const char * xaccAccountGetColor(const Account *acc)
Get the account's color.
int xaccAccountGetCommoditySCU(const Account *acc)
Return the SCU for the account.
void xaccAccountSetName(Account *acc, const char *str)
Set the account's name.
void xaccAccountSetCommoditySCU(Account *acc, int scu)
Set the SCU for the account.
void xaccAccountSetFilter(Account *acc, const char *str)
Set the account's Filter.
void xaccAccountSetNonStdSCU(Account *acc, gboolean flag)
Set the flag indicating that this account uses a non-standard SCU.
const char * xaccAccountGetSortOrder(const Account *acc)
Get the account's Sort Order.
void xaccAccountSetDescription(Account *acc, const char *str)
Set the account's description.
void xaccAccountSetSortReversed(Account *acc, gboolean sortreversed)
Set the account's Sort Order direction.
gnc_numeric xaccAccountGetBalance(const Account *acc)
Get the current balance of the account, which may include future splits.
Account * gnc_account_get_parent(const Account *acc)
This routine returns a pointer to the parent of the specified account.
void xaccAccountSetNotes(Account *acc, const char *str)
Set the account's notes.
const char * xaccAccountGetFilter(const Account *acc)
Get the account's filter.
void xaccAccountSetCode(Account *acc, const char *str)
Set the account's accounting code.
const char * xaccAccountGetNotes(const Account *acc)
Get the account's notes.
void xaccAccountSetSortOrder(Account *acc, const char *str)
Set the account's Sort Order.
gnc_numeric xaccAccountGetClearedBalance(const Account *acc)
Get the current balance of the account, only including cleared transactions.
gnc_numeric xaccAccountGetReconciledBalance(const Account *acc)
Get the current balance of the account, only including reconciled transactions.
gboolean xaccAccountGetNonStdSCU(const Account *acc)
Return boolean, indicating whether this account uses a non-standard SCU.
const char * xaccAccountGetCode(const Account *acc)
Get the account's accounting code.
gboolean xaccAccountGetSortReversed(const Account *acc)
Get the account's Sort Order direction.
gpointer(* QofAccessFunc)(gpointer object, const QofParam *param)
The QofAccessFunc defines an arbitrary function pointer for access functions.
void(* QofSetterFunc)(gpointer, gpointer)
The QofSetterFunc defines an function pointer for parameter setters.
void qof_class_register(QofIdTypeConst obj_name, QofSortFunc default_sort_function, const QofParam *params)
This function registers a new object class with the Qof subsystem.
int(* QofSortFunc)(gconstpointer, gconstpointer)
This function is the default sort function for a particular object type.
gboolean xaccAccountGetIsOpeningBalance(const Account *acc)
Get the "opening-balance" flag for an account.
void xaccAccountSetIsOpeningBalance(Account *acc, gboolean val)
Set the "opening-balance" flag for an account.
gboolean xaccAccountGetTaxRelated(const Account *acc)
DOCUMENT ME!
void xaccAccountSetTaxRelated(Account *acc, gboolean tax_related)
DOCUMENT ME!
QofBook * qof_instance_get_book(gconstpointer inst)
Return the book pointer.
const GncGUID * qof_instance_get_guid(gconstpointer inst)
Return the GncGUID of this instance.
gboolean qof_object_register(const QofObject *object)
Register new types of object objects.
#define QOF_PARAM_BOOK
"Known" Object Parameters – all objects must support these