Add CARBUS Analyzer file load.

- Generic CSV parses file without failures, so CARBUS must be higher.
- File may be loaded but will have no packets. Adjusted UI message for this case.
- Obviously if we got CANHACKER header, then file is already detected and there is no need to parse.
This commit is contained in:
Kanstantsin Shautsou
2020-09-26 03:45:19 +03:00
parent ec650dd275
commit 6eebfd7089
4 changed files with 136 additions and 23 deletions
+2
View File
@@ -46,6 +46,7 @@ public:
static bool loadKvaserFile(QString, QVector<CANFrame>*, bool);
static bool loadCanalyzerASC(QString, QVector<CANFrame>*);
static bool loadCanalyzerBLF(QString, QVector<CANFrame>*);
static bool loadCARBUSAnalyzerFile(QString filename, QVector<CANFrame>* frames);
static bool loadCANHackerFile(QString filename, QVector<CANFrame>* frames);
static bool loadCabanaFile(QString filename, QVector<CANFrame>* frames);
static bool loadCANOpenFile(QString filename, QVector<CANFrame>* frames);
@@ -67,6 +68,7 @@ public:
static bool isKvaserFile(QString);
static bool isCanalyzerASC(QString);
static bool isCanalyzerBLF(QString);
static bool isCARBUSAnalyzerFile(QString filename);
static bool isCANHackerFile(QString filename);
static bool isCabanaFile(QString filename);
static bool isCANOpenFile(QString filename);