6 #define RS_SETTINGS RS_Settings::instance()
9 * This class can store and reload settings from a
10 * configuration file or the windoze registry.
11 * Please note that the Qt default implementation doesn't
12 * work as one would expect. That's why this class overwrites
13 * most of the default behaviour.
24 static RS_Settings * instance();
27 * Initialize the system.
29 * @param appName Application name
30 * @param appDirName Application directory name used for
31 * subdirectories in /usr, /etc ~/.
33 void init(const QString & comp, const QString & app);
35 void beginGroup(const QString & grp);
38 bool writeEntry(const QString & key, int value);
39 bool writeEntry(const QString & key, double value);
40 bool writeEntry(const QString & key, const QString & value);
41 QString readEntry(const QString & key, const QString & def = QString::null, bool * ok = 0);
42 int readNumEntry(const QString & key, int def = 0, bool * ok = 0);
44 QString readEntryCache(const QString & key);
45 void addToCache(const QString & key, const QString & value);
49 static RS_Settings * uniqueInstance;
51 // Q3Dict<QString> cache;
52 QMultiHash<QString, QString *> cache;