2015-07-08 23:15:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Singleton.h"
|
|
|
|
|
|
|
|
class CSettingsManager : public CSingleton<CSettingsManager>
|
|
|
|
{
|
|
|
|
public:
|
2018-04-30 21:01:23 +01:00
|
|
|
void Save();
|
2015-07-08 23:15:06 -04:00
|
|
|
|
2018-04-30 21:01:23 +01:00
|
|
|
void RegisterPreferenceBoolean(const std::string&, bool);
|
|
|
|
bool GetPreferenceBoolean(const std::string&);
|
|
|
|
void SetPreferenceBoolean(const std::string&, bool);
|
2019-03-29 11:28:56 +00:00
|
|
|
int GetPreferenceInteger(const std::string&);
|
|
|
|
void SetPreferenceInteger(const std::string&, int);
|
2015-07-08 23:15:06 -04:00
|
|
|
|
2018-04-30 21:01:23 +01:00
|
|
|
private:
|
2015-07-08 23:15:06 -04:00
|
|
|
};
|