28 lines
469 B
C++
28 lines
469 B
C++
#ifndef CONFIGURATIONMANAGER_H
|
|
#define CONFIGURATIONMANAGER_H
|
|
|
|
#define FILENAME "settings.json"
|
|
|
|
#include <QString>
|
|
#include <QDir>
|
|
#include <QStandardPaths>
|
|
#include <QJsonObject>
|
|
#include <QJsonDocument>
|
|
|
|
#include "models/settings.h"
|
|
|
|
class ConfigurationManager
|
|
{
|
|
private:
|
|
Settings *s;
|
|
QString GetPath();
|
|
void Save();
|
|
public:
|
|
ConfigurationManager();
|
|
~ConfigurationManager();
|
|
|
|
Settings* GetConfiguration();
|
|
};
|
|
|
|
#endif // CONFIGURATIONMANAGER_H
|