Newer
Older
#include "../utility/file.h"
#include "../utility/json.h"
#include "config.h"
namespace Core {
Config::Config(const QString &configsDir, QObject *parent) :
{}
QJsonObject Config::get(const QString &name)
{
QString json = Utility::File::readText(configFile);
if (json.isEmpty()) {
json = "{}"; // Blank JSON data as default
}
}
bool Config::set(const QString &name, const QJsonObject &jsonObj)
{
QString json = Utility::Json::convertObjToStr(jsonObj);
return true;
}
return false;
}
} // namespace Core