5833{
5834 static QofParam params[] =
5835 {
5836 {
5837 ACCOUNT_NAME_, QOF_TYPE_STRING,
5840 },
5841 {
5842 ACCOUNT_CODE_, QOF_TYPE_STRING,
5845 },
5846 {
5847 ACCOUNT_DESCRIPTION_, QOF_TYPE_STRING,
5850 },
5851 {
5852 ACCOUNT_COLOR_, QOF_TYPE_STRING,
5855 },
5856 {
5857 ACCOUNT_FILTER_, QOF_TYPE_STRING,
5860 },
5861 {
5862 ACCOUNT_SORT_ORDER_, QOF_TYPE_STRING,
5865 },
5866 {
5867 ACCOUNT_SORT_REVERSED_, QOF_TYPE_BOOLEAN,
5870 },
5871 {
5872 ACCOUNT_NOTES_, QOF_TYPE_STRING,
5875 },
5876 {
5877 ACCOUNT_PRESENT_, QOF_TYPE_NUMERIC,
5879 },
5880 {
5881 ACCOUNT_BALANCE_, QOF_TYPE_NUMERIC,
5883 },
5884 {
5885 ACCOUNT_CLEARED_, QOF_TYPE_NUMERIC,
5887 },
5888 {
5889 ACCOUNT_RECONCILED_, QOF_TYPE_NUMERIC,
5891 },
5892 {
5893 ACCOUNT_TYPE_, QOF_TYPE_STRING,
5896 },
5897 {
5898 ACCOUNT_FUTURE_MINIMUM_, QOF_TYPE_NUMERIC,
5899 (
QofAccessFunc) xaccAccountGetProjectedMinimumBalance,
nullptr
5900 },
5901 {
5902 ACCOUNT_TAX_RELATED, QOF_TYPE_BOOLEAN,
5905 },
5906 {
5907 ACCOUNT_OPENING_BALANCE_, QOF_TYPE_BOOLEAN,
5910 },
5911 {
5912 ACCOUNT_SCU, QOF_TYPE_INT32,
5915 },
5916 {
5917 ACCOUNT_NSCU, QOF_TYPE_BOOLEAN,
5920 },
5921 {
5922 ACCOUNT_PARENT, GNC_ID_ACCOUNT,
5925 },
5926 {
5929 },
5930 {
5931 QOF_PARAM_GUID, QOF_TYPE_GUID,
5933 },
5934 { nullptr },
5935 };
5936
5938
5940}
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