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.
SimpleSkyCam/configuration.h

42 lines
792 B

#ifndef _CONFIGURATION_H_
#define _CONFIGURATION_H_
/*
* all read and saved data will have to be in a
*/
#include <string>
#include <list>
#include "videodev.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:
char *debugpath;
char *readdumppath;
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);
};
extern Configuration config;
#endif