You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
607 B

#ifndef SCREEN_RECORDER_SETTINGS_MANAGER_HPP
#define SCREEN_RECORDER_SETTINGS_MANAGER_HPP
#include <iostream>
#include <list>
using namespace std;
class SettingsEntry
{
public:
string key;
string value;
};
class SettingsManager
{
public:
SettingsManager();
virtual ~SettingsManager();
void Update(string key, string value);
void UpdateBool(string key, bool value);
void Save(string key, string value);
void SaveAll();
string Get(string key);
bool GetBool(string key);
private:
list<SettingsEntry*> settings;
void readAll();
void saveAll();
};
#endif