Save (works) and reload (doesn't work) placefiles from settings

This commit is contained in:
Dan Paulat 2023-08-23 01:06:51 -05:00
parent ad5c2b583d
commit 6f14745a59
3 changed files with 158 additions and 18 deletions

View file

@ -20,8 +20,9 @@ public:
explicit PlacefileManager();
~PlacefileManager();
bool placefile_enabled(const std::string& name);
bool placefile_thresholded(const std::string& name);
bool placefile_enabled(const std::string& name);
bool placefile_thresholded(const std::string& name);
std::string placefile_title(const std::string& name);
std::shared_ptr<gr::Placefile> placefile(const std::string& name);
void set_placefile_enabled(const std::string& name, bool enabled);
@ -37,7 +38,10 @@ public:
*/
std::vector<std::shared_ptr<gr::Placefile>> GetActivePlacefiles();
void AddUrl(const std::string& urlString);
void AddUrl(const std::string& urlString,
const std::string& title = {},
bool enabled = false,
bool thresholded = false);
void LoadFile(const std::string& filename);
void RemoveUrl(const std::string& urlString);