41#include <unordered_map>
44using Feature = std::pair<std::string_view, std::string_view>;
45using FeaturesTable = std::unordered_map<std::string_view, std::string_view>;
46using FeatureSet = std::vector<Feature>;
54#define GNC_FEATURE_CREDIT_NOTES "Credit Notes"
55#define GNC_FEATURE_NUM_FIELD_SOURCE "Number Field Source"
56#define GNC_FEATURE_KVP_EXTRA_DATA "Extra data in addresses, jobs or invoice entries"
57#define GNC_FEATURE_BOOK_CURRENCY "Use a Book-Currency"
58#define GNC_FEATURE_GUID_BAYESIAN "Account GUID based Bayesian data"
59#define GNC_FEATURE_GUID_FLAT_BAYESIAN "Account GUID based bayesian with flat KVP"
60#define GNC_FEATURE_SQLITE3_ISO_DATES "ISO-8601 formatted date strings in SQLite3 databases."
61#define GNC_FEATURE_REG_SORT_FILTER "Register sort and filter settings stored in .gcm file"
62#define GNC_FEATURE_BUDGET_UNREVERSED "Use natural signs in budget amounts"
63#define GNC_FEATURE_BUDGET_SHOW_EXTRA_ACCOUNT_COLS "Show extra account columns in the Budget View"
64#define GNC_FEATURE_EQUITY_TYPE_OPENING_BALANCE "Use a dedicated opening balance account identified by an 'equity-type' slot"
93gboolean gnc_features_check_used (
QofBook *,
char const * feature);
gchar * gnc_features_test_unknown(QofBook *book)
Test if the current book relies on features only introduced in a more recent version of GnuCash.
void gnc_features_set_unused(QofBook *book, const gchar *feature)
Indicate that the current book does not use the given feature.
void gnc_features_set_used(QofBook *book, const gchar *feature)
Indicate that the current book uses the given feature.