starting cloud save
This commit is contained in:
27
sources/configurationmanager.h
Normal file
27
sources/configurationmanager.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user