Future: add getFileVersion() and checkDownloadedJsonVersions() to

check if download of Json-File worked and to ask what Json-Version
is actually installed
This commit is contained in:
Gerhard Hoffmann 2023-12-15 09:30:02 +01:00
parent d332a990d5
commit 5d7f13a254

View File

@ -58,6 +58,7 @@ public:
char const *baudrate = "115200");
virtual ~Update() override;
bool doUpdate(int &displayIndex, QStringList const &linesToWorkOn);
bool checkDownloadedJsonVersions(QStringList const& jsonFileNames);
hwinf *hw() { return m_hw; }
hwinf const *hw() const { return m_hw; }
@ -87,6 +88,7 @@ private:
bool downloadJson(enum FileTypeJson type, int templateIdx,
QString jsFileToSendToDC) const;
QStringList getDcSoftAndHardWareVersion();
QString getFileVersion(QString const& jsonFile);
private slots:
void readyReadStandardOutput();