5826{
5827 static QofParam params[] =
5828 {
5829 {
5830 ACCOUNT_NAME_, QOF_TYPE_STRING,
5833 },
5834 {
5835 ACCOUNT_CODE_, QOF_TYPE_STRING,
5838 },
5839 {
5840 ACCOUNT_DESCRIPTION_, QOF_TYPE_STRING,
5843 },
5844 {
5845 ACCOUNT_COLOR_, QOF_TYPE_STRING,
5848 },
5849 {
5850 ACCOUNT_FILTER_, QOF_TYPE_STRING,
5853 },
5854 {
5855 ACCOUNT_SORT_ORDER_, QOF_TYPE_STRING,
5858 },
5859 {
5860 ACCOUNT_SORT_REVERSED_, QOF_TYPE_BOOLEAN,
5863 },
5864 {
5865 ACCOUNT_NOTES_, QOF_TYPE_STRING,
5868 },
5869 {
5870 ACCOUNT_PRESENT_, QOF_TYPE_NUMERIC,
5872 },
5873 {
5874 ACCOUNT_BALANCE_, QOF_TYPE_NUMERIC,
5876 },
5877 {
5878 ACCOUNT_CLEARED_, QOF_TYPE_NUMERIC,
5880 },
5881 {
5882 ACCOUNT_RECONCILED_, QOF_TYPE_NUMERIC,
5884 },
5885 {
5886 ACCOUNT_TYPE_, QOF_TYPE_STRING,
5889 },
5890 {
5891 ACCOUNT_FUTURE_MINIMUM_, QOF_TYPE_NUMERIC,
5892 (
QofAccessFunc) xaccAccountGetProjectedMinimumBalance,
nullptr
5893 },
5894 {
5895 ACCOUNT_TAX_RELATED, QOF_TYPE_BOOLEAN,
5898 },
5899 {
5900 ACCOUNT_OPENING_BALANCE_, QOF_TYPE_BOOLEAN,
5903 },
5904 {
5905 ACCOUNT_SCU, QOF_TYPE_INT32,
5908 },
5909 {
5910 ACCOUNT_NSCU, QOF_TYPE_BOOLEAN,
5913 },
5914 {
5915 ACCOUNT_PARENT, GNC_ID_ACCOUNT,
5918 },
5919 {
5922 },
5923 {
5924 QOF_PARAM_GUID, QOF_TYPE_GUID,
5926 },
5927 { nullptr },
5928 };
5929
5931
5933}
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