1.1 --- a/settings.h Sun Jan 30 12:58:47 2005 +0000
1.2 +++ b/settings.h Tue Aug 15 11:42:10 2006 +0000
1.3 @@ -7,18 +7,38 @@
1.4
1.5 #include "misc.h"
1.6
1.7 +// Some helper functions and simplified settings class
1.8 +// to read and parse settings e.g. in undo/redo directories
1.9
1.10 +class SimpleSettings
1.11 +{
1.12 +public:
1.13 + SimpleSettings ();
1.14 + ~SimpleSettings ();
1.15 + void clear();
1.16 + void readSettings(const QString &);
1.17 + void writeSettings(const QString &);
1.18 + QString readEntry (const QString &);
1.19 + void setEntry (const QString &,const QString &);
1.20 +private:
1.21 + QStringList keylist;
1.22 + QStringList valuelist;
1.23 +};
1.24 +
1.25 +
1.26 +// Overloaded QSettings class, used to save some settings in
1.27 +// a map instead of users home directory
1.28 class Settings:public QSettings,public xmlObj
1.29 {
1.30 public:
1.31 Settings ();
1.32 + Settings (const QString & , const QString &);
1.33 ~Settings ();
1.34 void clear();
1.35 void clearLocal (const QString &);
1.36 QString readLocalEntry ( const QString &, const QString &, const QString &);
1.37 void setLocalEntry (const QString &, const QString &, const QString &);
1.38 QString getXMLData (const QString &);
1.39 - void write ();
1.40
1.41 protected:
1.42 QStringList pathlist;