30 lines
487 B
C++
30 lines
487 B
C++
#ifndef CONFIGMANAGER_H
|
|
#define CONFIGMANAGER_H
|
|
|
|
#define FILENAME "config.json"
|
|
|
|
#include <QJsonDocument>
|
|
#include <QJsonObject>
|
|
#include <QStandardPaths>
|
|
#include <QString>
|
|
#include <QDir>
|
|
|
|
#include "../models/appconfiguration.h"
|
|
|
|
class ConfigManager
|
|
{
|
|
private:
|
|
QString getSaveFilePath();
|
|
void load();
|
|
AppConfiguration *cfg;
|
|
|
|
public:
|
|
ConfigManager();
|
|
~ConfigManager();
|
|
|
|
AppConfiguration *getConfiguration();
|
|
void writeToDisk();
|
|
};
|
|
|
|
#endif // CONFIGMANAGER_H
|