akashi-esquizolandia/include/config_manager.h
2020-08-23 14:13:55 -05:00

23 lines
394 B
C++

#ifndef CONFIG_MANAGER_H
#define CONFIG_MANAGER_H
#define CONFIG_VERSION 1
#include <QSettings>
#include <QFileInfo>
#include <QDir>
#include <QDebug>
class ConfigManager{
public:
ConfigManager(QSettings*);
bool initConfig();
void generateDefaultConfig(bool backup_old);
void updateConfig(int current_version);
private:
QSettings* config;
};
#endif // CONFIG_MANAGER_H