From 37414f207b147af4cf6778b323a0aa23127901bd Mon Sep 17 00:00:00 2001 From: mickeyl Date: Thu, 30 Oct 2003 13:18:08 +0000 Subject: apply patch to HEAD --- (limited to 'noncore/apps/checkbook/cfg.h') diff --git a/noncore/apps/checkbook/cfg.h b/noncore/apps/checkbook/cfg.h index 2b69368..20692b4 100644 --- a/noncore/apps/checkbook/cfg.h +++ b/noncore/apps/checkbook/cfg.h @@ -77,6 +77,11 @@ class Cfg void setCurrencySymbol(const char *n) { _currencySymbol=n; } QStringList &getAccountTypes() { return(_AccountTypes); } + // --- Payees + QStringList &getPayees() { return(_Payees); } + bool getSavePayees() { return(_bSavePayees); } + void setSavePayees(bool bSave) { _bSavePayees=bSave; } + // --- Categories QStringList getCategories(); void setCategories(QStringList &lst); @@ -98,23 +103,30 @@ class Cfg // --- writes data to config file void writeConfig(Config &cfg); + // --- dirty flag + bool isDirty() { return(_bDirty); } + void setDirty(bool bDirty) { _bDirty=bDirty; } + + protected: // --- reads list from config file static void readStringList(Config &cfg, const char *sKey, QStringList &lst); // --- writes list in configuration file static void writeStringList(Config &cfg, const char *sKey, QStringList &lst); - - private: QString _currencySymbol; bool _showLocks; bool _showBalances; bool _openLastBook; bool _showLastTab; + bool _bDirty; + bool _bSavePayees; QString _sLastBook; QStringList _AccountTypes; CategoryList *_pCategories; + QStringList _Payees; + }; #endif -- cgit v0.9.0.2