From 5d7f13a254e20cb420d5d82db30ed13c211240d3 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 15 Dec 2023 09:30:02 +0100 Subject: [PATCH] Future: add getFileVersion() and checkDownloadedJsonVersions() to check if download of Json-File worked and to ask what Json-Version is actually installed --- update.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update.h b/update.h index cb1d01a..8dcfaea 100644 --- a/update.h +++ b/update.h @@ -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();