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.
37 lines
719 B
37 lines
719 B
|
|
#ifndef _CONFIGURATION_H_
|
|
#define _CONFIGURATION_H_
|
|
|
|
/*
|
|
* all read and saved data will have to be in a
|
|
*/
|
|
|
|
#include <string>
|
|
#include <list>
|
|
#include "video.h"
|
|
#include "json.h"
|
|
|
|
#define CONFIGURATION_DEFAULTFILE ".simpleskycam.config"
|
|
#define BTN_PRESET_MAX 4 // number of preset buttons
|
|
|
|
class Configuration {
|
|
private:
|
|
JSONParse config;
|
|
std::string GetDefaultFileName();
|
|
list<VideoDevCtrl> presetbtn[BTN_PRESET_MAX];
|
|
public:
|
|
Configuration();
|
|
~Configuration();
|
|
|
|
void LoadDefault();
|
|
void SaveDefault();
|
|
|
|
void LoadConfig(std::string filename);
|
|
void SaveConfig(std::string filename);
|
|
|
|
void SetPresetButton (int btn, list<VideoDevCtrl> *parameters);
|
|
list<VideoDevCtrl> GetPresetButton (int btn);
|
|
};
|
|
|
|
#endif
|