gnc-features.h (gnucash-5.0.tar.bz2) | : | gnc-features.h (gnucash-5.1.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 39 | skipping to change at line 39 | |||
* @author Copyright (C) 2012 Geert Janssens <geert@kobaltwit.be> | * @author Copyright (C) 2012 Geert Janssens <geert@kobaltwit.be> | |||
* | * | |||
* These functions help you to manage features that GnuCash supports. | * These functions help you to manage features that GnuCash supports. | |||
* This is mainly used to prevent older GnuCash versions from opening | * This is mainly used to prevent older GnuCash versions from opening | |||
* book with data they aren't capable of processing properly. | * book with data they aren't capable of processing properly. | |||
*/ | */ | |||
#ifndef GNC_FEATURES_H | #ifndef GNC_FEATURES_H | |||
#define GNC_FEATURES_H | #define GNC_FEATURES_H | |||
#include "qof.h" | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
#include <string_view> | ||||
#include <unordered_map> | ||||
#include <vector> | ||||
using Feature = std::pair<std::string_view, std::string_view>; | ||||
using FeaturesTable = std::unordered_map<std::string_view, std::string_view>; | ||||
using FeatureSet = std::vector<Feature>; | ||||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/** @name Defined features | /** @name Defined features | |||
@{ | @{ | |||
*/ | */ | |||
#define GNC_FEATURE_CREDIT_NOTES "Credit Notes" | #define GNC_FEATURE_CREDIT_NOTES "Credit Notes" | |||
#define GNC_FEATURE_NUM_FIELD_SOURCE "Number Field Source" | #define GNC_FEATURE_NUM_FIELD_SOURCE "Number Field Source" | |||
#define GNC_FEATURE_KVP_EXTRA_DATA "Extra data in addresses, jobs or invoice ent ries" | #define GNC_FEATURE_KVP_EXTRA_DATA "Extra data in addresses, jobs or invoice ent ries" | |||
#define GNC_FEATURE_BOOK_CURRENCY "Use a Book-Currency" | ||||
#define GNC_FEATURE_GUID_BAYESIAN "Account GUID based Bayesian data" | #define GNC_FEATURE_GUID_BAYESIAN "Account GUID based Bayesian data" | |||
#define GNC_FEATURE_GUID_FLAT_BAYESIAN "Account GUID based bayesian with flat KV P" | #define GNC_FEATURE_GUID_FLAT_BAYESIAN "Account GUID based bayesian with flat KV P" | |||
#define GNC_FEATURE_SQLITE3_ISO_DATES "ISO-8601 formatted date strings in SQLite 3 databases." | #define GNC_FEATURE_SQLITE3_ISO_DATES "ISO-8601 formatted date strings in SQLite 3 databases." | |||
#define GNC_FEATURE_REG_SORT_FILTER "Register sort and filter settings stored in .gcm file" | #define GNC_FEATURE_REG_SORT_FILTER "Register sort and filter settings stored in .gcm file" | |||
#define GNC_FEATURE_BUDGET_UNREVERSED "Use natural signs in budget amounts" | #define GNC_FEATURE_BUDGET_UNREVERSED "Use natural signs in budget amounts" | |||
#define GNC_FEATURE_BUDGET_SHOW_EXTRA_ACCOUNT_COLS "Show extra account columns i n the Budget View" | #define GNC_FEATURE_BUDGET_SHOW_EXTRA_ACCOUNT_COLS "Show extra account columns i n the Budget View" | |||
#define GNC_FEATURE_EQUITY_TYPE_OPENING_BALANCE "Use a dedicated opening balance account identified by an 'equity-type' slot" | #define GNC_FEATURE_EQUITY_TYPE_OPENING_BALANCE "Use a dedicated opening balance account identified by an 'equity-type' slot" | |||
/** @} */ | /** @} */ | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 9 lines changed or added |