From 1ecb844b647dab2fc8b3a845e005547051993f56 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 19 Jan 2024 08:20:21 +0100 Subject: [PATCH] Added for future use when updating device-controller-frimware: hwinf *m_hw = nullptr; UPDATE_STEP m_lastFailedUpdateStep = UPDATE_STEP::NONE; --- worker.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/worker.h b/worker.h index ba13ece..71ef5c5 100644 --- a/worker.h +++ b/worker.h @@ -290,6 +290,8 @@ private: static Worker *instance; QStringList m_opkgCommands; Update *m_update = nullptr; + hwinf *m_hw = nullptr; + UPDATE_STEP m_lastFailedUpdateStep = UPDATE_STEP::NONE; protected: virtual void run(); @@ -347,6 +349,8 @@ public: void displayProgressInMainWindow(int progress); void startProgressLoop(); void stopProgressLoop(); + void setHW(hwinf *hw) { m_hw = hw; } + hwinf *getHW() { return m_hw; } IsmasClient &getIsmasClient() { return m_ismasClient; } IsmasClient const &getIsmasClient() const { return m_ismasClient; }