2
0

ConfigJSON.h 516 B

123456789101112131415161718192021222324252627
  1. #ifndef CONFIGJSON_H
  2. #define CONFIGJSON_H
  3. #include <memory>
  4. #include <iostream>
  5. #include "FileHelper.h"
  6. #include "protobuf/metadata.pb.h"
  7. class ConfigJSON
  8. {
  9. private:
  10. std::shared_ptr<FileHelper> _file;
  11. std::string _jsonFileName;
  12. public:
  13. ConfigJSON(std::string jsonFileName, std::shared_ptr<FileHelper> file);
  14. bool load();
  15. bool save();
  16. uint16_t volume;
  17. std::string deviceName;
  18. std::string apOverride;
  19. AudioFormat format;
  20. };
  21. extern std::shared_ptr<ConfigJSON> configMan;
  22. #endif