AntiClipSettings/Settings.h

27 lines
572 B
C
Raw Normal View History

2024-09-11 14:18:56 +08:00
#ifndef SETTINGS_H
#define SETTINGS_H
#include "DataStructure.h"
#include "Singleton.h"
class Settings {
friend class Amass::Singleton<Settings>;
public:
void save();
void load();
ImageFormat imageFormat() const;
int imageQuality() const;
std::list<std::string> supportedDevices() const;
2024-09-11 14:18:56 +08:00
protected:
Settings();
private:
ImageFormat m_imageFormat = ImageFormat::Jpeg; // 0: jpg 1: yuv
int m_imageQuality = 100;
std::list<std::string> m_supportedDevices{"RD_T009", "RD_T013"};
2024-09-11 14:18:56 +08:00
};
#endif // SETTINGS_H