Diffstat (limited to 'noncore/apps/checkbook/cfg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/cfg.h | 16 |
1 files changed, 14 insertions, 2 deletions
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 @@ -78,4 +78,9 @@ class Cfg QStringList &getAccountTypes() { return(_AccountTypes); } + // --- Payees + QStringList &getPayees() { return(_Payees); } + bool getSavePayees() { return(_bSavePayees); } + void setSavePayees(bool bSave) { _bSavePayees=bSave; } + // --- Categories QStringList getCategories(); @@ -99,4 +104,9 @@ class Cfg 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); @@ -105,6 +115,4 @@ class Cfg static void writeStringList(Config &cfg, const char *sKey, QStringList &lst); - - private: QString _currencySymbol; @@ -113,7 +121,11 @@ class Cfg bool _openLastBook; bool _showLastTab; + bool _bDirty; + bool _bSavePayees; QString _sLastBook; QStringList _AccountTypes; CategoryList *_pCategories; + QStringList _Payees; + }; |