Created
August 15, 2012 17:38
-
-
Save pvdk/3361856 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef CONFIG_H | |
#define CONFIG_H | |
#include <QSettings> | |
class Config | |
{ | |
public: | |
Config(const QString & cfgPath); | |
QString get(const QString & key); | |
QStringList getMulti(const QString &key); | |
bool set(const QString & key, const QString & server); | |
bool save(); | |
bool isReadOnly(); | |
QSettings * settings; | |
bool readWrite; | |
}; | |
#endif // CONFIG_H |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment