|
GnuCash c935c2f+
|
The GnuCash Engine provides a set of objects and classes that encapsulate typical financial accounting concepts. More...
Modules | |
| Environment | |
| The API in this file is used to read the environment configuration file and set up a number of environment variables based on the values found in it. | |
| Generic Preference Utilities | |
| The only function in this file is meant to initialize the preferences system early in the load process. | |
| Account | |
| Splits are grouped into Accounts which are also known as "Ledgers" in accounting practice. | |
| Cap Gains | |
| This file implements the various routines to automatically compute and handle Cap Gains/Losses resulting from trading activities. | |
| Commodities | |
| A commodity is something of value that is easily tradeable or sellable; for example, currencies, stocks, bonds, grain, copper, and oil are all commodities. | |
| Lots: Core Function for AR/AP, Inventory, Stock Lots, Cap Gains | |
| One often needs to know that the item 'bought' in one transaction is the same one as the item 'sold' in a different transaction. | |
| Options | |
| GnuCash Options System for Book, Report, and Stylesheet Options. | |
| Price Database | |
| The PriceDB is intended to be a database of price quotes, or more specifically, a database of GNCPrices. | |
| Prices | |
| Each price in the database represents an "instantaneous" quote for a given commodity with respect to another commodity. | |
| Business | |
| This module implements a number of basic small-business accounting functions. | |
| Accounting Policy (FIFO/LIFO) | |
| This file implements Accounting Policy. | |
| Scheduled/Periodic/Recurring Transactions | |
| Scheduled Transactions provide a framework for remembering information about a transactions that are set to occur in the future, either once or periodically. | |
| Data Validation | |
| Data scrubbing, repairing and forward migration routines. | |
| Transaction, Split | |
| A good overview of transactions, splits and accounts can be found in the texinfo documentation, together with an overview of how to use this API. | |
| Transaction Logging | |
| The transaction logging mechanism provides a very simple, low-level logging of user input to a file. | |
Files | |
| file | gnc-engine.h |
| All type declarations for the whole Gnucash engine. | |
| file | Transaction.h |
| API for Transactions and Splits (journal entries) | |
Data Structures | |
| struct | GncImapInfo |
Macros | |
| #define | ACCOUNT_MATCH_ALL_TYPE "account-match-all" |
| This is the type-override when you want to match all accounts. | |
| #define | GNC_TYPE_TRANSACTION (gnc_transaction_get_type ()) |
| #define | GNC_TRANSACTION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_TRANSACTION, Transaction)) |
| #define | GNC_TRANSACTION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_TRANSACTION, TransactionClass)) |
| #define | GNC_IS_TRANSACTION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_TRANSACTION)) |
| #define | GNC_IS_TRANSACTION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_TRANSACTION)) |
| #define | GNC_TRANSACTION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_TRANSACTION, TransactionClass)) |
| #define | GNC_IS_TRANS(obj) GNC_IS_TRANSACTION(obj) |
| #define | GNC_TRANS(obj) GNC_TRANSACTION(obj) |
| #define | RECONCILED_MATCH_TYPE "reconciled-match" |
| #define | xaccTransGetBook(X) qof_instance_get_book (QOF_INSTANCE(X)) |
| #define | xaccTransGetGUID(X) qof_entity_get_guid(QOF_INSTANCE(X)) |
Enumerations | |
| enum | GNCPlaceholderType { PLACEHOLDER_NONE , PLACEHOLDER_THIS , PLACEHOLDER_CHILD } |
| DOCUMENT ME! More... | |
Functions | |
| GncOptionValue< ValueType >::GncOptionValue (const char *section, const char *name, const char *key, const char *doc_string, ValueType value, GncOptionUIType ui_type=GncOptionUIType::INTERNAL) | |
| GncOptionValue< ValueType >::GncOptionValue (const GncOptionValue &)=default | |
| GncOptionValue< ValueType >::GncOptionValue (GncOptionValue &&)=default | |
| GncOptionValue & | GncOptionValue< ValueType >::operator= (const GncOptionValue &)=default |
| GncOptionValue & | GncOptionValue< ValueType >::operator= (GncOptionValue &&)=default |
| ValueType | GncOptionValue< ValueType >::get_value () const |
| ValueType | GncOptionValue< ValueType >::get_default_value () const |
| void | GncOptionValue< ValueType >::set_value (ValueType new_value) |
| void | GncOptionValue< ValueType >::set_default_value (ValueType new_value) |
| void | GncOptionValue< ValueType >::reset_default_value () |
| void | GncOptionValue< ValueType >::mark_saved () noexcept |
| bool | GncOptionValue< ValueType >::is_dirty () const noexcept |
| bool | GncOptionValue< ValueType >::is_changed () const noexcept |
| GncOptionUIType | GncOptionValue< ValueType >::get_ui_type () const noexcept |
| void | GncOptionValue< ValueType >::make_internal () |
| bool | GncOptionValue< ValueType >::is_internal () |
| std::string | GncOptionValue< ValueType >::serialize () const noexcept |
| bool | GncOptionValue< ValueType >::deserialize (const std::string &str) noexcept |
| void | GncOwnerDeleter::operator() (GncOwner *o) |
| GncOptionGncOwnerValue::GncOptionGncOwnerValue (const char *section, const char *name, const char *key, const char *doc_string, const GncOwner *value, GncOptionUIType ui_type=GncOptionUIType::INTERNAL) | |
| GncOptionGncOwnerValue::GncOptionGncOwnerValue (const GncOptionGncOwnerValue &from) | |
| GncOptionGncOwnerValue::GncOptionGncOwnerValue (GncOptionGncOwnerValue &&)=default | |
| const GncOwner * | GncOptionGncOwnerValue::get_value () const |
| const GncOwner * | GncOptionGncOwnerValue::get_default_value () const |
| void | GncOptionGncOwnerValue::set_value (const GncOwner *new_value) |
| void | GncOptionGncOwnerValue::set_default_value (const GncOwner *new_value) |
| void | GncOptionGncOwnerValue::reset_default_value () |
| void | GncOptionGncOwnerValue::mark_saved () noexcept |
| bool | GncOptionGncOwnerValue::is_dirty () const noexcept |
| bool | GncOptionGncOwnerValue::is_changed () const noexcept |
| GncOptionUIType | GncOptionGncOwnerValue::get_ui_type () const noexcept |
| void | GncOptionGncOwnerValue::make_internal () |
| bool | GncOptionGncOwnerValue::is_internal () |
| std::string | GncOptionGncOwnerValue::serialize () const noexcept |
| bool | GncOptionGncOwnerValue::deserialize (const std::string &str) noexcept |
| GncOptionQofInstanceValue::GncOptionQofInstanceValue (const char *section, const char *name, const char *key, const char *doc_string, const QofInstance *value, GncOptionUIType ui_type=GncOptionUIType::INTERNAL) | |
| GncOptionQofInstanceValue::GncOptionQofInstanceValue (const GncOptionQofInstanceValue &from) | |
| GncOptionQofInstanceValue::GncOptionQofInstanceValue (GncOptionQofInstanceValue &&)=default | |
| GncOptionQofInstanceValue & | GncOptionQofInstanceValue::operator= (GncOptionQofInstanceValue &&)=default |
| const QofInstance * | GncOptionQofInstanceValue::get_value () const |
| const QofInstance * | GncOptionQofInstanceValue::get_default_value () const |
| GncItem | GncOptionQofInstanceValue::get_item () const |
| GncItem | GncOptionQofInstanceValue::get_default_item () const |
| void | GncOptionQofInstanceValue::set_value (const QofInstance *new_value) |
| void | GncOptionQofInstanceValue::set_default_value (const QofInstance *new_value) |
| void | GncOptionQofInstanceValue::reset_default_value () |
| void | GncOptionQofInstanceValue::mark_saved () noexcept |
| bool | GncOptionQofInstanceValue::is_dirty () const noexcept |
| bool | GncOptionQofInstanceValue::is_changed () const noexcept |
| GncOptionUIType | GncOptionQofInstanceValue::get_ui_type () const noexcept |
| void | GncOptionQofInstanceValue::make_internal () |
| bool | GncOptionQofInstanceValue::is_internal () |
| std::string | GncOptionQofInstanceValue::serialize () const noexcept |
| bool | GncOptionQofInstanceValue::deserialize (const std::string &str) noexcept |
| GncOptionCommodityValue::GncOptionCommodityValue (const char *section, const char *name, const char *key, const char *doc_string, gnc_commodity *value, GncOptionUIType ui_type=GncOptionUIType::COMMODITY) | |
| GncOptionCommodityValue::GncOptionCommodityValue (const GncOptionCommodityValue &)=default | |
| GncOptionCommodityValue::GncOptionCommodityValue (GncOptionCommodityValue &&)=default | |
| GncOptionCommodityValue & | GncOptionCommodityValue::operator= (const GncOptionCommodityValue &)=default |
| GncOptionCommodityValue & | GncOptionCommodityValue::operator= (GncOptionCommodityValue &&)=default |
| gnc_commodity * | GncOptionCommodityValue::get_value () const |
| gnc_commodity * | GncOptionCommodityValue::get_default_value () const |
| bool | GncOptionCommodityValue::validate (gnc_commodity *) const noexcept |
| void | GncOptionCommodityValue::set_value (gnc_commodity *value) |
| void | GncOptionCommodityValue::set_default_value (gnc_commodity *value) |
| void | GncOptionCommodityValue::reset_default_value () |
| void | GncOptionCommodityValue::mark_saved () noexcept |
| bool | GncOptionCommodityValue::is_dirty () const noexcept |
| bool | GncOptionCommodityValue::is_changed () const noexcept |
| GncOptionUIType | GncOptionCommodityValue::get_ui_type () const noexcept |
| void | GncOptionCommodityValue::make_internal () |
| bool | GncOptionCommodityValue::is_internal () |
| std::string | GncOptionCommodityValue::serialize () const noexcept |
| bool | GncOptionCommodityValue::deserialize (const std::string &str) noexcept |
| GncOptionRangeValue< ValueType >::GncOptionRangeValue (const char *section, const char *name, const char *key, const char *doc_string, ValueType value, ValueType min, ValueType max, ValueType step) | |
| GncOptionRangeValue< ValueType >::GncOptionRangeValue (const char *section, const char *name, const char *key, const char *doc_string, ValueType value, ValueType min, ValueType max, ValueType step, GncOptionUIType ui) | |
| GncOptionRangeValue< ValueType >::GncOptionRangeValue (const GncOptionRangeValue< ValueType > &)=default | |
| GncOptionRangeValue< ValueType >::GncOptionRangeValue (GncOptionRangeValue< ValueType > &&)=default | |
| GncOptionRangeValue< ValueType > & | GncOptionRangeValue< ValueType >::operator= (const GncOptionRangeValue< ValueType > &)=default |
| GncOptionRangeValue< ValueType > & | GncOptionRangeValue< ValueType >::operator= (GncOptionRangeValue< ValueType > &&)=default |
| ValueType | GncOptionRangeValue< ValueType >::get_value () const |
| ValueType | GncOptionRangeValue< ValueType >::get_default_value () const |
| bool | GncOptionRangeValue< ValueType >::validate (ValueType value) |
| void | GncOptionRangeValue< ValueType >::set_value (ValueType value) |
| void | GncOptionRangeValue< ValueType >::set_default_value (ValueType value) |
| void | GncOptionRangeValue< ValueType >::get_limits (ValueType &upper, ValueType &lower, ValueType &step) const noexcept |
| void | GncOptionRangeValue< ValueType >::reset_default_value () |
| void | GncOptionRangeValue< ValueType >::mark_saved () noexcept |
| bool | GncOptionRangeValue< ValueType >::is_dirty () const noexcept |
| bool | GncOptionRangeValue< ValueType >::is_changed () const noexcept |
| GncOptionUIType | GncOptionRangeValue< ValueType >::get_ui_type () const noexcept |
| void | GncOptionRangeValue< ValueType >::make_internal () |
| bool | GncOptionRangeValue< ValueType >::is_internal () |
| bool | GncOptionRangeValue< ValueType >::is_alternate () const noexcept |
| void | GncOptionRangeValue< ValueType >::set_alternate (bool value) noexcept |
| std::string | GncOptionRangeValue< ValueType >::serialize () const noexcept |
| bool | GncOptionRangeValue< ValueType >::deserialize (const std::string &str) noexcept |
| GncOptionMultichoiceValue::GncOptionMultichoiceValue (const char *section, const char *name, const char *key, const char *doc_string, const char *value, GncMultichoiceOptionChoices &&choices, GncOptionUIType ui_type=GncOptionUIType::MULTICHOICE) | |
| GncOptionMultichoiceValue::GncOptionMultichoiceValue (const char *section, const char *name, const char *key, const char *doc_string, uint16_t index, GncMultichoiceOptionChoices &&choices, GncOptionUIType ui_type=GncOptionUIType::MULTICHOICE) | |
| GncOptionMultichoiceValue::GncOptionMultichoiceValue (const char *section, const char *name, const char *key, const char *doc_string, GncMultichoiceOptionIndexVec &&indices, GncMultichoiceOptionChoices &&choices, GncOptionUIType ui_type=GncOptionUIType::LIST) | |
| GncOptionMultichoiceValue::GncOptionMultichoiceValue (const GncOptionMultichoiceValue &)=default | |
| GncOptionMultichoiceValue::GncOptionMultichoiceValue (GncOptionMultichoiceValue &&)=default | |
| GncOptionMultichoiceValue & | GncOptionMultichoiceValue::operator= (const GncOptionMultichoiceValue &)=default |
| GncOptionMultichoiceValue & | GncOptionMultichoiceValue::operator= (GncOptionMultichoiceValue &&)=default |
| const std::string & | GncOptionMultichoiceValue::get_value () const |
| const std::string & | GncOptionMultichoiceValue::get_default_value () const |
| uint16_t | GncOptionMultichoiceValue::get_index () const |
| const GncMultichoiceOptionIndexVec & | GncOptionMultichoiceValue::get_multiple () const noexcept |
| const GncMultichoiceOptionIndexVec & | GncOptionMultichoiceValue::get_default_multiple () const noexcept |
| bool | GncOptionMultichoiceValue::validate (const std::string &value) const noexcept |
| bool | GncOptionMultichoiceValue::validate (const GncMultichoiceOptionIndexVec &indexes) const noexcept |
| void | GncOptionMultichoiceValue::set_value (const std::string &value) |
| void | GncOptionMultichoiceValue::set_value (uint16_t index) |
| void | GncOptionMultichoiceValue::set_default_value (const std::string &value) |
| void | GncOptionMultichoiceValue::set_default_value (uint16_t index) |
| void | GncOptionMultichoiceValue::set_multiple (const GncMultichoiceOptionIndexVec &indexes) |
| void | GncOptionMultichoiceValue::set_default_multiple (const GncMultichoiceOptionIndexVec &indexes) |
| uint16_t | GncOptionMultichoiceValue::num_permissible_values () const noexcept |
| uint16_t | GncOptionMultichoiceValue::permissible_value_index (const char *key) const noexcept |
| const char * | GncOptionMultichoiceValue::permissible_value (uint16_t index) const |
| const char * | GncOptionMultichoiceValue::permissible_value_name (uint16_t index) const |
| void | GncOptionMultichoiceValue::reset_default_value () |
| void | GncOptionMultichoiceValue::mark_saved () noexcept |
| bool | GncOptionMultichoiceValue::is_dirty () const noexcept |
| bool | GncOptionMultichoiceValue::is_changed () const noexcept |
| GncOptionUIType | GncOptionMultichoiceValue::get_ui_type () const noexcept |
| void | GncOptionMultichoiceValue::make_internal () |
| bool | GncOptionMultichoiceValue::is_internal () |
| GncOptionMultichoiceKeyType | GncOptionMultichoiceValue::get_keytype (unsigned i) const |
| std::string | GncOptionMultichoiceValue::serialize () const noexcept |
| bool | GncOptionMultichoiceValue::deserialize (const std::string &str) noexcept |
| GncOptionAccountListValue::GncOptionAccountListValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type, bool multi=true) | |
| GncOptionAccountListValue::GncOptionAccountListValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type, const GncOptionAccountList &value, bool multi=true) | |
| GncOptionAccountListValue::GncOptionAccountListValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type, GncOptionAccountTypeList &&allowed, bool multi=true) | |
| GncOptionAccountListValue::GncOptionAccountListValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type, const GncOptionAccountList &value, GncOptionAccountTypeList &&allowed, bool multi=true) | |
| GncOptionAccountList | GncOptionAccountListValue::get_value () const |
| GncOptionAccountList | GncOptionAccountListValue::get_default_value () const |
| bool | GncOptionAccountListValue::validate (const GncOptionAccountList &values) const |
| void | GncOptionAccountListValue::set_value (GncOptionAccountList values) |
| void | GncOptionAccountListValue::set_default_value (GncOptionAccountList values) |
| GList * | GncOptionAccountListValue::account_type_list () const noexcept |
| Create a GList of account types to pass to gnc_account_sel_set_acct_filters. | |
| void | GncOptionAccountListValue::reset_default_value () |
| void | GncOptionAccountListValue::mark_saved () noexcept |
| bool | GncOptionAccountListValue::is_dirty () const noexcept |
| bool | GncOptionAccountListValue::is_changed () const noexcept |
| GncOptionUIType | GncOptionAccountListValue::get_ui_type () const noexcept |
| void | GncOptionAccountListValue::make_internal () |
| bool | GncOptionAccountListValue::is_internal () |
| bool | GncOptionAccountListValue::is_multiselect () const noexcept |
| std::string | GncOptionAccountListValue::serialize () const noexcept |
| bool | GncOptionAccountListValue::deserialize (const std::string &str) noexcept |
| GncOptionAccountSelValue::GncOptionAccountSelValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type) | |
| GncOptionAccountSelValue::GncOptionAccountSelValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type, const Account *value) | |
| GncOptionAccountSelValue::GncOptionAccountSelValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type, GncOptionAccountTypeList &&allowed) | |
| GncOptionAccountSelValue::GncOptionAccountSelValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type, const Account *value, GncOptionAccountTypeList &&allowed) | |
| const Account * | GncOptionAccountSelValue::get_value () const |
| const Account * | GncOptionAccountSelValue::get_default_value () const |
| bool | GncOptionAccountSelValue::validate (const Account *value) const |
| void | GncOptionAccountSelValue::set_value (const Account *value) |
| void | GncOptionAccountSelValue::set_default_value (const Account *value) |
| GList * | GncOptionAccountSelValue::account_type_list () const noexcept |
| Create a GList of account types to pass to gnc_account_sel_set_acct_filters. | |
| void | GncOptionAccountSelValue::reset_default_value () |
| void | GncOptionAccountSelValue::mark_saved () noexcept |
| bool | GncOptionAccountSelValue::is_dirty () const noexcept |
| bool | GncOptionAccountSelValue::is_changed () const noexcept |
| GncOptionUIType | GncOptionAccountSelValue::get_ui_type () const noexcept |
| void | GncOptionAccountSelValue::make_internal () |
| bool | GncOptionAccountSelValue::is_internal () |
| std::string | GncOptionAccountSelValue::serialize () const noexcept |
| bool | GncOptionAccountSelValue::deserialize (const std::string &str) noexcept |
| GncOptionDateValue::GncOptionDateValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type) | |
| GncOptionDateValue::GncOptionDateValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type, time64 time) | |
| GncOptionDateValue::GncOptionDateValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type, RelativeDatePeriod period) | |
| GncOptionDateValue::GncOptionDateValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type, const RelativeDatePeriodVec &period_set) | |
| GncOptionDateValue::GncOptionDateValue (const GncOptionDateValue &)=default | |
| GncOptionDateValue::GncOptionDateValue (GncOptionDateValue &&)=default | |
| GncOptionDateValue & | GncOptionDateValue::operator= (const GncOptionDateValue &)=default |
| GncOptionDateValue & | GncOptionDateValue::operator= (GncOptionDateValue &&)=default |
| time64 | GncOptionDateValue::get_value () const noexcept |
| time64 | GncOptionDateValue::get_default_value () const noexcept |
| RelativeDatePeriod | GncOptionDateValue::get_period () const noexcept |
| RelativeDatePeriod | GncOptionDateValue::get_default_period () const noexcept |
| uint16_t | GncOptionDateValue::get_period_index () const noexcept |
| uint16_t | GncOptionDateValue::get_default_period_index () const noexcept |
| std::ostream & | GncOptionDateValue::out_stream (std::ostream &oss) const noexcept |
| std::istream & | GncOptionDateValue::in_stream (std::istream &iss) |
| bool | GncOptionDateValue::validate (RelativeDatePeriod value) |
| bool | GncOptionDateValue::validate (time64 time) |
| void | GncOptionDateValue::set_value (RelativeDatePeriod value) |
| void | GncOptionDateValue::set_value (time64 time) |
| void | GncOptionDateValue::set_value (uint16_t index) noexcept |
| void | GncOptionDateValue::set_default_value (RelativeDatePeriod value) |
| void | GncOptionDateValue::set_default_value (time64 time) |
| uint16_t | GncOptionDateValue::num_permissible_values () const noexcept |
| uint16_t | GncOptionDateValue::permissible_value_index (const char *key) const noexcept |
| const char * | GncOptionDateValue::permissible_value (uint16_t index) const |
| const char * | GncOptionDateValue::permissible_value_name (uint16_t index) const |
| void | GncOptionDateValue::reset_default_value () |
| void | GncOptionDateValue::mark_saved () noexcept |
| bool | GncOptionDateValue::is_dirty () const noexcept |
| bool | GncOptionDateValue::is_changed () const noexcept |
| GncOptionUIType | GncOptionDateValue::get_ui_type () const noexcept |
| void | GncOptionDateValue::make_internal () |
| bool | GncOptionDateValue::is_internal () |
| const RelativeDatePeriodVec & | GncOptionDateValue::get_period_set () const |
| std::string | GncOptionDateValue::serialize () const noexcept |
| bool | GncOptionDateValue::deserialize (const std::string &str) noexcept |
| template<typename OptionType , typename std::enable_if_t< is_OptionClassifier_v< OptionType >, int > = 0> | |
| GncOption::GncOption (OptionType option) | |
| template<typename ValueType , typename std::enable_if_t<!is_OptionClassifier_v< ValueType >, int > = 0> | |
| GncOption::GncOption (const char *section, const char *name, const char *key, const char *doc_string, ValueType value, GncOptionUIType ui_type=GncOptionUIType::INTERNAL) | |
| template<typename ValueType > | |
| void | GncOption::set_value (ValueType value) |
| template<typename ValueType > | |
| void | GncOption::set_default_value (ValueType value) |
| template<typename ValueType > | |
| ValueType | GncOption::get_default_value () const |
| template<typename ValueType > | |
| ValueType | GncOption::get_value () const |
| void | GncOption::reset_default_value () |
| const std::string & | GncOption::get_section () const |
| const std::string & | GncOption::get_name () const |
| const std::string & | GncOption::get_key () const |
| const std::string & | GncOption::get_docstring () const |
| void | GncOption::set_ui_item (GncOptionUIItemPtr &&ui_elem) |
| const GncOptionUIType | GncOption::get_ui_type () const |
| void | GncOption::set_ui_item_selectable (bool) const noexcept |
| GncOptionUIItem *const | GncOption::get_ui_item () const |
| void | GncOption::set_ui_item_from_option () |
| void | GncOption::set_option_from_ui_item () |
| void | GncOption::make_internal () |
| bool | GncOption::is_internal () |
| void | GncOption::mark_saved () noexcept |
| Mark the option as needing to be saved. | |
| bool | GncOption::is_dirty () const noexcept |
| bool | GncOption::is_changed () const noexcept |
| bool | GncOption::is_multiselect () const noexcept |
| template<typename ValueType > | |
| void | GncOption::get_limits (ValueType &, ValueType &, ValueType &) const noexcept |
| Implemented only for GncOptionNumericRange. | |
| template<typename ValueType > | |
| bool | GncOption::validate (ValueType value) const |
| Not implemented for GncOptionValue. | |
| uint16_t | GncOption::num_permissible_values () const |
| Implemented only for GncOptionMultiselectValue. | |
| uint16_t | GncOption::permissible_value_index (const char *value) const |
| Implemented only for GncOptionMultiselectValue. | |
| const char * | GncOption::permissible_value (uint16_t index) const |
| Implemented only for GncOptionMultiselectValue. | |
| const char * | GncOption::permissible_value_name (uint16_t index) const |
| Implemented only for GncOptionMultiselectValue. | |
| GList * | GncOption::account_type_list () const noexcept |
| Implemented only for GncOptionAccountListValue. | |
| bool | GncOption::is_alternate () const noexcept |
| void | GncOption::set_alternate (bool) noexcept |
| std::string | GncOption::serialize () const |
| Get a string suitable for storage representing the option's value. | |
| bool | GncOption::deserialize (const std::string &str) |
| Set the option's value from a character sequence. | |
| std::istream & | GncOption::in_stream (std::istream &iss) |
| Set the option's value from an input stream. | |
| void | GncOption::set_widget_changed (std::any cb) |
| std::any & | GncOption::get_widget_changed () |
| GncOptionSection::GncOptionSection (const char *name) | |
| void | GncOptionSection::foreach_option (std::function< void(GncOption &)> func) |
| void | GncOptionSection::foreach_option (std::function< void(const GncOption &)> func) const |
| const std::string & | GncOptionSection::get_name () const noexcept |
| size_t | GncOptionSection::get_num_options () const noexcept |
| void | GncOptionSection::add_option (GncOption &&option) |
| void | GncOptionSection::remove_option (const char *name) |
| const GncOption * | GncOptionSection::find_option (const char *name) const |
| GncOptionDBCallback::GncOptionDBCallback (size_t id, GncOptionDBChangeCallback func, void *data) | |
| GncOptionDBCallback::GncOptionDBCallback (const GncOptionDBCallback &)=delete | |
| GncOptionDBCallback::GncOptionDBCallback (GncOptionDBCallback &&)=default | |
| GncOptionDBCallback & | GncOptionDBCallback::operator= (const GncOptionDBCallback &)=default |
| GncOptionDBCallback & | GncOptionDBCallback::operator= (GncOptionDBCallback &&)=default |
| GncOptionDB::GncOptionDB (QofBook *book) | |
| void | GncOptionDB::foreach_section (std::function< void(GncOptionSectionPtr &)> func) |
| void | GncOptionDB::foreach_section (std::function< void(const GncOptionSectionPtr &)> func) const |
| size_t | GncOptionDB::num_sections () const noexcept |
| bool | GncOptionDB::get_changed () const noexcept |
| void | GncOptionDB::register_option (const char *section, GncOption &&option) |
| void | GncOptionDB::register_option (const char *section, GncOption *option) |
| void | GncOptionDB::unregister_option (const char *section, const char *name) |
| void | GncOptionDB::set_default_section (const char *section) |
| const GncOptionSection *const | GncOptionDB::get_default_section () const noexcept |
| std::string | GncOptionDB::lookup_string_option (const char *section, const char *name) |
| bool | GncOptionDB::set_string_option (const char *section, const char *name, const std::string &value) |
| template<typename ValueType > | |
| bool | GncOptionDB::set_option (const char *section, const char *name, ValueType value) |
| void | GncOptionDB::make_internal (const char *section, const char *name) |
| void | GncOptionDB::commit () |
| GncOptionSection * | GncOptionDB::find_section (const std::string §name) |
| const GncOptionSection * | GncOptionDB::find_section (const std::string §name) const |
| GncOption * | GncOptionDB::find_option (const std::string §ion, const char *name) |
| const GncOption * | GncOptionDB::find_option (const std::string §ion, const char *name) const |
| std::ostream & | GncOptionDB::save_to_key_value (std::ostream &oss) const noexcept |
| std::istream & | GncOptionDB::load_from_key_value (std::istream &iss) |
| void | GncOptionDB::save_to_kvp (QofBook *book, bool clear_book) const noexcept |
| void | GncOptionDB::load_from_kvp (QofBook *book) noexcept |
| std::ostream & | GncOptionDB::save_option_key_value (std::ostream &oss, const std::string §ion, const std::string &name) const noexcept |
| std::istream & | GncOptionDB::load_option_key_value (std::istream &iss) |
| size_t | GncOptionDB::register_callback (GncOptionDBChangeCallback, void *) |
| void | GncOptionDB::unregister_callback (size_t) |
| void | GncOptionDB::run_callbacks () |
| GType | gnc_transaction_get_type (void) |
| void | xaccTransRecordPrice (Transaction *trans, PriceSource source) |
| The xaccTransRecordPrice() method iterates through the splits and and record the non-currency equivalent prices in the price database. | |
Variables | |
| std::string | OptionClassifier::m_section |
| std::string | OptionClassifier::m_name |
| std::string | OptionClassifier::m_sort_tag |
| std::string | OptionClassifier::m_doc_string |
| static constexpr bool | is_GncOwnerValue< T >::value |
| static constexpr bool | is_QofInstanceValue< T >::value |
| static constexpr bool | is_QofQueryValue< T >::value |
| static constexpr bool | is_OptionClassifier< T >::value |
| static constexpr bool | is_same_decayed< T, U >::value |
| static constexpr bool | is_RangeValue< T >::value |
| size_t | GncOptionDBCallback::m_id |
| GncOptionDBChangeCallback | GncOptionDBCallback::m_func |
| void * | GncOptionDBCallback::m_data |
Friends | |
| GncOptionVariant & | GncOption::swig_get_option (GncOption *) |
QofLogModule identifiers | |
| typedef GList | AccountList |
| GList of Account. | |
| typedef GList | LotList |
| GList of GNCLots. | |
| typedef GList | SplitList |
| GList of Split. | |
| typedef GList | TransList |
| GList of Transaction. | |
| typedef GList | AccountGUIDList |
| GList of GUIDs of a Account. | |
| typedef GList | BookGUIDList |
| GList of GUIDs of a QofBook. | |
| typedef void(* | EngineCommitErrorCallback) (gpointer data, QofBackendError errcode) |
| typedef gint(* | SplitCallback) (Split *s, gpointer data) |
| typedef gint(* | TransactionCallback) (Transaction *t, void *data) |
| typedef void(* | gnc_engine_init_hook_t) (int, char **) |
| Function type for init hooks in the engine. | |
| void | gnc_engine_init (int argc, char **argv) |
| PROTOTYPES. | |
| void | gnc_engine_init_static (int argc, char **argv) |
| This is the statically linked-in version of gnc_engine_init. | |
| void | gnc_engine_shutdown (void) |
| Called to shutdown the engine. | |
| gboolean | gnc_engine_is_initialized (void) |
| check the engine is fully initialized | |
| void | gnc_log_default (void) |
| enable default log modules | |
| void | gnc_engine_add_init_hook (gnc_engine_init_hook_t hook) |
| Pass a function pointer to gnc_engine_add_init_hook and it will be called during the evaluation of gnc_engine_init. | |
| void | gnc_engine_add_commit_error_callback (EngineCommitErrorCallback cb, gpointer data) |
| Set a callback function to be called in case an engine commit fails. | |
| void | gnc_engine_signal_commit_error (QofBackendError errcode) |
| #define | GNC_MOD_ROOT "gnc" |
| #define | GNC_MOD_ENGINE "gnc.engine" |
| #define | GNC_MOD_ACCOUNT "gnc.account" |
| #define | GNC_MOD_SX "gnc.engine.sx" |
| #define | GNC_MOD_QUERY "gnc.query" |
| #define | GNC_MOD_SCRUB "gnc.scrub" |
| #define | GNC_MOD_LOT "gnc.lots" |
| #define | GNC_MOD_COMMODITY "gnc.commodity" |
| #define | GNC_MOD_BACKEND "gnc.backend" |
| #define | GNC_MOD_PRICE "gnc.pricedb" |
| #define | GNC_MOD_BUSINESS "gnc.business" |
| #define | GNC_MOD_IO "gnc.io" |
| #define | GNC_MOD_BOOK "gnc.book-period" |
| #define | GNC_MOD_GUI "gnc.gui" |
| #define | GNC_MOD_GUI_SX "gnc.gui.sx" |
| #define | GNC_MOD_GUILE "gnc.guile" |
| #define | GNC_MOD_LEDGER "gnc.ledger" |
| #define | GNC_MOD_REGISTER "gnc.register" |
| #define | GNC_MOD_HTML "gnc.html" |
| #define | GNC_MOD_PREFS "gnc.pref" |
| #define | GNC_MOD_IMPORT "gnc.import" |
| #define | GNC_MOD_ASSISTANT "gnc.assistant" |
| #define | GNC_MOD_BUDGET "gnc.budget" |
| #define | GNC_ID_NONE QOF_ID_NONE |
| IDENTIFIERS GncGUID Identifiers can be used to reference Accounts, Transactions, Splits and other objects. | |
| #define | GNC_ID_BOOK QOF_ID_BOOK |
| #define | GNC_ID_SESSION QOF_ID_SESSION |
| #define | GNC_ID_NULL QOF_ID_NULL |
| #define | GNC_ID_ACCOUNT "Account" |
| #define | GNC_ID_COMMODITY "Commodity" |
| #define | GNC_ID_COMMODITY_NAMESPACE "CommodityNamespace" |
| #define | GNC_ID_COMMODITY_TABLE "CommodityTable" |
| #define | GNC_ID_LOT "Lot" |
| #define | GNC_ID_PERIOD "Period" |
| #define | GNC_ID_PRICE "Price" |
| #define | GNC_ID_PRICEDB "PriceDB" |
| #define | GNC_ID_SPLIT "Split" |
| #define | GNC_ID_BUDGET "Budget" |
| #define | GNC_ID_SCHEDXACTION "SchedXaction" |
| #define | GNC_ID_SXES "SchedXactions" |
| #define | GNC_ID_SXTG "SXTGroup" |
| #define | GNC_ID_SXTT "SXTTrans" |
| #define | GNC_ID_TRANS "Trans" |
| #define | GNC_INVOICE_ID "gncInvoice" |
| STRING CONSTANTS ********************************************** Used to declare constant KVP keys used in more than one class. | |
| #define | GNC_INVOICE_GUID "invoice-guid" |
| #define | GNC_OWNER_ID "gncOwner" |
| #define | GNC_OWNER_TYPE "owner-type" |
| #define | GNC_OWNER_GUID "owner-guid" |
| #define | GNC_SX_ID "sched-xaction" |
Lookup Accounts and Subaccounts by name or code | |
| Account * | gnc_account_lookup_by_name (const Account *parent, const char *name) |
| The gnc_account_lookup_by_name() subroutine fetches the account by name from the descendants of the specified account. | |
| Account * | gnc_account_lookup_by_full_name (const Account *any_account, const gchar *name) |
| The gnc_account_lookup_full_name() subroutine works like gnc_account_lookup_by_name, but uses fully-qualified names using the given separator. | |
| Account * | gnc_account_lookup_by_code (const Account *parent, const char *code) |
| The gnc_account_lookup_by_code() subroutine works like gnc_account_lookup_by_name, but uses the account code. | |
| Account * | gnc_account_lookup_by_opening_balance (Account *account, gnc_commodity *commodity) |
| Find the opening balance account for the currency. | |
| GList * | gnc_account_lookup_by_type_and_commodity (Account *root, const char *name, GNCAccountType acctype, gnc_commodity *commodity) |
| Find a direct child account matching name, GNCAccountType, and/or commodity. | |
GNCAccountType conversion/checking | |
| const char * | xaccAccountTypeEnumAsString (GNCAccountType type) |
| Conversion routines for the account types to/from strings that are used in persistent storage, communications. | |
| gboolean | xaccAccountStringToType (const char *str, GNCAccountType *type) |
| Conversion routines for the account types to/from strings that are used in persistent storage, communications. | |
| GNCAccountType | xaccAccountStringToEnum (const char *str) |
| Conversion routines for the account types to/from strings that are used in persistent storage, communications. | |
| const char * | xaccAccountGetTypeStr (GNCAccountType type) |
| The xaccAccountGetTypeStr() routine returns a string suitable for use in the GUI/Interface. | |
| guint32 | xaccAccountTypesCompatibleWith (GNCAccountType type) |
| Return the bitmask of account types compatible with a given type. | |
| guint32 | xaccParentAccountTypesCompatibleWith (GNCAccountType type) |
| Return the bitmask of parent account types compatible with a given type. | |
| gboolean | xaccAccountTypesCompatible (GNCAccountType parent_type, GNCAccountType child_type) |
| Return TRUE if accounts of type parent_type can have accounts of type child_type as children. | |
| guint32 | xaccAccountTypesValid (void) |
| Returns the bitmask of the account type enums that are valid. | |
| gboolean | xaccAccountIsAssetLiabType (GNCAccountType t) |
| Convenience function to check if the account is a valid Asset or Liability type, but not a business account type (meaning not an Accounts Payable/Accounts Receivable). | |
| GNCAccountType | xaccAccountTypeGetFundamental (GNCAccountType t) |
| Convenience function to return the fundamental type asset/liability/income/expense/equity given an account type. | |
| gboolean | xaccAccountIsAPARType (GNCAccountType t) |
| Convenience function to check if the account is a valid business account type (meaning an Accounts Payable/Accounts Receivable). | |
| gboolean | xaccAccountIsEquityType (GNCAccountType t) |
| Convenience function to check if the account is a valid Equity type. | |
Account split/transaction list management | |
| SplitList * | xaccAccountGetSplitList (const Account *account) |
| The xaccAccountGetSplitList() routine returns a pointer to a GList of the splits in the account. | |
| size_t | xaccAccountGetSplitsSize (const Account *account) |
| void | xaccAccountMoveAllSplits (Account *accfrom, Account *accto) |
| The xaccAccountMoveAllSplits() routine reassigns each of the splits in accfrom to accto. | |
| gint | xaccAccountForEachTransaction (const Account *account, TransactionCallback proc, void *data) |
| The xaccAccountForEachTransaction() routine will traverse all of the transactions in account and call the callback function proc on each transaction. | |
| Transaction * | xaccAccountFindTransByDesc (const Account *account, const char *description) |
| Returns a pointer to the transaction, not a copy. | |
| Split * | xaccAccountFindSplitByDesc (const Account *account, const char *description) |
| Returns a pointer to the split, not a copy. | |
| #define | xaccAccountInsertSplit(acc, s) xaccSplitSetAccount((s), (acc)) |
| The xaccAccountInsertSplit() method will insert the indicated split into the indicated account. | |
Account lots | |
| void | xaccAccountInsertLot (Account *, GNCLot *) |
| The xaccAccountInsertLot() method will register the indicated lot with this account. | |
| void | xaccAccountRemoveLot (Account *, GNCLot *) |
| LotList * | xaccAccountGetLotList (const Account *account) |
| The xaccAccountGetLotList() routine returns a list of all lots in this account. | |
| gpointer | xaccAccountForEachLot (const Account *acc, gpointer(*proc)(GNCLot *lot, gpointer user_data), gpointer user_data) |
| The xaccAccountForEachLot() method will apply the function 'proc' to each lot in the account. | |
| LotList * | xaccAccountFindOpenLots (const Account *acc, gboolean(*match_func)(GNCLot *lot, gpointer user_data), gpointer user_data, GCompareFunc sort_func) |
| Find a list of open lots that match the match_func. | |
Account Reconciliation information getters/setters | |
| gboolean | xaccAccountGetReconcileLastDate (const Account *account, time64 *last_date) |
| DOCUMENT ME! | |
| void | xaccAccountSetReconcileLastDate (Account *account, time64 last_date) |
| DOCUMENT ME! | |
| gboolean | xaccAccountGetReconcileLastInterval (const Account *account, int *months, int *days) |
| DOCUMENT ME! | |
| void | xaccAccountSetReconcileLastInterval (Account *account, int months, int days) |
| DOCUMENT ME! | |
| gboolean | xaccAccountGetReconcilePostponeDate (const Account *account, time64 *postpone_date) |
| DOCUMENT ME! | |
| void | xaccAccountSetReconcilePostponeDate (Account *account, time64 postpone_date) |
| DOCUMENT ME! | |
| gboolean | xaccAccountGetReconcilePostponeBalance (const Account *account, gnc_numeric *balance) |
| DOCUMENT ME! | |
| void | xaccAccountSetReconcilePostponeBalance (Account *account, gnc_numeric balance) |
| DOCUMENT ME! | |
| void | xaccAccountClearReconcilePostpone (Account *account) |
| DOCUMENT ME! | |
Account Balance Limits | |
| gboolean | xaccAccountGetHigherBalanceLimit (const Account *account, gnc_numeric *balance) |
| Get the higher balance limit for the account. | |
| void | xaccAccountSetHigherBalanceLimit (Account *account, gnc_numeric balance) |
| Set the higher balance limit for the account. | |
| void | xaccAccountClearHigherBalanceLimit (Account *account) |
| Clear the higher balance limit for the account. | |
| gboolean | xaccAccountGetLowerBalanceLimit (const Account *account, gnc_numeric *balance) |
| Get the lower balance limit for the account. | |
| void | xaccAccountSetLowerBalanceLimit (Account *account, gnc_numeric balance) |
| Set the lower balance limit for the account. | |
| void | xaccAccountClearLowerBalanceLimit (Account *account) |
| Clear the lower balance limit for the account. | |
| gboolean | xaccAccountGetIncludeSubAccountBalances (const Account *account) |
| Get whether to include balances of sub accounts. | |
| void | xaccAccountSetIncludeSubAccountBalances (Account *account, gboolean include) |
| Set whether to include balances of sub accounts. | |
Account Placeholder flag | |
| gboolean | xaccAccountGetPlaceholder (const Account *account) |
| Get the "placeholder" flag for an account. | |
| void | xaccAccountSetPlaceholder (Account *account, gboolean val) |
| Set the "placeholder" flag for an account. | |
Account Append Text flag | |
| gboolean | xaccAccountGetAppendText (const Account *account) |
| Get the "import-append-text" flag for an account. | |
| void | xaccAccountSetAppendText (Account *account, gboolean val) |
| Set the "import-append-text" flag for an account. | |
| gboolean | xaccAccountGetIsOpeningBalance (const Account *account) |
| Get the "opening-balance" flag for an account. | |
| void | xaccAccountSetIsOpeningBalance (Account *account, gboolean val) |
| Set the "opening-balance" flag for an account. | |
| GNCPlaceholderType | xaccAccountGetDescendantPlaceholder (const Account *account) |
| Returns PLACEHOLDER_NONE if account is NULL or neither account nor any descendant of account is a placeholder. | |
Account Hidden flag | |
| gboolean | xaccAccountGetHidden (const Account *acc) |
| Get the "hidden" flag for an account. | |
| void | xaccAccountSetHidden (Account *acc, gboolean val) |
| Set the "hidden" flag for an account. | |
| gboolean | xaccAccountIsHidden (const Account *acc) |
| Should this account be "hidden". | |
Account Auto Interest flag | |
| gboolean | xaccAccountGetAutoInterest (const Account *acc) |
| Get the "auto interest" flag for an account. | |
| void | xaccAccountSetAutoInterest (Account *acc, gboolean val) |
| Set the "auto interest" flag for an account. | |
Account Tax related getters/setters | |
| gboolean | xaccAccountGetTaxRelated (const Account *account) |
| DOCUMENT ME! | |
| void | xaccAccountSetTaxRelated (Account *account, gboolean tax_related) |
| DOCUMENT ME! | |
| const char * | xaccAccountGetTaxUSCode (const Account *account) |
| DOCUMENT ME! | |
| void | xaccAccountSetTaxUSCode (Account *account, const char *code) |
| DOCUMENT ME! | |
| const char * | xaccAccountGetTaxUSPayerNameSource (const Account *account) |
| DOCUMENT ME! | |
| void | xaccAccountSetTaxUSPayerNameSource (Account *account, const char *source) |
| DOCUMENT ME! | |
| gint64 | xaccAccountGetTaxUSCopyNumber (const Account *account) |
| Returns copy_number stored in KVP; if KVP doesn't exist or copy_number is zero, returns 1. | |
| void | xaccAccountSetTaxUSCopyNumber (Account *account, gint64 copy_number) |
| Saves copy_number in KVP if it is greater than 1; if copy_number is zero, deletes KVP. | |
Account type debit/credit string getters | |
@ { * | |
| const char * | gnc_account_get_debit_string (GNCAccountType acct_type) |
| Get the debit string associated with this account type. | |
| const char * | gnc_account_get_credit_string (GNCAccountType acct_type) |
| Get the credit string associated with this account type. | |
Account marking | |
| void | xaccAccountSetMark (Account *account, short mark) |
| Set a mark on the account. | |
| void | xaccClearMark (Account *account, short val) |
| Get the mark set by xaccAccountSetMark short xaccAccountGetMark (const Account *account);. | |
| void | xaccClearMarkDown (Account *account, short val) |
| The xaccClearMarkDown will clear the mark only in this and in sub-accounts. | |
Staged Traversal | |
The following functions provide support for "staged traversals" over all of the transactions in an account or group. The idea is to be able to perform a sequence of traversals ("stages"), and perform an operation on each transaction exactly once for that stage. Only transactions whose current "stage" is less than the stage of the current traversal will be affected, and they will be "brought up" to the current stage when they are processed. For example, you could perform a stage 1 traversal of all the transactions in an account, and then perform a stage 1 traversal of the transactions in a second account. Presuming the traversal of the first account didn't abort prematurely, any transactions shared by both accounts would be ignored during the traversal of the second account since they had been processed while traversing the first account. However, if you had traversed the second account using a stage of 2, then all the transactions in the second account would have been processed. Traversal can be aborted by having the callback function return a non-zero value. The traversal is aborted immediately, and the non-zero value is returned. Note that an aborted traversal can be restarted; no information is lost due to an abort. The initial impetus for this particular approach came from generalizing a mark/sweep practice that was already being used in FileIO.c. Note that currently, there is a hard limit of 256 stages, which can be changed by enlarging "marker" in the transaction struct. | |
| void | gnc_account_tree_begin_staged_transaction_traversals (Account *acc) |
| gnc_account_tree_begin_staged_transaction_traversals() resets the traversal marker inside every transactions of every account in the account tree originating with the specified node. | |
| void | xaccAccountBeginStagedTransactionTraversals (const Account *account) |
| xaccAccountBeginStagedTransactionTraversals() resets the traversal marker for each transaction which is a parent of one of the splits in the account. | |
| gboolean | xaccTransactionTraverse (Transaction *trans, int stage) |
| xaccTransactionTraverse() checks the stage of the given transaction. | |
| int | xaccAccountStagedTransactionTraversal (const Account *a, unsigned int stage, TransactionCallback thunk, void *data) |
| xaccAccountStagedTransactionTraversal() calls thunk on each transaction in account a whose current marker is less than the given stage and updates each transaction's marker to be stage. | |
| int | gnc_account_tree_staged_transaction_traversal (const Account *account, unsigned int stage, TransactionCallback thunk, void *data) |
| gnc_account_tree_staged_transaction_traversal() calls thunk on each transaction in the group whose current marker is less than the given stage and updates each transaction's marker to be stage. | |
| int | xaccAccountTreeForEachTransaction (Account *acc, TransactionCallback proc, void *data) |
| Traverse all of the transactions in the given account group. | |
| time64 | gnc_account_get_earliest_date (const Account *account) |
| Returns the date of the earliest split in the account, or INT64_MAX. | |
| Account * | gnc_account_imap_find_account (Account *acc, const char *category, const char *key) |
| Account * | gnc_account_imap_find_any (QofBook *book, const char *category, const char *key) |
| void | gnc_account_imap_add_account (Account *acc, const char *category, const char *key, Account *added_acc) |
| void | gnc_account_imap_delete_account (Account *acc, const char *category, const char *key) |
| Account * | gnc_account_imap_find_account_bayes (Account *acc, GList *tokens) |
| Look up an Account in the map using Baysian. | |
| void | gnc_account_imap_add_account_bayes (Account *acc, GList *tokens, Account *added_acc) |
| Updates the imap for a given account using a list of tokens. | |
| void | gnc_account_imap_info_destroy (GncImapInfo *) |
| Clean destructor for the imap_info structure of Bayesian mappings. | |
| GList * | gnc_account_imap_get_info_bayes (Account *acc) |
| Returns a GList of structure imap_info of all Bayesian mappings for required Account. | |
| GList * | gnc_account_imap_get_info (Account *acc, const char *category) |
| Returns a GList of structure imap_info of all Non Bayesian mappings for required Account. | |
| gchar * | gnc_account_get_map_entry (Account *acc, const char *head, const char *category) |
| Returns the text string pointed to by head and category for the Account, free the returned text. | |
| GncGUID * | gnc_account_get_map_guid_entry (Account *acc, const char *head, const char *category) |
| Returns the guid pointed to by head and category for the Account, free the returned guid. | |
| void | gnc_account_delete_map_entry (Account *acc, char *head, char *category, char *match_string, gboolean empty) |
| Delete the entry for Account pointed to by head,category and match_string, if empty is TRUE then use delete if empty. | |
| void | gnc_account_delete_all_bayes_maps (Account *acc) |
| Delete all bayes entries for Account. | |
| void | gnc_account_reset_convert_bayes_to_flat (void) |
| Reset the flag that indicates the function imap_convert_bayes_to_flat has been run. | |
Deprecated Routines. | |
| void | DxaccAccountSetCurrency (Account *account, gnc_commodity *currency) |
| gnc_commodity * | DxaccAccountGetCurrency (const Account *account) |
| void | dxaccAccountSetQuoteTZ (Account *account, const char *tz) |
| Set the timezone to be used when interpreting the results from a given Finance::Quote backend. | |
| const char * | dxaccAccountGetQuoteTZ (const Account *account) |
| Get the timezone to be used when interpreting the results from a given Finance::Quote backend. | |
Transaction creation and editing | |
| Transaction * | xaccMallocTransaction (QofBook *book) |
| The xaccMallocTransaction() will malloc memory and initialize it. | |
| void | xaccTransDestroy (Transaction *trans) |
| Destroys a transaction. | |
| Transaction * | xaccTransClone (const Transaction *t) |
| The xaccTransClone() method will create a complete copy of an existing transaction. | |
| Transaction * | xaccTransCloneNoKvp (const Transaction *t) |
| The xaccTransCloneNoKvp() method will create a complete copy of an existing transaction except that the KVP slots will be empty. | |
| gboolean | xaccTransEqual (const Transaction *ta, const Transaction *tb, gboolean check_guids, gboolean check_splits, gboolean check_balances, gboolean assume_ordered) |
| Equality. | |
| void | xaccTransBeginEdit (Transaction *trans) |
| The xaccTransBeginEdit() method must be called before any changes are made to a transaction or any of its component splits. | |
| void | xaccTransCommitEdit (Transaction *trans) |
| The xaccTransCommitEdit() method indicates that the changes to the transaction and its splits are complete and should be made permanent. | |
| void | xaccTransRollbackEdit (Transaction *trans) |
| The xaccTransRollbackEdit() routine rejects all edits made, and sets the transaction back to where it was before the editing started. | |
| gboolean | xaccTransIsOpen (const Transaction *trans) |
| The xaccTransIsOpen() method returns TRUE if the transaction is open for editing. | |
| Transaction * | xaccTransLookup (const GncGUID *guid, QofBook *book) |
| The xaccTransLookup() subroutine will return the transaction associated with the given id, or NULL if there is no such transaction. | |
| Transaction * | xaccTransCopyToClipBoard (const Transaction *from_trans) |
| Copy a transaction to the 'clipboard' transaction using dupe_transaction. | |
| void | xaccTransCopyOnto (const Transaction *from_trans, Transaction *to_trans) |
| Copy a transaction to another using the function below without changing any account information. | |
| void | xaccTransCopyFromClipBoard (const Transaction *from_trans, Transaction *to_trans, const Account *from_acc, Account *to_acc, gboolean no_date) |
| This function explicitly must robustly handle some unusual input. | |
| Split * | xaccTransFindSplitByAccount (const Transaction *trans, const Account *acc) |
| void | xaccTransScrubGains (Transaction *trans, Account *gain_acc) |
| The xaccTransScrubGains() routine performs a number of cleanup functions on the indicated transaction, with the end-goal of setting up a consistent set of gains/losses for all the splits in the transaction. | |
| guint | gnc_book_count_transactions (QofBook *book) |
| #define | xaccTransLookupDirect(g, b) xaccTransLookup(&(g),b) |
Transaction general getters/setters | |
| gboolean | xaccTransUseTradingAccounts (const Transaction *trans) |
| Determine whether this transaction should use commodity trading accounts. | |
| void | xaccTransSortSplits (Transaction *trans) |
| Sorts the splits in a transaction, putting the debits first, followed by the credits. | |
| void | xaccTransSetTxnType (Transaction *trans, char type) |
| Set the Transaction Type: note the type will be saved into the Transaction kvp property as a backward compatibility measure, for previous GnuCash versions whose xaccTransGetTxnType reads from the kvp slots. | |
| char | xaccTransGetTxnType (Transaction *trans) |
| Returns the Transaction Type: note this type will be derived from the transaction splits, returning TXN_TYPE_NONE, TXN_TYPE_INVOICE, TXN_TYPE_LINK, or TXN_TYPE_PAYMENT according to heuristics. | |
| void | xaccTransSetNum (Transaction *trans, const char *num) |
| Sets the transaction Number (or ID) field; rather than use this function directly, see 'gnc_set_num_action' in engine/engine-helpers.c & .h which takes a user-set book option for selecting the source for the num-cell (the transaction-number or the split-action field) in registers/reports into account automatically | |
| void | xaccTransSetDescription (Transaction *trans, const char *desc) |
| Sets the transaction Description. | |
| void | xaccTransSetDocLink (Transaction *trans, const char *doclink) |
| Sets the transaction Document Link. | |
| void | xaccTransSetNotes (Transaction *trans, const char *notes) |
| Sets the transaction Notes. | |
| const char * | xaccTransGetNum (const Transaction *trans) |
| Gets the transaction Number (or ID) field; rather than use this function directly, see 'gnc_get_num_action' and 'gnc_get_action_num' in engine/engine-helpers.c & .h which takes a user-set book option for selecting the source for the num-cell (the transaction-number or the split-action field) in registers/reports into account automatically | |
| const char * | xaccTransGetDescription (const Transaction *trans) |
| Gets the transaction Description. | |
| const char * | xaccTransGetDocLink (const Transaction *trans) |
| Gets the transaction Document Link. | |
| const char * | xaccTransGetNotes (const Transaction *trans) |
| Gets the transaction Notes. | |
| void | xaccTransSetIsClosingTxn (Transaction *trans, gboolean is_closing) |
| Sets whether or not this transaction is a "closing transaction". | |
| gboolean | xaccTransGetIsClosingTxn (const Transaction *trans) |
| Returns whether this transaction is a "closing transaction". | |
| void | xaccTransClearSplits (Transaction *trans) |
| Remove all splits from the transaction. | |
| Split * | xaccTransGetSplit (const Transaction *trans, int i) |
| Return a pointer to the indexed split in this transaction's split list. | |
| int | xaccTransGetSplitIndex (const Transaction *trans, const Split *split) |
| Inverse of xaccTransGetSplit() | |
| SplitList * | xaccTransGetSplitList (const Transaction *trans) |
| The xaccTransGetSplitList() method returns a GList of the splits in a transaction. | |
| SplitList * | xaccTransGetPaymentAcctSplitList (const Transaction *trans) |
| The xaccTransGetPaymentAcctSplitList() method returns a GList of the splits in a transaction that belong to an account which is considered a valid account for business payments. | |
| SplitList * | xaccTransGetAPARAcctSplitList (const Transaction *trans, gboolean strict) |
| The xaccTransGetAPARSplitList() method returns a GList of the splits in a transaction that belong to an AR or AP account. | |
| gboolean | xaccTransStillHasSplit (const Transaction *trans, const Split *s) |
| Split * | xaccTransGetFirstPaymentAcctSplit (const Transaction *trans) |
| The xaccTransGetFirstPaymentAcctSplit() method returns a pointer to the first split in this transaction that belongs to an account which is considered a valid account for business payments. | |
| Split * | xaccTransGetFirstAPARAcctSplit (const Transaction *trans, gboolean strict) |
| The xaccTransGetFirstPaymentAcctSplit() method returns a pointer to the first split in this transaction that belongs to an AR or AP account. | |
| void | xaccTransSetReadOnly (Transaction *trans, const char *reason) |
| Set the transaction to be ReadOnly by setting a non-NULL value as "reason". | |
| void | xaccTransClearReadOnly (Transaction *trans) |
| const char * | xaccTransGetReadOnly (Transaction *trans) |
| Returns a non-NULL value if this Transaction was marked as read-only with some specific "reason" text. | |
| gboolean | xaccTransIsReadonlyByPostedDate (const Transaction *trans) |
| Returns TRUE if this Transaction is read-only because its posted-date is older than the "auto-readonly" threshold of this book. | |
| int | xaccTransCountSplits (const Transaction *trans) |
| Returns the number of splits in this transaction. | |
| gboolean | xaccTransHasReconciledSplits (const Transaction *trans) |
| FIXME: document me. | |
| gboolean | xaccTransHasReconciledSplitsByAccount (const Transaction *trans, const Account *account) |
| FIXME: document me. | |
| gboolean | xaccTransHasSplitsInState (const Transaction *trans, const char state) |
| FIXME: document me. | |
| gboolean | xaccTransHasSplitsInStateByAccount (const Transaction *trans, const char state, const Account *account) |
| FIXME: document me. | |
| gnc_commodity * | xaccTransGetCurrency (const Transaction *trans) |
| Returns the valuation commodity of this transaction. | |
| void | xaccTransSetCurrency (Transaction *trans, gnc_commodity *curr) |
| Set the commodity of this transaction. | |
| gnc_numeric | xaccTransGetImbalanceValue (const Transaction *trans) |
| The xaccTransGetImbalanceValue() method returns the total value of the transaction. | |
| MonetaryList * | xaccTransGetImbalance (const Transaction *trans) |
| The xaccTransGetImbalance method returns a list giving the value of the transaction in each currency for which the balance is not zero. | |
| gboolean | xaccTransIsBalanced (const Transaction *trans) |
| Returns true if the transaction is balanced according to the rules currently in effect. | |
| gnc_numeric | xaccTransGetAccountValue (const Transaction *trans, const Account *account) |
| The xaccTransGetAccountValue() method returns the total value applied to a particular account. | |
| gnc_numeric | xaccTransGetAccountAmount (const Transaction *trans, const Account *account) |
| Same as xaccTransGetAccountValue, but uses the Account's commodity. | |
| gnc_numeric | xaccTransGetAccountConvRate (const Transaction *txn, const Account *acc) |
| gnc_numeric | xaccTransGetAccountBalance (const Transaction *trans, const Account *account) |
| Get the account balance for the specified account after the last split in the specified transaction. | |
| int | xaccTransOrder (const Transaction *ta, const Transaction *tb) |
| The xaccTransOrder(ta,tb) method is useful for sorting. | |
| int | xaccTransOrder_num_action (const Transaction *ta, const char *actna, const Transaction *tb, const char *actnb) |
| The xaccTransOrder_num_action(ta,actna,tb,actnb) method is useful for sorting. | |
| #define | xaccTransAppendSplit(t, s) xaccSplitSetParent((s), (t)) |
| Add a split to the transaction. | |
Transaction date setters/getters | |
| void | xaccTransSetDate (Transaction *trans, int day, int mon, int year) |
| The xaccTransSetDate() method does the same thing as xaccTransSetDate[Posted]Secs(), but takes a convenient day-month-year format. | |
| void | xaccTransSetDatePostedGDate (Transaction *trans, GDate date) |
| This method modifies posted date of the transaction, specified by a GDate. | |
| void | xaccTransSetDatePostedSecs (Transaction *trans, time64 time) |
| The xaccTransSetDatePostedSecs() method will modify the posted date of the transaction, specified by a time64 (see ctime(3)). | |
| void | xaccTransSetDatePostedSecsNormalized (Transaction *trans, time64 time) |
| This function sets the posted date of the transaction, specified by a time64 (see ctime(3)). | |
| void | xaccTransSetDateEnteredSecs (Transaction *trans, time64 time) |
| Modify the date of when the transaction was entered. | |
| void | xaccTransSetDateDue (Transaction *trans, time64 time) |
| Dates and txn-type for A/R and A/P "invoice" postings. | |
| time64 | xaccTransGetDate (const Transaction *trans) |
| Retrieve the posted date of the transaction. | |
| time64 | xaccTransRetDatePosted (const Transaction *trans) |
| Retrieve the posted date of the transaction. | |
| GDate | xaccTransGetDatePostedGDate (const Transaction *trans) |
| Retrieve the posted date of the transaction. | |
| time64 | xaccTransGetDateEntered (const Transaction *trans) |
| Retrieve the date of when the transaction was entered. | |
| time64 | xaccTransRetDateEntered (const Transaction *trans) |
| Retrieve the date of when the transaction was entered. | |
| time64 | xaccTransRetDateDue (const Transaction *trans) |
| Dates and txn-type for A/R and A/P "invoice" postings. | |
Transaction voiding | |
| void | xaccTransVoid (Transaction *transaction, const char *reason) |
| xaccTransVoid voids a transaction. | |
| void | xaccTransUnvoid (Transaction *transaction) |
| xaccTransUnvoid restores a voided transaction to its original state. | |
| Transaction * | xaccTransReverse (Transaction *transaction) |
| xaccTransReverse creates a Transaction that reverses the given transaction by inverting all the numerical values in the given transaction. | |
| Transaction * | xaccTransGetReversedBy (const Transaction *trans) |
| Returns the transaction that reversed the given transaction. | |
| gboolean | xaccTransGetVoidStatus (const Transaction *transaction) |
| Retrieve information on whether or not a transaction has been voided. | |
| const char * | xaccTransGetVoidReason (const Transaction *transaction) |
| Returns the user supplied textual reason why a transaction was voided. | |
| time64 | xaccTransGetVoidTime (const Transaction *tr) |
| Returns the time that a transaction was voided. | |
Account parameter names | |
| #define | ACCOUNT_KVP "kvp" |
| #define | ACCOUNT_NAME_ "name" |
| #define | ACCOUNT_CODE_ "code" |
| #define | ACCOUNT_DESCRIPTION_ "desc" |
| #define | ACCOUNT_COLOR_ "color" |
| #define | ACCOUNT_FILTER_ "filter" |
| #define | ACCOUNT_SORT_ORDER_ "sort-order" |
| #define | ACCOUNT_SORT_REVERSED_ "sort-reversed" |
| #define | ACCOUNT_NOTES_ "notes" |
| #define | ACCOUNT_BALANCE_ "balance" |
| #define | ACCOUNT_NOCLOSING_ "noclosing" |
| #define | ACCOUNT_OPENING_BALANCE_ "opening-balance" |
| #define | ACCOUNT_CLEARED_ "cleared" |
| #define | ACCOUNT_RECONCILED_ "reconciled" |
| #define | ACCOUNT_PRESENT_ "present" |
| #define | ACCOUNT_FUTURE_MINIMUM_ "future-minimum" |
| #define | ACCOUNT_TAX_RELATED "tax-related-p" |
| #define | ACCOUNT_TYPE_ "account-type" |
| #define | ACCOUNT_SCU "smallest-commodity-unit" |
| #define | ACCOUNT_NSCU "non-standard-scu" |
| #define | ACCOUNT_PARENT "parent-account" |
Transaction Type field values | |
| #define | TXN_TYPE_UNCACHED '?' /** Transaction type not yet cached */ |
| #define | TXN_TYPE_NONE '\0' |
| No transaction type | |
| #define | TXN_TYPE_INVOICE 'I' |
| Transaction is an invoice. | |
| #define | TXN_TYPE_PAYMENT 'P' |
| Transaction is a payment | |
| #define | TXN_TYPE_LINK 'L' |
| Transaction is a link between (invoice and payment) lots | |
Transaction Parameter names | |
| #define | TRANS_KVP "kvp" |
| #define | TRANS_NUM "num" |
| #define | TRANS_DESCRIPTION "desc" |
| #define | TRANS_DATE_ENTERED "date-entered" |
| #define | TRANS_DATE_POSTED "date-posted" |
| #define | TRANS_DATE_DUE "date-due" |
| #define | TRANS_IMBALANCE "trans-imbalance" |
| #define | TRANS_IS_BALANCED "trans-balanced?" |
| #define | TRANS_IS_CLOSING "trans-is-closing?" |
| #define | TRANS_NOTES "notes" |
| #define | TRANS_DOCLINK "doclink" |
| #define | TRANS_TYPE "type" |
| #define | TRANS_VOID_STATUS "void-p" |
| #define | TRANS_VOID_REASON "void-reason" |
| #define | TRANS_VOID_TIME "void-time" |
| #define | TRANS_SPLITLIST "split-list" /* for guid_match_all */ |
The GnuCash Engine provides a set of objects and classes that encapsulate typical financial accounting concepts.
The GnuCash GUI is expected to manipulate these objects through the provided engine API.
| #define ACCOUNT_MATCH_ALL_TYPE "account-match-all" |
| #define GNC_ID_ACCOUNT "Account" |
Definition at line 96 of file gnc-engine.h.
| #define GNC_ID_BOOK QOF_ID_BOOK |
Definition at line 92 of file gnc-engine.h.
| #define GNC_ID_BUDGET "Budget" |
Definition at line 105 of file gnc-engine.h.
| #define GNC_ID_COMMODITY "Commodity" |
Definition at line 97 of file gnc-engine.h.
| #define GNC_ID_COMMODITY_NAMESPACE "CommodityNamespace" |
Definition at line 98 of file gnc-engine.h.
| #define GNC_ID_COMMODITY_TABLE "CommodityTable" |
Definition at line 99 of file gnc-engine.h.
| #define GNC_ID_LOT "Lot" |
Definition at line 100 of file gnc-engine.h.
| #define GNC_ID_NONE QOF_ID_NONE |
IDENTIFIERS GncGUID Identifiers can be used to reference Accounts, Transactions, Splits and other objects.
These Gnucash types are referred to as Gnucash entities. GncGUID Identifiers are globally-unique and permanent, i.e., once an entity has been assigned an identifier, it retains that same identifier for its lifetime.
Definition at line 91 of file gnc-engine.h.
| #define GNC_ID_NULL QOF_ID_NULL |
Definition at line 94 of file gnc-engine.h.
| #define GNC_ID_PERIOD "Period" |
Definition at line 101 of file gnc-engine.h.
| #define GNC_ID_PRICE "Price" |
Definition at line 102 of file gnc-engine.h.
| #define GNC_ID_PRICEDB "PriceDB" |
Definition at line 103 of file gnc-engine.h.
| #define GNC_ID_SCHEDXACTION "SchedXaction" |
Definition at line 106 of file gnc-engine.h.
| #define GNC_ID_SESSION QOF_ID_SESSION |
Definition at line 93 of file gnc-engine.h.
| #define GNC_ID_SPLIT "Split" |
Definition at line 104 of file gnc-engine.h.
| #define GNC_ID_SXES "SchedXactions" |
Definition at line 107 of file gnc-engine.h.
| #define GNC_ID_SXTG "SXTGroup" |
Definition at line 108 of file gnc-engine.h.
| #define GNC_ID_SXTT "SXTTrans" |
Definition at line 109 of file gnc-engine.h.
| #define GNC_ID_TRANS "Trans" |
Definition at line 110 of file gnc-engine.h.
| #define GNC_INVOICE_GUID "invoice-guid" |
Definition at line 258 of file gnc-engine.h.
| #define GNC_INVOICE_ID "gncInvoice" |
STRING CONSTANTS ********************************************** Used to declare constant KVP keys used in more than one class.
Definition at line 257 of file gnc-engine.h.
| #define GNC_IS_TRANS | ( | obj | ) | GNC_IS_TRANSACTION(obj) |
Definition at line 118 of file Transaction.h.
| #define GNC_IS_TRANSACTION | ( | o | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_TRANSACTION)) |
Definition at line 108 of file Transaction.h.
| #define GNC_IS_TRANSACTION_CLASS | ( | k | ) | (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_TRANSACTION)) |
Definition at line 110 of file Transaction.h.
| #define GNC_MOD_ACCOUNT "gnc.account" |
Definition at line 51 of file gnc-engine.h.
| #define GNC_MOD_ASSISTANT "gnc.assistant" |
Definition at line 70 of file gnc-engine.h.
| #define GNC_MOD_BACKEND "gnc.backend" |
Definition at line 57 of file gnc-engine.h.
| #define GNC_MOD_BOOK "gnc.book-period" |
Definition at line 61 of file gnc-engine.h.
| #define GNC_MOD_BUDGET "gnc.budget" |
Definition at line 71 of file gnc-engine.h.
| #define GNC_MOD_BUSINESS "gnc.business" |
Definition at line 59 of file gnc-engine.h.
| #define GNC_MOD_COMMODITY "gnc.commodity" |
Definition at line 56 of file gnc-engine.h.
| #define GNC_MOD_ENGINE "gnc.engine" |
Definition at line 50 of file gnc-engine.h.
| #define GNC_MOD_GUI "gnc.gui" |
Definition at line 62 of file gnc-engine.h.
| #define GNC_MOD_GUI_SX "gnc.gui.sx" |
Definition at line 63 of file gnc-engine.h.
| #define GNC_MOD_GUILE "gnc.guile" |
Definition at line 64 of file gnc-engine.h.
| #define GNC_MOD_HTML "gnc.html" |
Definition at line 67 of file gnc-engine.h.
| #define GNC_MOD_IMPORT "gnc.import" |
Definition at line 69 of file gnc-engine.h.
| #define GNC_MOD_IO "gnc.io" |
Definition at line 60 of file gnc-engine.h.
| #define GNC_MOD_LEDGER "gnc.ledger" |
Definition at line 65 of file gnc-engine.h.
| #define GNC_MOD_LOT "gnc.lots" |
Definition at line 55 of file gnc-engine.h.
| #define GNC_MOD_PREFS "gnc.pref" |
Definition at line 68 of file gnc-engine.h.
| #define GNC_MOD_PRICE "gnc.pricedb" |
Definition at line 58 of file gnc-engine.h.
| #define GNC_MOD_QUERY "gnc.query" |
Definition at line 53 of file gnc-engine.h.
| #define GNC_MOD_REGISTER "gnc.register" |
Definition at line 66 of file gnc-engine.h.
| #define GNC_MOD_ROOT "gnc" |
Definition at line 49 of file gnc-engine.h.
| #define GNC_MOD_SCRUB "gnc.scrub" |
Definition at line 54 of file gnc-engine.h.
| #define GNC_MOD_SX "gnc.engine.sx" |
Definition at line 52 of file gnc-engine.h.
| #define GNC_OWNER_GUID "owner-guid" |
Definition at line 261 of file gnc-engine.h.
| #define GNC_OWNER_ID "gncOwner" |
Definition at line 259 of file gnc-engine.h.
| #define GNC_OWNER_TYPE "owner-type" |
Definition at line 260 of file gnc-engine.h.
| #define GNC_SX_ID "sched-xaction" |
Definition at line 262 of file gnc-engine.h.
| #define GNC_TRANS | ( | obj | ) | GNC_TRANSACTION(obj) |
Definition at line 119 of file Transaction.h.
| #define GNC_TRANSACTION | ( | o | ) | (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_TRANSACTION, Transaction)) |
Definition at line 104 of file Transaction.h.
| #define GNC_TRANSACTION_CLASS | ( | k | ) | (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_TRANSACTION, TransactionClass)) |
Definition at line 106 of file Transaction.h.
| #define GNC_TRANSACTION_GET_CLASS | ( | o | ) | (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_TRANSACTION, TransactionClass)) |
Definition at line 112 of file Transaction.h.
| #define GNC_TYPE_TRANSACTION (gnc_transaction_get_type ()) |
Definition at line 103 of file Transaction.h.
| #define RECONCILED_MATCH_TYPE "reconciled-match" |
Definition at line 782 of file Transaction.h.
| #define TRANS_DATE_DUE "date-due" |
Definition at line 756 of file Transaction.h.
| #define TRANS_DATE_ENTERED "date-entered" |
Definition at line 754 of file Transaction.h.
| #define TRANS_DATE_POSTED "date-posted" |
Definition at line 755 of file Transaction.h.
| #define TRANS_DESCRIPTION "desc" |
Definition at line 753 of file Transaction.h.
| #define TRANS_DOCLINK "doclink" |
Definition at line 761 of file Transaction.h.
| #define TRANS_IMBALANCE "trans-imbalance" |
Definition at line 757 of file Transaction.h.
| #define TRANS_IS_BALANCED "trans-balanced?" |
Definition at line 758 of file Transaction.h.
| #define TRANS_IS_CLOSING "trans-is-closing?" |
Definition at line 759 of file Transaction.h.
| #define TRANS_KVP "kvp" |
Definition at line 751 of file Transaction.h.
| #define TRANS_NOTES "notes" |
Definition at line 760 of file Transaction.h.
| #define TRANS_NUM "num" |
Definition at line 752 of file Transaction.h.
| #define TRANS_SPLITLIST "split-list" /* for guid_match_all */ |
Definition at line 766 of file Transaction.h.
| #define TRANS_TYPE "type" |
Definition at line 762 of file Transaction.h.
| #define TRANS_VOID_REASON "void-reason" |
Definition at line 764 of file Transaction.h.
| #define TRANS_VOID_STATUS "void-p" |
Definition at line 763 of file Transaction.h.
| #define TRANS_VOID_TIME "void-time" |
Definition at line 765 of file Transaction.h.
| #define TXN_TYPE_INVOICE 'I' |
Transaction is an invoice.
Definition at line 126 of file Transaction.h.
| #define TXN_TYPE_LINK 'L' |
Transaction is a link between (invoice and payment) lots
Definition at line 128 of file Transaction.h.
| #define TXN_TYPE_NONE '\0' |
No transaction type
Definition at line 125 of file Transaction.h.
| #define TXN_TYPE_PAYMENT 'P' |
Transaction is a payment
Definition at line 127 of file Transaction.h.
| #define TXN_TYPE_UNCACHED '?' /** Transaction type not yet cached */ |
Definition at line 124 of file Transaction.h.
| #define xaccAccountInsertSplit | ( | acc, | |
| s | |||
| ) | xaccSplitSetAccount((s), (acc)) |
The xaccAccountInsertSplit() method will insert the indicated split into the indicated account.
If the split already belongs to another account, it will be removed from that account first.
| #define xaccTransAppendSplit | ( | t, | |
| s | |||
| ) | xaccSplitSetParent((s), (t)) |
Add a split to the transaction.
The xaccTransAppendSplit() method will append the indicated split to the collection of splits in this transaction.
Definition at line 380 of file Transaction.h.
| #define xaccTransGetBook | ( | X | ) | qof_instance_get_book (QOF_INSTANCE(X)) |
Definition at line 785 of file Transaction.h.
| #define xaccTransGetGUID | ( | X | ) | qof_entity_get_guid(QOF_INSTANCE(X)) |
Definition at line 787 of file Transaction.h.
| #define xaccTransLookupDirect | ( | g, | |
| b | |||
| ) | xaccTransLookup(&(g),b) |
Definition at line 233 of file Transaction.h.
| typedef GList AccountGUIDList |
GList of GUIDs of a Account.
Definition at line 211 of file gnc-engine.h.
| typedef GList AccountList |
GList of Account.
Definition at line 203 of file gnc-engine.h.
| typedef GList BookGUIDList |
GList of GUIDs of a QofBook.
Definition at line 213 of file gnc-engine.h.
| typedef void(* EngineCommitErrorCallback) (gpointer data, QofBackendError errcode) |
Definition at line 215 of file gnc-engine.h.
| typedef void(* gnc_engine_init_hook_t) (int, char **) |
| typedef GList LotList |
GList of GNCLots.
Definition at line 205 of file gnc-engine.h.
| typedef gint(* SplitCallback) (Split *s, gpointer data) |
Definition at line 217 of file gnc-engine.h.
| typedef GList SplitList |
GList of Split.
Definition at line 207 of file gnc-engine.h.
| typedef gint(* TransactionCallback) (Transaction *t, void *data) |
Definition at line 218 of file gnc-engine.h.
| typedef GList TransList |
GList of Transaction.
Definition at line 209 of file gnc-engine.h.
| enum GNCPlaceholderType |
DOCUMENT ME!
Definition at line 1282 of file Account.h.
|
noexcept |
Create a GList of account types to pass to gnc_account_sel_set_acct_filters.
gnc_account_sel_set_acct_filters copies the list so the intermediary caller is responsible for freeing the list.
Definition at line 462 of file gnc-option-impl.cpp.
|
noexcept |
Create a GList of account types to pass to gnc_account_sel_set_acct_filters.
gnc_account_sel_set_acct_filters copies the list so the intermediary caller is responsible for freeing the list.
Definition at line 533 of file gnc-option-impl.cpp.
|
noexcept |
Implemented only for GncOptionAccountListValue.
Definition at line 414 of file gnc-option.cpp.
| void GncOptionSection::add_option | ( | GncOption && | option | ) |
Definition at line 143 of file gnc-optiondb.cpp.
|
inline |
Definition at line 158 of file gnc-optiondb-impl.hpp.
| bool GncOption::deserialize | ( | const std::string & | str | ) |
Set the option's value from a character sequence.
| str | The character sequence representing the value |
Definition at line 455 of file gnc-option.cpp.
|
noexcept |
Definition at line 795 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 118 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 238 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 361 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 957 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 920 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 855 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 889 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 987 of file gnc-option-impl.cpp.
| gnc_commodity * DxaccAccountGetCurrency | ( | const Account * | account | ) |
Definition at line 3396 of file Account.cpp.
| const char * dxaccAccountGetQuoteTZ | ( | const Account * | account | ) |
Get the timezone to be used when interpreting the results from a given Finance::Quote backend.
Unfortunately, the upstream sources don't label their output, so the user has to specify this bit. This function uses a static char*.
Definition at line 4871 of file Account.cpp.
| void DxaccAccountSetCurrency | ( | Account * | account, |
| gnc_commodity * | currency | ||
| ) |
These two funcs take control of their gnc_commodity args. Don't free
Definition at line 2785 of file Account.cpp.
| void dxaccAccountSetQuoteTZ | ( | Account * | account, |
| const char * | tz | ||
| ) |
Set the timezone to be used when interpreting the results from a given Finance::Quote backend.
Unfortunately, the upstream sources don't label their output, so the user has to specify this bit.
Definition at line 4860 of file Account.cpp.
| const GncOption * GncOptionSection::find_option | ( | const char * | name | ) | const |
Definition at line 161 of file gnc-optiondb.cpp.
|
inline |
Definition at line 164 of file gnc-optiondb-impl.hpp.
| const GncOption * GncOptionDB::find_option | ( | const std::string & | section, |
| const char * | name | ||
| ) | const |
Definition at line 236 of file gnc-optiondb.cpp.
|
inline |
Definition at line 159 of file gnc-optiondb-impl.hpp.
| const GncOptionSection * GncOptionDB::find_section | ( | const std::string & | sectname | ) | const |
Definition at line 225 of file gnc-optiondb.cpp.
| void GncOptionSection::foreach_option | ( | std::function< void(const GncOption &)> | func | ) | const |
Definition at line 137 of file gnc-optiondb.cpp.
| void GncOptionSection::foreach_option | ( | std::function< void(GncOption &)> | func | ) |
Definition at line 131 of file gnc-optiondb.cpp.
|
inline |
Definition at line 122 of file gnc-optiondb-impl.hpp.
|
inline |
Definition at line 117 of file gnc-optiondb-impl.hpp.
|
inlinenoexcept |
Definition at line 128 of file gnc-optiondb-impl.hpp.
|
inline |
Definition at line 188 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 614 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 1088 of file gnc-option-impl.hpp.
|
noexcept |
Definition at line 583 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 219 of file gnc-optiondb.cpp.
|
inline |
Definition at line 102 of file gnc-option-impl.hpp.
| const GncOwner * GncOptionGncOwnerValue::get_default_value | ( | ) | const |
Definition at line 100 of file gnc-option-impl.cpp.
| const QofInstance * GncOptionQofInstanceValue::get_default_value | ( | ) | const |
Definition at line 220 of file gnc-option-impl.cpp.
| gnc_commodity * GncOptionCommodityValue::get_default_value | ( | ) | const |
Definition at line 303 of file gnc-option-impl.cpp.
|
inline |
Definition at line 421 of file gnc-option-impl.hpp.
|
inline |
Definition at line 592 of file gnc-option-impl.hpp.
| GncOptionAccountList GncOptionAccountListValue::get_default_value | ( | ) | const |
Definition at line 416 of file gnc-option-impl.cpp.
| const Account * GncOptionAccountSelValue::get_default_value | ( | ) | const |
Definition at line 492 of file gnc-option-impl.cpp.
| template GncOptionDateFormat GncOption::get_default_value< GncOptionDateFormat > | ( | ) | const |
Definition at line 81 of file gnc-option.cpp.
|
noexcept |
Definition at line 562 of file gnc-option-impl.cpp.
| const std::string & GncOption::get_docstring | ( | ) | const |
Definition at line 212 of file gnc-option.cpp.
|
inline |
Definition at line 602 of file gnc-option-impl.hpp.
|
inline |
Definition at line 187 of file gnc-option-impl.hpp.
| const std::string & GncOption::get_key | ( | ) | const |
Definition at line 204 of file gnc-option.cpp.
|
inline |
Definition at line 721 of file gnc-option-impl.hpp.
|
noexcept |
Implemented only for GncOptionNumericRange.
Definition at line 177 of file gnc-option.cpp.
|
inlinenoexcept |
Definition at line 440 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 610 of file gnc-option-impl.hpp.
| const std::string & GncOption::get_name | ( | ) | const |
Definition at line 196 of file gnc-option.cpp.
|
inlinenoexcept |
Definition at line 68 of file gnc-optiondb-impl.hpp.
|
inlinenoexcept |
Definition at line 69 of file gnc-optiondb-impl.hpp.
|
inlinenoexcept |
Definition at line 1087 of file gnc-option-impl.hpp.
|
noexcept |
Definition at line 573 of file gnc-option-impl.cpp.
|
inline |
Definition at line 1154 of file gnc-option-impl.hpp.
| const std::string & GncOption::get_section | ( | ) | const |
Definition at line 188 of file gnc-option.cpp.
| GncOptionUIItem *const GncOption::get_ui_item | ( | ) | const |
Definition at line 254 of file gnc-option.cpp.
| const GncOptionUIType GncOption::get_ui_type | ( | ) | const |
Definition at line 246 of file gnc-option.cpp.
|
inlinenoexcept |
Definition at line 109 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 155 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 195 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 246 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 450 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 718 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 877 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 997 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 1151 of file gnc-option-impl.hpp.
|
inline |
Definition at line 101 of file gnc-option-impl.hpp.
| const GncOwner * GncOptionGncOwnerValue::get_value | ( | ) | const |
Definition at line 94 of file gnc-option-impl.cpp.
| const QofInstance * GncOptionQofInstanceValue::get_value | ( | ) | const |
Definition at line 214 of file gnc-option-impl.cpp.
| gnc_commodity * GncOptionCommodityValue::get_value | ( | ) | const |
Definition at line 297 of file gnc-option-impl.cpp.
|
inline |
Definition at line 420 of file gnc-option-impl.hpp.
|
inline |
Definition at line 581 of file gnc-option-impl.hpp.
| GncOptionAccountList GncOptionAccountListValue::get_value | ( | ) | const |
Definition at line 410 of file gnc-option-impl.cpp.
| const Account * GncOptionAccountSelValue::get_value | ( | ) | const |
Definition at line 484 of file gnc-option-impl.cpp.
| template GncOptionDateFormat GncOption::get_value< GncOptionDateFormat > | ( | ) | const |
Definition at line 48 of file gnc-option.cpp.
|
noexcept |
Definition at line 554 of file gnc-option-impl.cpp.
|
inline |
Definition at line 213 of file gnc-option.hpp.
| void gnc_account_delete_all_bayes_maps | ( | Account * | acc | ) |
Delete all bayes entries for Account.
Definition at line 5775 of file Account.cpp.
| void gnc_account_delete_map_entry | ( | Account * | acc, |
| char * | head, | ||
| char * | category, | ||
| char * | match_string, | ||
| gboolean | empty | ||
| ) |
Delete the entry for Account pointed to by head,category and match_string, if empty is TRUE then use delete if empty.
Definition at line 5748 of file Account.cpp.
| const char * gnc_account_get_credit_string | ( | GNCAccountType | acct_type | ) |
Get the credit string associated with this account type.
Definition at line 4103 of file Account.cpp.
| const char * gnc_account_get_debit_string | ( | GNCAccountType | acct_type | ) |
Get the debit string associated with this account type.
Definition at line 4091 of file Account.cpp.
Returns the date of the earliest split in the account, or INT64_MAX.
| account | The account to retrieve data about. |
Definition at line 5127 of file Account.cpp.
| gchar * gnc_account_get_map_entry | ( | Account * | acc, |
| const char * | head, | ||
| const char * | category | ||
| ) |
Returns the text string pointed to by head and category for the Account, free the returned text.
Definition at line 5732 of file Account.cpp.
| GncGUID * gnc_account_get_map_guid_entry | ( | Account * | acc, |
| const char * | head, | ||
| const char * | category | ||
| ) |
Returns the guid pointed to by head and category for the Account, free the returned guid.
Definition at line 5740 of file Account.cpp.
| void gnc_account_imap_add_account | ( | Account * | acc, |
| const char * | category, | ||
| const char * | key, | ||
| Account * | added_acc | ||
| ) |
Definition at line 5208 of file Account.cpp.
Updates the imap for a given account using a list of tokens.
Definition at line 5571 of file Account.cpp.
| void gnc_account_imap_delete_account | ( | Account * | acc, |
| const char * | category, | ||
| const char * | key | ||
| ) |
Definition at line 5222 of file Account.cpp.
Definition at line 5169 of file Account.cpp.
Look up an Account in the map using Baysian.
Look up an Account in the map using Baysian.
Definition at line 5525 of file Account.cpp.
Definition at line 5182 of file Account.cpp.
| GList * gnc_account_imap_get_info | ( | Account * | acc, |
| const char * | category | ||
| ) |
Returns a GList of structure imap_info of all Non Bayesian mappings for required Account.
Definition at line 5703 of file Account.cpp.
| GList * gnc_account_imap_get_info_bayes | ( | Account * | acc | ) |
Returns a GList of structure imap_info of all Bayesian mappings for required Account.
Definition at line 5692 of file Account.cpp.
| void gnc_account_imap_info_destroy | ( | GncImapInfo * | imapInfo | ) |
Clean destructor for the imap_info structure of Bayesian mappings.
Definition at line 5682 of file Account.cpp.
The gnc_account_lookup_by_code() subroutine works like gnc_account_lookup_by_name, but uses the account code.
Definition at line 3106 of file Account.cpp.
The gnc_account_lookup_full_name() subroutine works like gnc_account_lookup_by_name, but uses fully-qualified names using the given separator.
Definition at line 3163 of file Account.cpp.
The gnc_account_lookup_by_name() subroutine fetches the account by name from the descendants of the specified account.
The immediate children are searched first. If there is no match, then a recursive search of all descendants is performed looking for a match.
Definition at line 3093 of file Account.cpp.
Find the opening balance account for the currency.
| account | The account of which the sought-for account is a descendant. |
| commodity | The commodity in which the account should be denominated |
Definition at line 3121 of file Account.cpp.
| GList * gnc_account_lookup_by_type_and_commodity | ( | Account * | root, |
| const char * | name, | ||
| GNCAccountType | acctype, | ||
| gnc_commodity * | commodity | ||
| ) |
Find a direct child account matching name, GNCAccountType, and/or commodity.
Name and commodity may be nullptr in which case the accounts in the list may have any value for those properties. Note that commodity matching is by equivalence: If the mnemonic/symbol and namespace are the same, it matches.
| root | The account among whose children one expects to find the account. |
| name | The name of the account to look for or nullptr. |
| acctype | The GNCAccountType to match. |
| commodity | The commodity in which the account should be denominated or nullptr. |
Definition at line 3188 of file Account.cpp.
| void gnc_account_reset_convert_bayes_to_flat | ( | void | ) |
Reset the flag that indicates the function imap_convert_bayes_to_flat has been run.
Definition at line 5493 of file Account.cpp.
| void gnc_account_tree_begin_staged_transaction_traversals | ( | Account * | acc | ) |
gnc_account_tree_begin_staged_transaction_traversals() resets the traversal marker inside every transactions of every account in the account tree originating with the specified node.
This is done so that a new sequence of staged traversals can begin.
Definition at line 5054 of file Account.cpp.
| int gnc_account_tree_staged_transaction_traversal | ( | const Account * | account, |
| unsigned int | stage, | ||
| TransactionCallback | thunk, | ||
| void * | data | ||
| ) |
gnc_account_tree_staged_transaction_traversal() calls thunk on each transaction in the group whose current marker is less than the given stage and updates each transaction's marker to be stage.
The traversal will stop if thunk returns a non-zero value. gnc_account_tree_staged_transaction_traversal() function will return zero or the non-zero value returned by thunk. This API does not handle handle recursive traversals.
Definition at line 5089 of file Account.cpp.
| guint gnc_book_count_transactions | ( | QofBook * | book | ) |
Definition at line 2504 of file Transaction.cpp.
| void gnc_engine_add_commit_error_callback | ( | EngineCommitErrorCallback | cb, |
| gpointer | data | ||
| ) |
Set a callback function to be called in case an engine commit fails.
Definition at line 166 of file gnc-engine.cpp.
| void gnc_engine_add_init_hook | ( | gnc_engine_init_hook_t | hook | ) |
Pass a function pointer to gnc_engine_add_init_hook and it will be called during the evaluation of gnc_engine_init.
Definition at line 154 of file gnc-engine.cpp.
| void gnc_engine_init | ( | int | argc, |
| char ** | argv | ||
| ) |
PROTOTYPES.
gnc_engine_init should be called before gnc engine functions can be used.
Definition at line 116 of file gnc-engine.cpp.
| void gnc_engine_init_static | ( | int | argc, |
| char ** | argv | ||
| ) |
This is the statically linked-in version of gnc_engine_init.
It is identical to that function except that it doesn't load any backend library.
Definition at line 126 of file gnc-engine.cpp.
| gboolean gnc_engine_is_initialized | ( | void | ) |
check the engine is fully initialized
Definition at line 160 of file gnc-engine.cpp.
| void gnc_engine_shutdown | ( | void | ) |
Called to shutdown the engine.
Definition at line 141 of file gnc-engine.cpp.
| void gnc_engine_signal_commit_error | ( | QofBackendError | errcode | ) |
Definition at line 173 of file gnc-engine.cpp.
| GType gnc_transaction_get_type | ( | void | ) |
Definition at line 29 of file gmock-Transaction.cpp.
| GncOption::GncOption | ( | const char * | section, |
| const char * | name, | ||
| const char * | key, | ||
| const char * | doc_string, | ||
| ValueType | value, | ||
| GncOptionUIType | ui_type = GncOptionUIType::INTERNAL |
||
| ) |
Definition at line 38 of file gnc-option.cpp.
|
inline |
Definition at line 143 of file gnc-option.hpp.
|
inline |
Definition at line 817 of file gnc-option-impl.hpp.
|
inline |
Definition at line 823 of file gnc-option-impl.hpp.
|
inline |
Definition at line 837 of file gnc-option-impl.hpp.
|
inline |
Definition at line 830 of file gnc-option-impl.hpp.
|
inline |
Definition at line 940 of file gnc-option-impl.hpp.
|
inline |
Definition at line 946 of file gnc-option-impl.hpp.
|
inline |
Definition at line 960 of file gnc-option-impl.hpp.
|
inline |
Definition at line 953 of file gnc-option-impl.hpp.
|
inline |
Definition at line 219 of file gnc-option-impl.hpp.
|
inline |
Definition at line 1048 of file gnc-option-impl.hpp.
|
inline |
Definition at line 1072 of file gnc-option-impl.hpp.
|
inline |
Definition at line 1064 of file gnc-option-impl.hpp.
|
inline |
Definition at line 1056 of file gnc-option-impl.hpp.
| GncOptionDB::GncOptionDB | ( | ) |
Definition at line 176 of file gnc-optiondb.cpp.
| GncOptionDB::GncOptionDB | ( | QofBook * | book | ) |
Definition at line 178 of file gnc-optiondb.cpp.
|
inline |
Definition at line 87 of file gnc-optiondb-impl.hpp.
| GncOptionGncOwnerValue::GncOptionGncOwnerValue | ( | const char * | section, |
| const char * | name, | ||
| const char * | key, | ||
| const char * | doc_string, | ||
| const GncOwner * | value, | ||
| GncOptionUIType | ui_type = GncOptionUIType::INTERNAL |
||
| ) |
Definition at line 65 of file gnc-option-impl.cpp.
| GncOptionGncOwnerValue::GncOptionGncOwnerValue | ( | const GncOptionGncOwnerValue & | from | ) |
Definition at line 73 of file gnc-option-impl.cpp.
|
inline |
Definition at line 531 of file gnc-option-impl.hpp.
|
inline |
Definition at line 567 of file gnc-option-impl.hpp.
|
inline |
Definition at line 551 of file gnc-option-impl.hpp.
| GncOptionQofInstanceValue::GncOptionQofInstanceValue | ( | const char * | section, |
| const char * | name, | ||
| const char * | key, | ||
| const char * | doc_string, | ||
| const QofInstance * | value, | ||
| GncOptionUIType | ui_type = GncOptionUIType::INTERNAL |
||
| ) |
Definition at line 181 of file gnc-option-impl.cpp.
| GncOptionQofInstanceValue::GncOptionQofInstanceValue | ( | const GncOptionQofInstanceValue & | from | ) |
Definition at line 192 of file gnc-option-impl.cpp.
|
inline |
Definition at line 400 of file gnc-option-impl.hpp.
|
inline |
Definition at line 406 of file gnc-option-impl.hpp.
|
inline |
Definition at line 63 of file gnc-optiondb-impl.hpp.
|
inline |
Definition at line 90 of file gnc-option-impl.hpp.
| std::istream & GncOptionDateValue::in_stream | ( | std::istream & | iss | ) |
Definition at line 628 of file gnc-option-impl.cpp.
| std::istream & GncOption::in_stream | ( | std::istream & | iss | ) |
Set the option's value from an input stream.
| iss | An input stream reference. |
Definition at line 463 of file gnc-option.cpp.
|
inlinenoexcept |
Definition at line 453 of file gnc-option-impl.hpp.
|
noexcept |
Definition at line 426 of file gnc-option.cpp.
|
inlinenoexcept |
Definition at line 108 of file gnc-option-impl.hpp.
|
noexcept |
Definition at line 112 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 232 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 336 of file gnc-option-impl.cpp.
|
inlinenoexcept |
Definition at line 449 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 717 of file gnc-option-impl.hpp.
|
noexcept |
Definition at line 447 of file gnc-option-impl.cpp.
|
inlinenoexcept |
Definition at line 996 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 1149 of file gnc-option-impl.hpp.
|
noexcept |
Definition at line 314 of file gnc-option.cpp.
|
inlinenoexcept |
Definition at line 107 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 153 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 193 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 244 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 448 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 716 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 875 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 995 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 1148 of file gnc-option-impl.hpp.
|
noexcept |
Definition at line 306 of file gnc-option.cpp.
|
inline |
Definition at line 111 of file gnc-option-impl.hpp.
|
inline |
Definition at line 157 of file gnc-option-impl.hpp.
|
inline |
Definition at line 197 of file gnc-option-impl.hpp.
|
inline |
Definition at line 248 of file gnc-option-impl.hpp.
|
inline |
Definition at line 452 of file gnc-option-impl.hpp.
|
inline |
Definition at line 720 of file gnc-option-impl.hpp.
|
inline |
Definition at line 879 of file gnc-option-impl.hpp.
|
inline |
Definition at line 999 of file gnc-option-impl.hpp.
|
inline |
Definition at line 1153 of file gnc-option-impl.hpp.
| bool GncOption::is_internal | ( | ) |
Definition at line 290 of file gnc-option.cpp.
|
inlinenoexcept |
Definition at line 880 of file gnc-option-impl.hpp.
|
noexcept |
Definition at line 322 of file gnc-option.cpp.
| std::istream & GncOptionDB::load_from_key_value | ( | std::istream & | iss | ) |
Definition at line 331 of file gnc-optiondb.cpp.
|
noexcept |
Definition at line 564 of file gnc-optiondb.cpp.
| std::istream & GncOptionDB::load_option_key_value | ( | std::istream & | iss | ) |
Definition at line 289 of file gnc-optiondb.cpp.
| std::string GncOptionDB::lookup_string_option | ( | const char * | section, |
| const char * | name | ||
| ) |
Definition at line 255 of file gnc-optiondb.cpp.
|
inline |
Definition at line 110 of file gnc-option-impl.hpp.
|
inline |
Definition at line 156 of file gnc-option-impl.hpp.
|
inline |
Definition at line 196 of file gnc-option-impl.hpp.
|
inline |
Definition at line 247 of file gnc-option-impl.hpp.
|
inline |
Definition at line 451 of file gnc-option-impl.hpp.
|
inline |
Definition at line 719 of file gnc-option-impl.hpp.
|
inline |
Definition at line 878 of file gnc-option-impl.hpp.
|
inline |
Definition at line 998 of file gnc-option-impl.hpp.
|
inline |
Definition at line 1152 of file gnc-option-impl.hpp.
| void GncOption::make_internal | ( | ) |
Definition at line 276 of file gnc-option.cpp.
| void GncOptionDB::make_internal | ( | const char * | section, |
| const char * | name | ||
| ) |
Definition at line 266 of file gnc-optiondb.cpp.
|
inlinenoexcept |
Definition at line 106 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 152 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 192 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 243 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 447 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 715 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 874 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 994 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 1147 of file gnc-option-impl.hpp.
|
noexcept |
Mark the option as needing to be saved.
Definition at line 298 of file gnc-option.cpp.
| std::uint16_t GncOption::num_permissible_values | ( | ) | const |
Implemented only for GncOptionMultiselectValue.
Definition at line 356 of file gnc-option.cpp.
|
inlinenoexcept |
Definition at line 698 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 1130 of file gnc-option-impl.hpp.
|
inlinenoexcept |
Definition at line 127 of file gnc-optiondb-impl.hpp.
|
inline |
Definition at line 130 of file gnc-option-impl.hpp.
|
noexcept |
Definition at line 617 of file gnc-option-impl.cpp.
|
inline |
Definition at line 706 of file gnc-option-impl.hpp.
|
inline |
Definition at line 1135 of file gnc-option-impl.hpp.
| const char * GncOption::permissible_value | ( | uint16_t | index | ) | const |
Implemented only for GncOptionMultiselectValue.
Definition at line 386 of file gnc-option.cpp.
|
inlinenoexcept |
Definition at line 702 of file gnc-option-impl.hpp.
|
noexcept |
Definition at line 604 of file gnc-option-impl.cpp.
| std::uint16_t GncOption::permissible_value_index | ( | const char * | value | ) | const |
Implemented only for GncOptionMultiselectValue.
Definition at line 371 of file gnc-option.cpp.
|
inline |
Definition at line 710 of file gnc-option-impl.hpp.
|
inline |
Definition at line 1139 of file gnc-option-impl.hpp.
| const char * GncOption::permissible_value_name | ( | uint16_t | index | ) | const |
Implemented only for GncOptionMultiselectValue.
Definition at line 400 of file gnc-option.cpp.
| size_t GncOptionDB::register_callback | ( | GncOptionDBChangeCallback | cb, |
| void * | data | ||
| ) |
Definition at line 349 of file gnc-optiondb.cpp.
| void GncOptionDB::register_option | ( | const char * | section, |
| GncOption && | option | ||
| ) |
Definition at line 181 of file gnc-optiondb.cpp.
| void GncOptionDB::register_option | ( | const char * | section, |
| GncOption * | option | ||
| ) |
Definition at line 198 of file gnc-optiondb.cpp.
| void GncOptionSection::remove_option | ( | const char * | name | ) |
Definition at line 151 of file gnc-optiondb.cpp.
| template void GncOptionValue< ValueType >::reset_default_value | ( | ) |
Definition at line 746 of file gnc-option-impl.cpp.
| void GncOptionGncOwnerValue::reset_default_value | ( | ) |
Definition at line 106 of file gnc-option-impl.cpp.
| void GncOptionQofInstanceValue::reset_default_value | ( | ) |
Definition at line 226 of file gnc-option-impl.cpp.
| void GncOptionCommodityValue::reset_default_value | ( | ) |
Definition at line 329 of file gnc-option-impl.cpp.
|
inline |
Definition at line 446 of file gnc-option-impl.hpp.
|
inline |
Definition at line 714 of file gnc-option-impl.hpp.
|
inline |
Definition at line 873 of file gnc-option-impl.hpp.
|
inline |
Definition at line 993 of file gnc-option-impl.hpp.
|
inline |
Definition at line 1143 of file gnc-option-impl.hpp.
| void GncOption::reset_default_value | ( | ) |
Definition at line 171 of file gnc-option.cpp.
| void GncOptionDB::run_callbacks | ( | ) |
Definition at line 368 of file gnc-optiondb.cpp.
|
noexcept |
Definition at line 275 of file gnc-optiondb.cpp.
|
noexcept |
Definition at line 311 of file gnc-optiondb.cpp.
|
noexcept |
Definition at line 465 of file gnc-optiondb.cpp.
| std::string GncOption::serialize | ( | ) | const |
Get a string suitable for storage representing the option's value.
Definition at line 445 of file gnc-option.cpp.
|
noexcept |
Definition at line 757 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 140 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 259 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 352 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 943 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 896 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 835 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 877 of file gnc-option-impl.cpp.
|
noexcept |
Definition at line 967 of file gnc-option-impl.cpp.
|
inlinenoexcept |
Definition at line 454 of file gnc-option-impl.hpp.
|
noexcept |
Definition at line 436 of file gnc-option.cpp.
|
inline |
Definition at line 691 of file gnc-option-impl.hpp.
| void GncOptionDB::set_default_section | ( | const char * | section | ) |
Definition at line 213 of file gnc-optiondb.cpp.
|
inline |
Definition at line 984 of file gnc-option-impl.hpp.
| void GncOptionGncOwnerValue::set_default_value | ( | const GncOwner * | new_value | ) |
Definition at line 87 of file gnc-option-impl.cpp.
| void GncOptionQofInstanceValue::set_default_value | ( | const QofInstance * | new_value | ) |
Definition at line 207 of file gnc-option-impl.cpp.
|
inline |
Definition at line 657 of file gnc-option-impl.hpp.
| void GncOptionCommodityValue::set_default_value | ( | gnc_commodity * | value | ) |
Definition at line 320 of file gnc-option-impl.cpp.
|
inline |
Definition at line 867 of file gnc-option-impl.hpp.
|
inline |
Definition at line 1116 of file gnc-option-impl.hpp.
|
inline |
Definition at line 1123 of file gnc-option-impl.hpp.
|
inline |
Definition at line 671 of file gnc-option-impl.hpp.
| template void GncOptionValue< ValueType >::set_default_value | ( | ValueType | new_value | ) |
Definition at line 740 of file gnc-option-impl.cpp.
|
inline |
Definition at line 433 of file gnc-option-impl.hpp.
| template void GncOption::set_default_value | ( | ValueType | value | ) |
Definition at line 144 of file gnc-option.cpp.
|
inline |
Definition at line 684 of file gnc-option-impl.hpp.
|
inline |
Definition at line 140 of file gnc-optiondb-impl.hpp.
| void GncOption::set_option_from_ui_item | ( | ) |
Definition at line 268 of file gnc-option.cpp.
|
inline |
Definition at line 135 of file gnc-optiondb-impl.hpp.
| void GncOption::set_ui_item | ( | GncOptionUIItemPtr && | ui_elem | ) |
Definition at line 220 of file gnc-option.cpp.
| void GncOption::set_ui_item_from_option | ( | ) |
Definition at line 260 of file gnc-option.cpp.
|
noexcept |
Definition at line 239 of file gnc-option.cpp.
|
inline |
Definition at line 975 of file gnc-option-impl.hpp.
| void GncOptionGncOwnerValue::set_value | ( | const GncOwner * | new_value | ) |
Definition at line 80 of file gnc-option-impl.cpp.
| void GncOptionQofInstanceValue::set_value | ( | const QofInstance * | new_value | ) |
Definition at line 200 of file gnc-option-impl.cpp.
|
inline |
Definition at line 632 of file gnc-option-impl.hpp.
| void GncOptionCommodityValue::set_value | ( | gnc_commodity * | value | ) |
Definition at line 310 of file gnc-option-impl.cpp.
|
inline |
Definition at line 859 of file gnc-option-impl.hpp.
|
inline |
Definition at line 1099 of file gnc-option-impl.hpp.
|
inline |
Definition at line 1107 of file gnc-option-impl.hpp.
|
inline |
Definition at line 645 of file gnc-option-impl.hpp.
|
noexcept |
Definition at line 594 of file gnc-option-impl.cpp.
| template void GncOptionValue< ValueType >::set_value | ( | ValueType | new_value | ) |
Definition at line 733 of file gnc-option-impl.cpp.
|
inline |
Definition at line 423 of file gnc-option-impl.hpp.
| template void GncOption::set_value | ( | ValueType | value | ) |
Definition at line 112 of file gnc-option.cpp.
|
inline |
Definition at line 212 of file gnc-option.hpp.
| void GncOptionDB::unregister_callback | ( | size_t | id | ) |
Definition at line 360 of file gnc-optiondb.cpp.
| void GncOptionDB::unregister_option | ( | const char * | section, |
| const char * | name | ||
| ) |
Definition at line 205 of file gnc-optiondb.cpp.
| bool GncOptionAccountSelValue::validate | ( | const Account * | value | ) | const |
Definition at line 473 of file gnc-option-impl.cpp.
|
inlinenoexcept |
Definition at line 624 of file gnc-option-impl.hpp.
| bool GncOptionAccountListValue::validate | ( | const GncOptionAccountList & | values | ) | const |
Definition at line 385 of file gnc-option-impl.cpp.
|
inlinenoexcept |
Definition at line 618 of file gnc-option-impl.hpp.
|
noexcept |
Definition at line 342 of file gnc-option-impl.cpp.
| bool GncOptionDateValue::validate | ( | RelativeDatePeriod | value | ) |
Definition at line 544 of file gnc-option-impl.cpp.
|
inline |
Definition at line 1094 of file gnc-option-impl.hpp.
|
inline |
Definition at line 422 of file gnc-option-impl.hpp.
| template bool GncOption::validate | ( | ValueType | value | ) | const |
Not implemented for GncOptionValue.
Definition at line 335 of file gnc-option.cpp.
| void xaccAccountBeginStagedTransactionTraversals | ( | const Account * | account | ) |
xaccAccountBeginStagedTransactionTraversals() resets the traversal marker for each transaction which is a parent of one of the splits in the account.
Definition at line 5031 of file Account.cpp.
| void xaccAccountClearHigherBalanceLimit | ( | Account * | account | ) |
Clear the higher balance limit for the account.
| account | The account to clear the limit on |
Definition at line 4745 of file Account.cpp.
| void xaccAccountClearLowerBalanceLimit | ( | Account * | account | ) |
Clear the lower balance limit for the account.
| account | The account to clear the limit on |
Definition at line 4751 of file Account.cpp.
| void xaccAccountClearReconcilePostpone | ( | Account * | account | ) |
DOCUMENT ME!
Definition at line 4674 of file Account.cpp.
| LotList * xaccAccountFindOpenLots | ( | const Account * | acc, |
| gboolean(*)(GNCLot *lot, gpointer user_data) | match_func, | ||
| gpointer | user_data, | ||
| GCompareFunc | sort_func | ||
| ) |
Find a list of open lots that match the match_func.
Sort according to sort_func. If match_func is NULL, then all open lots are returned. If sort_func is NULL, then the returned list has no particular order. The caller must free to returned list.
Definition at line 3982 of file Account.cpp.
| Split * xaccAccountFindSplitByDesc | ( | const Account * | account, |
| const char * | description | ||
| ) |
Returns a pointer to the split, not a copy.
Definition at line 4908 of file Account.cpp.
| Transaction * xaccAccountFindTransByDesc | ( | const Account * | account, |
| const char * | description | ||
| ) |
Returns a pointer to the transaction, not a copy.
Definition at line 4921 of file Account.cpp.
| gpointer xaccAccountForEachLot | ( | const Account * | acc, |
| gpointer(*)(GNCLot *lot, gpointer user_data) | proc, | ||
| gpointer | user_data | ||
| ) |
The xaccAccountForEachLot() method will apply the function 'proc' to each lot in the account.
If 'proc' returns a non-NULL value, further application will be stopped, and the resulting value will be returned. There is no guaranteed order over which the Lots will be traversed.
| gint xaccAccountForEachTransaction | ( | const Account * | account, |
| TransactionCallback | proc, | ||
| void * | data | ||
| ) |
The xaccAccountForEachTransaction() routine will traverse all of the transactions in account and call the callback function proc on each transaction.
Processing will continue if-and-only-if proc returns 0. The user data pointer data will be passed on to the callback function proc.
This function does not descend recursively to traverse transactions in child accounts.
proc will be called exactly once for each transaction that is pointed to by at least one split in the given account.
The result of this function will be 0 if and only if every relevant transaction was traversed exactly once. Else the return value is the last non-zero value returned by proc.
Definition at line 5150 of file Account.cpp.
| gboolean xaccAccountGetAppendText | ( | const Account * | account | ) |
Get the "import-append-text" flag for an account.
This is the saved state of the Append checkbox in the "Generic import transaction matcher" used to set the initial state of the Append checkbox next time this account is imported.
| account | The account whose flag should be retrieved. |
Definition at line 4131 of file Account.cpp.
| gboolean xaccAccountGetAutoInterest | ( | const Account * | acc | ) |
Get the "auto interest" flag for an account.
If this flag is set then the account (and any children) will trigger an interest transfer after reconciling.
| acc | The account whose flag should be retrieved. |
Definition at line 4175 of file Account.cpp.
| GNCPlaceholderType xaccAccountGetDescendantPlaceholder | ( | const Account * | account | ) |
Returns PLACEHOLDER_NONE if account is NULL or neither account nor any descendant of account is a placeholder.
If account is a placeholder, returns PLACEHOLDER_THIS. Otherwise, if any descendant of account is a placeholder, return PLACEHOLDER_CHILD.
Definition at line 4162 of file Account.cpp.
| gboolean xaccAccountGetHidden | ( | const Account * | acc | ) |
Get the "hidden" flag for an account.
If this flag is set then the account (and any children) will be hidden from the user unless they explicitly ask to see them.
| acc | The account whose flag should be retrieved. |
Definition at line 4190 of file Account.cpp.
| gboolean xaccAccountGetHigherBalanceLimit | ( | const Account * | account, |
| gnc_numeric * | balance | ||
| ) |
Get the higher balance limit for the account.
| account | The account whose higher limit is to be retrieved |
| balance | The placeholder to store the retrieved balance |
Definition at line 4719 of file Account.cpp.
| gboolean xaccAccountGetIncludeSubAccountBalances | ( | const Account * | account | ) |
Get whether to include balances of sub accounts.
| account | The account to get setting on |
Definition at line 4757 of file Account.cpp.
| gboolean xaccAccountGetIsOpeningBalance | ( | const Account * | account | ) |
Get the "opening-balance" flag for an account.
If this flag is set then the account is used for opening balance transactions.
| account | The account whose flag should be retrieved. |
Definition at line 4143 of file Account.cpp.
The xaccAccountGetLotList() routine returns a list of all lots in this account.
| account | The account whose lots should be returned. |
Definition at line 3975 of file Account.cpp.
| gboolean xaccAccountGetLowerBalanceLimit | ( | const Account * | account, |
| gnc_numeric * | balance | ||
| ) |
Get the lower balance limit for the account.
| account | The account whose lower limit is to be retrieved |
| balance | The placeholder to store the retrieved balance |
Definition at line 4726 of file Account.cpp.
| gboolean xaccAccountGetPlaceholder | ( | const Account * | account | ) |
Get the "placeholder" flag for an account.
If this flag is set then the account may not be modified by the user.
| account | The account whose flag should be retrieved. |
Definition at line 4119 of file Account.cpp.
DOCUMENT ME!
Definition at line 4566 of file Account.cpp.
| gboolean xaccAccountGetReconcileLastInterval | ( | const Account * | account, |
| int * | months, | ||
| int * | days | ||
| ) |
DOCUMENT ME!
Definition at line 4593 of file Account.cpp.
| gboolean xaccAccountGetReconcilePostponeBalance | ( | const Account * | account, |
| gnc_numeric * | balance | ||
| ) |
DOCUMENT ME!
Definition at line 4648 of file Account.cpp.
DOCUMENT ME!
Definition at line 4624 of file Account.cpp.
The xaccAccountGetSplitList() routine returns a pointer to a GList of the splits in the account.
Definition at line 3949 of file Account.cpp.
| size_t xaccAccountGetSplitsSize | ( | const Account * | account | ) |
Definition at line 3958 of file Account.cpp.
| gboolean xaccAccountGetTaxRelated | ( | const Account * | account | ) |
DOCUMENT ME!
Definition at line 4035 of file Account.cpp.
| const char * xaccAccountGetTaxUSCode | ( | const Account * | account | ) |
DOCUMENT ME!
Definition at line 4047 of file Account.cpp.
| gint64 xaccAccountGetTaxUSCopyNumber | ( | const Account * | account | ) |
Returns copy_number stored in KVP; if KVP doesn't exist or copy_number is zero, returns 1.
Definition at line 4071 of file Account.cpp.
| const char * xaccAccountGetTaxUSPayerNameSource | ( | const Account * | account | ) |
DOCUMENT ME!
Definition at line 4059 of file Account.cpp.
| const char * xaccAccountGetTypeStr | ( | GNCAccountType | type | ) |
The xaccAccountGetTypeStr() routine returns a string suitable for use in the GUI/Interface.
These strings should be translated to the local language.
Definition at line 4357 of file Account.cpp.
| void xaccAccountInsertLot | ( | Account * | acc, |
| GNCLot * | lot | ||
| ) |
The xaccAccountInsertLot() method will register the indicated lot with this account.
Any splits later inserted into this lot must belong to this account. If the lot is already in another account, the lot, and all of the splits in it, will be moved from that account to this account.
Definition at line 2140 of file Account.cpp.
| gboolean xaccAccountIsAPARType | ( | GNCAccountType | t | ) |
Convenience function to check if the account is a valid business account type (meaning an Accounts Payable/Accounts Receivable).
Definition at line 4527 of file Account.cpp.
| gboolean xaccAccountIsAssetLiabType | ( | GNCAccountType | t | ) |
Convenience function to check if the account is a valid Asset or Liability type, but not a business account type (meaning not an Accounts Payable/Accounts Receivable).
Definition at line 4481 of file Account.cpp.
| gboolean xaccAccountIsEquityType | ( | GNCAccountType | t | ) |
Convenience function to check if the account is a valid Equity type.
Definition at line 4539 of file Account.cpp.
| gboolean xaccAccountIsHidden | ( | const Account * | acc | ) |
Should this account be "hidden".
If this flag is set for this account (or any parent account) then the account should be hidden from the user unless they explicitly ask to see it. This function is different from the xaccAccountGetHidden() function because it checks the flag in parent accounts in addition to this account.
| acc | The account whose flag should be retrieved. |
Definition at line 4202 of file Account.cpp.
The xaccAccountMoveAllSplits() routine reassigns each of the splits in accfrom to accto.
Definition at line 2196 of file Account.cpp.
| void xaccAccountRemoveLot | ( | Account * | acc, |
| GNCLot * | lot | ||
| ) |
Definition at line 2122 of file Account.cpp.
| void xaccAccountSetAppendText | ( | Account * | account, |
| gboolean | val | ||
| ) |
Set the "import-append-text" flag for an account.
This is the saved state of the Append checkbox in the "Generic import transaction matcher" used to set the initial state of the Append checkbox next time this account is imported.
| account | The account whose flag should be retrieved. |
| val | The new state for the account's "import-append-text" flag. |
Definition at line 4137 of file Account.cpp.
| void xaccAccountSetAutoInterest | ( | Account * | acc, |
| gboolean | val | ||
| ) |
Set the "auto interest" flag for an account.
If this flag is set then the account (and any children) will trigger an interest transfer after reconciling.
| acc | The account whose flag should be retrieved. |
| val | The new state for the account's "auto interest" flag. |
Definition at line 4181 of file Account.cpp.
| void xaccAccountSetHidden | ( | Account * | acc, |
| gboolean | val | ||
| ) |
Set the "hidden" flag for an account.
If this flag is set then the account (and any children) will be hidden from the user unless they explicitly ask to see them.
| acc | The account whose flag should be retrieved. |
| val | The new state for the account's "hidden" flag. |
Definition at line 4196 of file Account.cpp.
| void xaccAccountSetHigherBalanceLimit | ( | Account * | account, |
| gnc_numeric | balance | ||
| ) |
Set the higher balance limit for the account.
| account | The account whose higher limit is to be saved |
| balance | The balance to be saved |
Definition at line 4733 of file Account.cpp.
| void xaccAccountSetIncludeSubAccountBalances | ( | Account * | account, |
| gboolean | include | ||
| ) |
Set whether to include balances of sub accounts.
| account | The account to set the setting on |
| include | Set to TRUE for including sub account balances |
Definition at line 4763 of file Account.cpp.
| void xaccAccountSetIsOpeningBalance | ( | Account * | account, |
| gboolean | val | ||
| ) |
Set the "opening-balance" flag for an account.
If this flag is set then the account is used for opening balance transactions.
| account | The account whose flag should be set. |
| val | The new state for the account's "opening-balance" flag. |
Definition at line 4153 of file Account.cpp.
| void xaccAccountSetLowerBalanceLimit | ( | Account * | account, |
| gnc_numeric | balance | ||
| ) |
Set the lower balance limit for the account.
| account | The account whose lower limit is to be saved |
| balance | The balance to be saved |
Definition at line 4739 of file Account.cpp.
| void xaccAccountSetMark | ( | Account * | account, |
| short | mark | ||
| ) |
Set a mark on the account.
The meaning of this mark is completely undefined. Its presented here as a utility for the programmer, to use as desired. Handy for performing customer traversals over the account tree. The mark is not stored in the database/file format. When accounts are newly created, the mark is set to zero.
Definition at line 2062 of file Account.cpp.
| void xaccAccountSetPlaceholder | ( | Account * | account, |
| gboolean | val | ||
| ) |
Set the "placeholder" flag for an account.
If this flag is set then the account may not be modified by the user.
| account | The account whose flag should be retrieved. |
| val | The new state for the account's "placeholder" flag. |
Definition at line 4125 of file Account.cpp.
DOCUMENT ME!
Definition at line 4584 of file Account.cpp.
| void xaccAccountSetReconcileLastInterval | ( | Account * | account, |
| int | months, | ||
| int | days | ||
| ) |
DOCUMENT ME!
Definition at line 4614 of file Account.cpp.
| void xaccAccountSetReconcilePostponeBalance | ( | Account * | account, |
| gnc_numeric | balance | ||
| ) |
DOCUMENT ME!
Definition at line 4664 of file Account.cpp.
DOCUMENT ME!
Definition at line 4639 of file Account.cpp.
| void xaccAccountSetTaxRelated | ( | Account * | account, |
| gboolean | tax_related | ||
| ) |
DOCUMENT ME!
Definition at line 4041 of file Account.cpp.
| void xaccAccountSetTaxUSCode | ( | Account * | account, |
| const char * | code | ||
| ) |
DOCUMENT ME!
Definition at line 4053 of file Account.cpp.
| void xaccAccountSetTaxUSCopyNumber | ( | Account * | account, |
| gint64 | copy_number | ||
| ) |
Saves copy_number in KVP if it is greater than 1; if copy_number is zero, deletes KVP.
Definition at line 4078 of file Account.cpp.
| void xaccAccountSetTaxUSPayerNameSource | ( | Account * | account, |
| const char * | source | ||
| ) |
DOCUMENT ME!
Definition at line 4065 of file Account.cpp.
| int xaccAccountStagedTransactionTraversal | ( | const Account * | a, |
| unsigned int | stage, | ||
| TransactionCallback | thunk, | ||
| void * | data | ||
| ) |
xaccAccountStagedTransactionTraversal() calls thunk on each transaction in account a whose current marker is less than the given stage and updates each transaction's marker to be stage.
The traversal will stop if thunk returns a non-zero value. xaccAccountStagedTransactionTraversal() function will return zero or the non-zero value returned by thunk. This API does not handle handle recursive traversals.
Definition at line 5062 of file Account.cpp.
| GNCAccountType xaccAccountStringToEnum | ( | const char * | str | ) |
Conversion routines for the account types to/from strings that are used in persistent storage, communications.
These strings should not be translated to the local language. Typical conversion is "INCOME" -> ACCT_TYPE_INCOME.
Definition at line 4318 of file Account.cpp.
| gboolean xaccAccountStringToType | ( | const char * | str, |
| GNCAccountType * | type | ||
| ) |
Conversion routines for the account types to/from strings that are used in persistent storage, communications.
These strings should not be translated to the local language. Typical conversion is "INCOME" -> ACCT_TYPE_INCOME.
Definition at line 4284 of file Account.cpp.
| int xaccAccountTreeForEachTransaction | ( | Account * | acc, |
| TransactionCallback | proc, | ||
| void * | data | ||
| ) |
Traverse all of the transactions in the given account group.
Continue processing IF proc returns 0. This function will descend recursively to traverse transactions in the children of the accounts in the group.
Proc will be called exactly once for each transaction that is pointed to by at least one split in any account in the hierarchy topped by the root Account acc.
The result of this function will be 0 IF every relevant transaction was traversed exactly once; otherwise, the return value is the last non-zero value returned by the callback.
Note that this routine is just a trivial wrapper for
gnc_account_tree_begin_staged_transaction_traversals(g); gnc_account_tree_staged_transaction_traversal(g, 42, proc, data);
| const char * xaccAccountTypeEnumAsString | ( | GNCAccountType | type | ) |
Conversion routines for the account types to/from strings that are used in persistent storage, communications.
These strings should not be translated to the local language. Typical conversion is ACCT_TYPE_INCOME -> "INCOME".
Definition at line 4247 of file Account.cpp.
| GNCAccountType xaccAccountTypeGetFundamental | ( | GNCAccountType | t | ) |
Convenience function to return the fundamental type asset/liability/income/expense/equity given an account type.
Definition at line 4495 of file Account.cpp.
| gboolean xaccAccountTypesCompatible | ( | GNCAccountType | parent_type, |
| GNCAccountType | child_type | ||
| ) |
Return TRUE if accounts of type parent_type can have accounts of type child_type as children.
Definition at line 4454 of file Account.cpp.
| guint32 xaccAccountTypesCompatibleWith | ( | GNCAccountType | type | ) |
Return the bitmask of account types compatible with a given type.
That is, you could switch to any of the account types in the compatible list without unwanted side-effects.
Definition at line 4367 of file Account.cpp.
| guint32 xaccAccountTypesValid | ( | void | ) |
Returns the bitmask of the account type enums that are valid.
Deprecated and root account types are stripped.
Definition at line 4472 of file Account.cpp.
| void xaccClearMark | ( | Account * | account, |
| short | val | ||
| ) |
Get the mark set by xaccAccountSetMark short xaccAccountGetMark (const Account *account);.
The xaccClearMark will find the root account, and clear the mark in the entire account tree.
Definition at line 2073 of file Account.cpp.
| void xaccClearMarkDown | ( | Account * | account, |
| short | val | ||
| ) |
The xaccClearMarkDown will clear the mark only in this and in sub-accounts.
Definition at line 2084 of file Account.cpp.
| Transaction * xaccMallocTransaction | ( | QofBook * | book | ) |
The xaccMallocTransaction() will malloc memory and initialize it.
Once created, it is usually unsafe to merely "free" this memory; the xaccTransDestroy() method should be called.
Definition at line 485 of file Transaction.cpp.
| guint32 xaccParentAccountTypesCompatibleWith | ( | GNCAccountType | type | ) |
Return the bitmask of parent account types compatible with a given type.
Definition at line 4407 of file Account.cpp.
| gboolean xaccTransactionTraverse | ( | Transaction * | trans, |
| int | stage | ||
| ) |
xaccTransactionTraverse() checks the stage of the given transaction.
If the transaction hasn't reached the given stage, the transaction is updated to that stage and the function returns TRUE. Otherwise no change is made and the function returns FALSE.
Definition at line 5039 of file Account.cpp.
| void xaccTransBeginEdit | ( | Transaction * | trans | ) |
The xaccTransBeginEdit() method must be called before any changes are made to a transaction or any of its component splits.
If this is not done, errors will result.
Definition at line 35 of file gmock-Transaction.cpp.
| void xaccTransClearReadOnly | ( | Transaction * | trans | ) |
Definition at line 1983 of file Transaction.cpp.
| void xaccTransClearSplits | ( | Transaction * | trans | ) |
Remove all splits from the transaction.
Clears the split list of the transaction. All splits that the transaction still owns will be destroyed, and others will be unlinked.
Opens and commits an edit on the transaction, so this will destroy the transaction if it isn't already open, as will committing the outer edits if new splits are not added before hand.
Definition at line 2074 of file Transaction.cpp.
| Transaction * xaccTransClone | ( | const Transaction * | t | ) |
The xaccTransClone() method will create a complete copy of an existing transaction.
Definition at line 650 of file Transaction.cpp.
| Transaction * xaccTransCloneNoKvp | ( | const Transaction * | t | ) |
The xaccTransCloneNoKvp() method will create a complete copy of an existing transaction except that the KVP slots will be empty.
Definition at line 620 of file Transaction.cpp.
| void xaccTransCommitEdit | ( | Transaction * | trans | ) |
The xaccTransCommitEdit() method indicates that the changes to the transaction and its splits are complete and should be made permanent.
Note this routine may result in the deletion of the transaction, if the transaction is "empty" (has no splits), or of xaccTransDestroy() was called on the transaction.
Definition at line 42 of file gmock-Transaction.cpp.
| void xaccTransCopyFromClipBoard | ( | const Transaction * | from_trans, |
| Transaction * | to_trans, | ||
| const Account * | from_acc, | ||
| Account * | to_acc, | ||
| gboolean | no_date | ||
| ) |
This function explicitly must robustly handle some unusual input.
'from_trans' may be a duped trans (see xaccDupeTransaction), so its splits may not really belong to the accounts that they say they do.
'from_acc' need not be a valid account. It may be an already freed Account. Therefore, it must not be dereferenced at all.
Neither 'from_trans', nor 'from_acc', nor any of 'from's splits may be modified in any way.
'no_date' if TRUE will not copy the date posted.
The 'to_trans' transaction will end up with valid copies of from's splits. In addition, the copies of any of from's splits that were in from_acc (or at least claimed to be) will end up in to_acc.
Definition at line 719 of file Transaction.cpp.
| void xaccTransCopyOnto | ( | const Transaction * | from_trans, |
| Transaction * | to_trans | ||
| ) |
Copy a transaction to another using the function below without changing any account information.
Definition at line 695 of file Transaction.cpp.
| Transaction * xaccTransCopyToClipBoard | ( | const Transaction * | from_trans | ) |
Copy a transaction to the 'clipboard' transaction using dupe_transaction.
The 'clipboard' transaction must never be dereferenced.
Definition at line 679 of file Transaction.cpp.
| int xaccTransCountSplits | ( | const Transaction * | trans | ) |
Returns the number of splits in this transaction.
Definition at line 2210 of file Transaction.cpp.
| void xaccTransDestroy | ( | Transaction * | trans | ) |
Destroys a transaction.
Each split in transaction trans is removed from its account and destroyed as well.
If the transaction has not already been opened for editing with xaccTransBeginEdit() then the changes are committed immediately. Otherwise, the caller must follow up with either xaccTransCommitEdit(), in which case the transaction and split memory will be freed, or xaccTransRollbackEdit(), in which case nothing at all is freed, and everything is put back into original order.
| trans | the transaction to destroy |
Definition at line 150 of file gmock-Transaction.cpp.
| gboolean xaccTransEqual | ( | const Transaction * | ta, |
| const Transaction * | tb, | ||
| gboolean | check_guids, | ||
| gboolean | check_splits, | ||
| gboolean | check_balances, | ||
| gboolean | assume_ordered | ||
| ) |
Equality.
| ta | First transaction to compare |
| tb | Second transaction to compare |
| check_guids | If TRUE, try a guid_equal() on the GUIDs of both transactions if their pointers are not equal in the first place. Also passed to subsidiary calls to xaccSplitEqual. |
| check_splits | If TRUE, after checking the transaction data structures for equality, also check all splits attached to the transaction for equality. |
| check_balances | If TRUE, when checking splits also compare balances between the two splits. Balances are recalculated whenever a split is added or removed from an account, so YMMV on whether this should be set. |
| assume_ordered | If TRUE, assume that the splits in each transaction appear in the same order. This saves some time looking up splits by GncGUID, and is required for checking duplicated transactions because all the splits have new GUIDs. |
Definition at line 824 of file Transaction.cpp.
| Split * xaccTransFindSplitByAccount | ( | const Transaction * | trans, |
| const Account * | acc | ||
| ) |
Definition at line 64 of file gmock-Transaction.cpp.
| gnc_numeric xaccTransGetAccountAmount | ( | const Transaction * | trans, |
| const Account * | account | ||
| ) |
Same as xaccTransGetAccountValue, but uses the Account's commodity.
Definition at line 1154 of file Transaction.cpp.
| gnc_numeric xaccTransGetAccountBalance | ( | const Transaction * | trans, |
| const Account * | account | ||
| ) |
Get the account balance for the specified account after the last split in the specified transaction.
Definition at line 1228 of file Transaction.cpp.
| gnc_numeric xaccTransGetAccountConvRate | ( | const Transaction * | txn, |
| const Account * | acc | ||
| ) |
Definition at line 1168 of file Transaction.cpp.
| gnc_numeric xaccTransGetAccountValue | ( | const Transaction * | trans, |
| const Account * | account | ||
| ) |
The xaccTransGetAccountValue() method returns the total value applied to a particular account.
In some cases there may be multiple Splits in a single Transaction applied to one account (in particular when trying to balance Lots) – this function is just a convenience to view everything at once.
Definition at line 1138 of file Transaction.cpp.
| SplitList * xaccTransGetAPARAcctSplitList | ( | const Transaction * | trans, |
| gboolean | strict | ||
| ) |
The xaccTransGetAPARSplitList() method returns a GList of the splits in a transaction that belong to an AR or AP account.
| trans | The transaction |
| strict | This slightly modifies the test to only consider splits in an AR or AP account and the split is part of a business lot |
Definition at line 2147 of file Transaction.cpp.
| gnc_commodity * xaccTransGetCurrency | ( | const Transaction * | trans | ) |
Returns the valuation commodity of this transaction.
Each transaction's valuation commodity, or 'currency' is, by definition, the common currency in which all splits in the transaction can be valued. The total value of the transaction must be zero when all splits are valued in this currency.
Definition at line 134 of file gmock-Transaction.cpp.
| time64 xaccTransGetDate | ( | const Transaction * | trans | ) |
Retrieve the posted date of the transaction.
The posted date is the date when this transaction was posted at the bank. (Although having different function names, GetDate and GetDatePosted refer to the same single date.)
Definition at line 73 of file gmock-Transaction.cpp.
| time64 xaccTransGetDateEntered | ( | const Transaction * | trans | ) |
Retrieve the date of when the transaction was entered.
The entered date is the date when the register entry was made.
Definition at line 2260 of file Transaction.cpp.
| GDate xaccTransGetDatePostedGDate | ( | const Transaction * | trans | ) |
Retrieve the posted date of the transaction.
The posted date is the date when this transaction was posted at the bank.
Definition at line 2273 of file Transaction.cpp.
| const char * xaccTransGetDescription | ( | const Transaction * | trans | ) |
Gets the transaction Description.
Definition at line 88 of file gmock-Transaction.cpp.
| const char * xaccTransGetDocLink | ( | const Transaction * | trans | ) |
Gets the transaction Document Link.
Definition at line 2231 of file Transaction.cpp.
| Split * xaccTransGetFirstAPARAcctSplit | ( | const Transaction * | trans, |
| gboolean | strict | ||
| ) |
The xaccTransGetFirstPaymentAcctSplit() method returns a pointer to the first split in this transaction that belongs to an AR or AP account.
| trans | The transaction |
| strict | This slightly modifies the test to only consider splits in an AR or AP account and the split is part of a business lot |
If there is no such split in the transaction NULL will be returned.
Definition at line 2186 of file Transaction.cpp.
| Split * xaccTransGetFirstPaymentAcctSplit | ( | const Transaction * | trans | ) |
The xaccTransGetFirstPaymentAcctSplit() method returns a pointer to the first split in this transaction that belongs to an account which is considered a valid account for business payments.
| trans | The transaction |
If there is no such split in the transaction NULL will be returned.
Definition at line 2175 of file Transaction.cpp.
| MonetaryList * xaccTransGetImbalance | ( | const Transaction * | trans | ) |
The xaccTransGetImbalance method returns a list giving the value of the transaction in each currency for which the balance is not zero.
If the use of currency accounts is disabled, then this will be only the common currency for the transaction and xaccTransGetImbalance becomes equivalent to xaccTransGetImbalanceValue. Otherwise it will return a list containing the imbalance in each currency.
Definition at line 1020 of file Transaction.cpp.
| gnc_numeric xaccTransGetImbalanceValue | ( | const Transaction * | trans | ) |
The xaccTransGetImbalanceValue() method returns the total value of the transaction.
In a pure double-entry system, this imbalance should be exactly zero, and if it is not, something is broken. However, when double-entry semantics are not enforced, unbalanced transactions can sneak in, and this routine can be used to find out how much things are off by. The value returned is denominated in the currency that is returned by the xaccTransFindCommonCurrency() method.
If the use of currency exchange accounts is enabled then the a a transaction must be balanced in each currency it uses to be considered to be balanced. The method xaccTransGetImbalance is used by most code to take this into consideration. This method is only used in a few places that want the transaction value even if currency exchange accounts are enabled.
Definition at line 118 of file gmock-Transaction.cpp.
| gboolean xaccTransGetIsClosingTxn | ( | const Transaction * | trans | ) |
Returns whether this transaction is a "closing transaction".
Definition at line 2243 of file Transaction.cpp.
| const char * xaccTransGetNotes | ( | const Transaction * | trans | ) |
Gets the transaction Notes.
The Notes field is only visible in the register in double-line mode
Definition at line 103 of file gmock-Transaction.cpp.
| const char * xaccTransGetNum | ( | const Transaction * | trans | ) |
Gets the transaction Number (or ID) field; rather than use this function directly, see 'gnc_get_num_action' and 'gnc_get_action_num' in engine/engine-helpers.c & .h which takes a user-set book option for selecting the source for the num-cell (the transaction-number or the split-action field) in registers/reports into account automatically
Definition at line 126 of file gmock-Transaction.cpp.
| SplitList * xaccTransGetPaymentAcctSplitList | ( | const Transaction * | trans | ) |
The xaccTransGetPaymentAcctSplitList() method returns a GList of the splits in a transaction that belong to an account which is considered a valid account for business payments.
| trans | The transaction |
Definition at line 2133 of file Transaction.cpp.
| const char * xaccTransGetReadOnly | ( | Transaction * | trans | ) |
Returns a non-NULL value if this Transaction was marked as read-only with some specific "reason" text.
Definition at line 2358 of file Transaction.cpp.
| Transaction * xaccTransGetReversedBy | ( | const Transaction * | trans | ) |
Returns the transaction that reversed the given transaction.
| trans | a Transaction that has been reversed |
Definition at line 2626 of file Transaction.cpp.
| Split * xaccTransGetSplit | ( | const Transaction * | trans, |
| int | i | ||
| ) |
Return a pointer to the indexed split in this transaction's split list.
Note that the split list is a linked list and that indexed access is O(N). Do not use this method for iteration.
| trans | The transaction |
| i | The split number. Valid values for i are zero to (number_of__splits-1). |
Definition at line 49 of file gmock-Transaction.cpp.
| int xaccTransGetSplitIndex | ( | const Transaction * | trans, |
| const Split * | split | ||
| ) |
Inverse of xaccTransGetSplit()
Definition at line 2117 of file Transaction.cpp.
| SplitList * xaccTransGetSplitList | ( | const Transaction * | trans | ) |
The xaccTransGetSplitList() method returns a GList of the splits in a transaction.
| trans | The transaction |
Definition at line 57 of file gmock-Transaction.cpp.
| char xaccTransGetTxnType | ( | Transaction * | trans | ) |
Returns the Transaction Type: note this type will be derived from the transaction splits, returning TXN_TYPE_NONE, TXN_TYPE_INVOICE, TXN_TYPE_LINK, or TXN_TYPE_PAYMENT according to heuristics.
It does not query the transaction kvp slots.
See TXN_TYPE_NONE, TXN_TYPE_INVOICE and TXN_TYPE_PAYMENT
Definition at line 2319 of file Transaction.cpp.
| const char * xaccTransGetVoidReason | ( | const Transaction * | transaction | ) |
Returns the user supplied textual reason why a transaction was voided.
| transaction | The transaction in question. |
Definition at line 2554 of file Transaction.cpp.
| gboolean xaccTransGetVoidStatus | ( | const Transaction * | transaction | ) |
Retrieve information on whether or not a transaction has been voided.
| transaction | The transaction in question. |
Definition at line 2547 of file Transaction.cpp.
| time64 xaccTransGetVoidTime | ( | const Transaction * | tr | ) |
Returns the time that a transaction was voided.
| tr | The transaction in question. |
Definition at line 2560 of file Transaction.cpp.
| gboolean xaccTransHasReconciledSplits | ( | const Transaction * | trans | ) |
FIXME: document me.
Definition at line 2454 of file Transaction.cpp.
| gboolean xaccTransHasReconciledSplitsByAccount | ( | const Transaction * | trans, |
| const Account * | account | ||
| ) |
FIXME: document me.
Definition at line 2425 of file Transaction.cpp.
| gboolean xaccTransHasSplitsInState | ( | const Transaction * | trans, |
| const char | state | ||
| ) |
FIXME: document me.
Definition at line 2484 of file Transaction.cpp.
| gboolean xaccTransHasSplitsInStateByAccount | ( | const Transaction * | trans, |
| const char | state, | ||
| const Account * | account | ||
| ) |
FIXME: document me.
Definition at line 2461 of file Transaction.cpp.
| gboolean xaccTransIsBalanced | ( | const Transaction * | trans | ) |
Returns true if the transaction is balanced according to the rules currently in effect.
Definition at line 1092 of file Transaction.cpp.
| gboolean xaccTransIsOpen | ( | const Transaction * | trans | ) |
The xaccTransIsOpen() method returns TRUE if the transaction is open for editing.
Otherwise, it returns false. XXX this routine should probably be deprecated. its, umm, hard to imagine legitimate uses (but it is used by the import/export code for reasons I can't understand.)
Definition at line 142 of file gmock-Transaction.cpp.
| gboolean xaccTransIsReadonlyByPostedDate | ( | const Transaction * | trans | ) |
Returns TRUE if this Transaction is read-only because its posted-date is older than the "auto-readonly" threshold of this book.
See qof_book_uses_autofreeze() and qof_book_get_autofreeze_gdate().
Definition at line 2386 of file Transaction.cpp.
The xaccTransLookup() subroutine will return the transaction associated with the given id, or NULL if there is no such transaction.
Definition at line 992 of file Transaction.cpp.
| int xaccTransOrder | ( | const Transaction * | ta, |
| const Transaction * | tb | ||
| ) |
The xaccTransOrder(ta,tb) method is useful for sorting.
Orders ta and tb return <0 if ta sorts before tb return >0 if ta sorts after tb return 0 if they are absolutely equal
The comparrison uses the following fields, in order: date posted (compare as a date) num field (compare as an integer) date entered (compare as a date) description field (comcpare as a string using strcmp()) GncGUID (compare as a guid) Finally, it returns zero if all of the above match. Note that it does NOT compare its member splits. Note also that it calls xaccTransOrder_num_action with actna and actnb set as NULL.
Definition at line 1771 of file Transaction.cpp.
| int xaccTransOrder_num_action | ( | const Transaction * | ta, |
| const char * | actna, | ||
| const Transaction * | tb, | ||
| const char * | actnb | ||
| ) |
The xaccTransOrder_num_action(ta,actna,tb,actnb) method is useful for sorting.
Orders ta and tb return <0 if ta sorts before tb return >0 if ta sorts after tb return 0 if they are absolutely equal
The comparrison uses the following fields, in order: date posted (compare as a date) if actna and actnb are NULL, num field (compare as an integer) else actna and actnb (compare as an integer) date entered (compare as a date) description field (comcpare as a string using strcmp()) GncGUID (compare as a guid) Finally, it returns zero if all of the above match. Note that it does NOT compare its member splits (except action as specified above).
Definition at line 1807 of file Transaction.cpp.
| void xaccTransRecordPrice | ( | Transaction * | trans, |
| PriceSource | source | ||
| ) |
The xaccTransRecordPrice() method iterates through the splits and and record the non-currency equivalent prices in the price database.
| trans | The transaction whose price is recorded |
| source | The price priority level |
Definition at line 157 of file gmock-Transaction.cpp.
| time64 xaccTransRetDateDue | ( | const Transaction * | trans | ) |
Dates and txn-type for A/R and A/P "invoice" postings.
Definition at line 2311 of file Transaction.cpp.
| time64 xaccTransRetDateEntered | ( | const Transaction * | trans | ) |
Retrieve the date of when the transaction was entered.
The entered date is the date when the register entry was made.
Definition at line 2305 of file Transaction.cpp.
| time64 xaccTransRetDatePosted | ( | const Transaction * | trans | ) |
Retrieve the posted date of the transaction.
The posted date is the date when this transaction was posted at the bank. (Although having different function names, GetDate and GetDatePosted refer to the same single date.)
Definition at line 2267 of file Transaction.cpp.
| Transaction * xaccTransReverse | ( | Transaction * | transaction | ) |
xaccTransReverse creates a Transaction that reverses the given transaction by inverting all the numerical values in the given transaction.
This function cancels out the effect of an earlier transaction. This will be needed by write only accounts as a way to void a previous transaction (since you can't alter the existing transaction).
| transaction | The transaction to create a reverse of. |
Definition at line 2589 of file Transaction.cpp.
| void xaccTransRollbackEdit | ( | Transaction * | trans | ) |
The xaccTransRollbackEdit() routine rejects all edits made, and sets the transaction back to where it was before the editing started.
This includes restoring any deleted splits, removing any added splits, and undoing the effects of xaccTransDestroy, as well as restoring share quantities, memos, descriptions, etc.
Definition at line 1604 of file Transaction.cpp.
| void xaccTransScrubGains | ( | Transaction * | trans, |
| Account * | gain_acc | ||
| ) |
The xaccTransScrubGains() routine performs a number of cleanup functions on the indicated transaction, with the end-goal of setting up a consistent set of gains/losses for all the splits in the transaction.
This includes making sure that the lot assignments of all the splits are good, and that the lots balance appropriately.
Definition at line 2676 of file Transaction.cpp.
| void xaccTransSetCurrency | ( | Transaction * | trans, |
| gnc_commodity * | curr | ||
| ) |
Set the commodity of this transaction.
Set the commodity of this transaction.
When we do that to a transaction with splits we need to re-value all of the splits in the new currency.
| trans | The transaction to change |
| curr | The new currency to set. |
Definition at line 1325 of file Transaction.cpp.
| void xaccTransSetDate | ( | Transaction * | trans, |
| int | day, | ||
| int | mon, | ||
| int | year | ||
| ) |
The xaccTransSetDate() method does the same thing as xaccTransSetDate[Posted]Secs(), but takes a convenient day-month-year format.
(Footnote: this shouldn't matter to a user, but anyone modifying the engine should understand that when xaccTransCommitEdit() is called, the date order of each of the component splits will be checked, and will be restored in ascending date order.)
Definition at line 1950 of file Transaction.cpp.
| void xaccTransSetDateDue | ( | Transaction * | trans, |
| time64 | time | ||
| ) |
Dates and txn-type for A/R and A/P "invoice" postings.
Definition at line 1967 of file Transaction.cpp.
| void xaccTransSetDateEnteredSecs | ( | Transaction * | trans, |
| time64 | time | ||
| ) |
Modify the date of when the transaction was entered.
The entered date is the date when the register entry was made.
Definition at line 1943 of file Transaction.cpp.
| void xaccTransSetDatePostedGDate | ( | Transaction * | trans, |
| GDate | date | ||
| ) |
This method modifies posted date of the transaction, specified by a GDate.
The posted date is the date when this transaction was posted at the bank.
This is identical to xaccTransSetDate(), but different from xaccTransSetDatePostedSecs which artificially introduces the time-of-day part, which needs to be ignored.
Definition at line 1927 of file Transaction.cpp.
| void xaccTransSetDatePostedSecs | ( | Transaction * | trans, |
| time64 | time | ||
| ) |
The xaccTransSetDatePostedSecs() method will modify the posted date of the transaction, specified by a time64 (see ctime(3)).
The posted date is the date when this transaction was posted at the bank.
Please do not use this function, as the extra time-of-day part messes up a lot of places. Rather, please use xaccTransSetDatePostedGDate() or xaccTransSetDatePostedSecsNormalized().
Definition at line 1911 of file Transaction.cpp.
| void xaccTransSetDatePostedSecsNormalized | ( | Transaction * | trans, |
| time64 | time | ||
| ) |
This function sets the posted date of the transaction, specified by a time64 (see ctime(3)).
Contrary to xaccTransSetDatePostedSecs(), the time will be normalized to only the date part, and the time-of-day will be ignored. The resulting date is the same as if it had been set as a GDate through xaccTransSetDatePostedGDate().
Please prefer this function over xaccTransSetDatePostedSecs().
The posted date is the date when this transaction was posted at the bank.
Definition at line 81 of file gmock-Transaction.cpp.
| void xaccTransSetDescription | ( | Transaction * | trans, |
| const char * | desc | ||
| ) |
Sets the transaction Description.
Definition at line 96 of file gmock-Transaction.cpp.
| void xaccTransSetDocLink | ( | Transaction * | trans, |
| const char * | doclink | ||
| ) |
Sets the transaction Document Link.
Definition at line 2040 of file Transaction.cpp.
| void xaccTransSetIsClosingTxn | ( | Transaction * | trans, |
| gboolean | is_closing | ||
| ) |
Sets whether or not this transaction is a "closing transaction".
Definition at line 2062 of file Transaction.cpp.
| void xaccTransSetNotes | ( | Transaction * | trans, |
| const char * | notes | ||
| ) |
Sets the transaction Notes.
The Notes field is only visible in the register in double-line mode
Definition at line 111 of file gmock-Transaction.cpp.
| void xaccTransSetNum | ( | Transaction * | trans, |
| const char * | num | ||
| ) |
Sets the transaction Number (or ID) field; rather than use this function directly, see 'gnc_set_num_action' in engine/engine-helpers.c & .h which takes a user-set book option for selecting the source for the num-cell (the transaction-number or the split-action field) in registers/reports into account automatically
Definition at line 2009 of file Transaction.cpp.
| void xaccTransSetReadOnly | ( | Transaction * | trans, |
| const char * | reason | ||
| ) |
Set the transaction to be ReadOnly by setting a non-NULL value as "reason".
FIXME: If "reason" is NULL, this function does nothing, instead of removing the readonly flag; the actual removal is possible only through xaccTransClearReadOnly().
Definition at line 1989 of file Transaction.cpp.
| void xaccTransSetTxnType | ( | Transaction * | trans, |
| char | type | ||
| ) |
Set the Transaction Type: note the type will be saved into the Transaction kvp property as a backward compatibility measure, for previous GnuCash versions whose xaccTransGetTxnType reads from the kvp slots.
See TXN_TYPE_NONE, TXN_TYPE_INVOICE and TXN_TYPE_PAYMENT
Definition at line 1977 of file Transaction.cpp.
| void xaccTransSortSplits | ( | Transaction * | trans | ) |
Sorts the splits in a transaction, putting the debits first, followed by the credits.
Definition at line 541 of file Transaction.cpp.
| gboolean xaccTransStillHasSplit | ( | const Transaction * | trans, |
| const Split * | s | ||
| ) |
Definition at line 214 of file Transaction.cpp.
| void xaccTransUnvoid | ( | Transaction * | transaction | ) |
xaccTransUnvoid restores a voided transaction to its original state.
At some point when gnucash is enhanced to support an audit trail (i.e. write only transactions) this command should be automatically disabled when the audit trail feature is enabled.
| transaction | The transaction to restore from voided state. |
Definition at line 2567 of file Transaction.cpp.
| gboolean xaccTransUseTradingAccounts | ( | const Transaction * | trans | ) |
Determine whether this transaction should use commodity trading accounts.
Definition at line 983 of file Transaction.cpp.
| void xaccTransVoid | ( | Transaction * | transaction, |
| const char * | reason | ||
| ) |
xaccTransVoid voids a transaction.
A void transaction has no values, is unaffected by reconciliation, and, by default is not included in any queries. A voided transaction may not be altered.
| transaction | The transaction to void. |
| reason | The textual reason why this transaction is being voided. |
Definition at line 2516 of file Transaction.cpp.
| void* GncOptionDBCallback::m_data |
Definition at line 98 of file gnc-optiondb-impl.hpp.
| std::string OptionClassifier::m_doc_string |
Definition at line 75 of file gnc-option-impl.hpp.
| GncOptionDBChangeCallback GncOptionDBCallback::m_func |
Definition at line 97 of file gnc-optiondb-impl.hpp.
| size_t GncOptionDBCallback::m_id |
Definition at line 96 of file gnc-optiondb-impl.hpp.
| std::string OptionClassifier::m_name |
Definition at line 72 of file gnc-option-impl.hpp.
| std::string OptionClassifier::m_section |
Definition at line 71 of file gnc-option-impl.hpp.
| std::string OptionClassifier::m_sort_tag |
Definition at line 73 of file gnc-option-impl.hpp.
|
staticconstexpr |
Definition at line 269 of file gnc-option-impl.hpp.
|
staticconstexpr |
Definition at line 279 of file gnc-option-impl.hpp.
|
staticconstexpr |
Definition at line 289 of file gnc-option-impl.hpp.
|
staticconstexpr |
Definition at line 76 of file gnc-option.hpp.
|
staticconstexpr |
Definition at line 86 of file gnc-option.hpp.
|
staticconstexpr |
Definition at line 96 of file gnc-option.hpp.