mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
* Save multiple server configurations * Each server has its own password/port storage Close #2452
25 lines
527 B
C++
25 lines
527 B
C++
#ifndef SETTINGSMANAGER_H
|
|
#define SETTINGSMANAGER_H
|
|
|
|
#include <QObject>
|
|
#include <QSettings>
|
|
#include <QStringList>
|
|
#include <QVariant>
|
|
|
|
class SettingsManager : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
SettingsManager(QString settingPath, QObject *parent = 0);
|
|
QVariant getValue(QString name, QString group = "", QString subGroup = "");
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
protected:
|
|
QSettings settings;
|
|
void setValue(QVariant value, QString name, QString group = "", QString subGroup = "");
|
|
};
|
|
|
|
#endif // SETTINGSMANAGER_H
|