mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
big merge
This commit is contained in:
26
components/spotify/cspot/include/ConfigJSON.h
Normal file
26
components/spotify/cspot/include/ConfigJSON.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef CONFIGJSON_H
|
||||
#define CONFIGJSON_H
|
||||
|
||||
#include <memory>
|
||||
#include <iostream>
|
||||
#include "FileHelper.h"
|
||||
#include "ProtoHelper.h"
|
||||
|
||||
class ConfigJSON
|
||||
{
|
||||
private:
|
||||
std::shared_ptr<FileHelper> _file;
|
||||
std::string _jsonFileName;
|
||||
public:
|
||||
ConfigJSON(std::string jsonFileName, std::shared_ptr<FileHelper> file);
|
||||
bool load();
|
||||
bool save();
|
||||
|
||||
uint16_t volume;
|
||||
std::string deviceName;
|
||||
AudioFormat format;
|
||||
};
|
||||
|
||||
extern std::shared_ptr<ConfigJSON> configMan;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user