| /* | |
| * configio.h | |
| * | |
| * Created on: Aug 22, 2019 | |
| * Author: gideon | |
| */ | |
| class ConfigIO : public ObjectWithMenu | |
| { | |
| static void S_write_to_file(File *f); | |
| static void S_write_store_to_file(ConfigStore *s, File *f); | |
| static bool S_read_store_element(ConfigStore *st, const char *line, int linenr, StreamTextLog *log); | |
| static SubsysResultCode_e S_reset_log(SubsysCommand *cmd); | |
| static SubsysResultCode_e S_save_log(SubsysCommand *cmd); | |
| struct { | |
| Action *savecfg; | |
| Action *savefile; | |
| Action *loadcfg; | |
| Action *factory; | |
| Action *clr_flash; | |
| Action *clear_dbg; | |
| Action *save_dbg; | |
| } myActions; | |
| public: | |
| ConfigIO(); | |
| virtual ~ConfigIO(); | |
| void create_task_items(void); | |
| void update_task_items(bool writablePath); | |
| static SubsysResultCode_e S_save_to_file(SubsysCommand *cmd); | |
| static SubsysResultCode_e S_save(SubsysCommand *cmd); | |
| static SubsysResultCode_e S_restore(SubsysCommand *cmd); | |
| static SubsysResultCode_e S_reset(SubsysCommand *cmd); | |
| static SubsysResultCode_e S_clear(SubsysCommand *cmd); | |
| static bool S_read_from_file(File *f, StreamTextLog *log); | |
| }; | |