[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

@@ -2,13 +2,13 @@
#include "furi/check.h"
#include <unordered_map>
#include "irda-app-file-parser.hpp"
#include <memory>
class IrdaAppBruteForce {
const char* universal_db_filename;
IrdaAppFileParser file_parser;
File file;
std::string current_record;
std::unique_ptr<IrdaAppFileParser> file_parser;
typedef struct {
int index;
@@ -30,8 +30,6 @@ public:
void add_record(int index, const char* name);
IrdaAppBruteForce(const char* filename) : universal_db_filename (filename) {}
~IrdaAppBruteForce() {
stop_bruteforce();
}
~IrdaAppBruteForce() {}
};