Skip to content

Instantly share code, notes, and snippets.

@pvdk
Created August 15, 2012 17:38
Show Gist options
  • Save pvdk/3361856 to your computer and use it in GitHub Desktop.
Save pvdk/3361856 to your computer and use it in GitHub Desktop.
#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