[FL-1489] IRDA: move to FileWorker (#594)

* [FL-1489] IRDA: move to FileWorker, fixes

* Use FileWorker
* Use file_select to select remotes
* Fix some crashes
* Add RAW parsing restrictions
* Remove excess scene (LearnDoneAfter)
* Move all file system logic to standalone object
This commit is contained in:
Albert Kharisov
2021-07-22 03:07:00 +03:00
committed by GitHub
parent b886ae17b6
commit 769ab2aef2
25 changed files with 591 additions and 391 deletions

View File

@@ -9,7 +9,6 @@
#include <filesystem-api.h>
#include "irda-app-signal.h"
class IrdaAppRemoteButton {
friend class IrdaAppRemoteManager;
std::string name;
@@ -49,8 +48,8 @@ public:
int find_remote_name(const std::vector<std::string>& strings);
bool rename_button(uint32_t index, const char* str);
bool rename_remote(const char* str);
std::string find_vacant_remote_name(const std::string& name);
bool get_remote_list(std::vector<std::string>& remote_names) const;
std::vector<std::string> get_button_list() const;
std::string get_button_name(uint32_t index);
std::string get_remote_name();
@@ -58,9 +57,9 @@ public:
const IrdaAppSignal& get_button_data(size_t index) const;
bool delete_button(uint32_t index);
bool delete_remote();
void reset_remote();
bool store();
bool load(const std::string& name, bool fullpath = false);
bool check_fs() const;
bool load(const std::string& name);
};