2015-04-13 19:58:34 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <wx/stdpaths.h>
|
|
|
|
#include <wx/dir.h>
|
|
|
|
#include <wx/filename.h>
|
|
|
|
|
|
|
|
#include "DataTree.h"
|
|
|
|
|
|
|
|
class AppConfig {
|
|
|
|
public:
|
|
|
|
|
|
|
|
std::string getConfigDir();
|
|
|
|
|
2015-04-13 21:18:45 -04:00
|
|
|
void setPPM(std::string deviceId, int ppm);
|
|
|
|
int getPPM(std::string deviceId);
|
2015-04-13 19:58:34 -04:00
|
|
|
bool save();
|
|
|
|
bool load();
|
|
|
|
bool reset();
|
|
|
|
private:
|
|
|
|
std::map<std::string, int> device_ppm;
|
|
|
|
};
|