#ifndef DIALOG_UPGRADEFIRMWARE_H #define DIALOG_UPGRADEFIRMWARE_H #include #include "base/HGThread.h" #include "sane/sane_ex.h" namespace Ui { class Dialog_upgradeFirmware; } class Dialog_upgradeFirmware : public QDialog { Q_OBJECT public: explicit Dialog_upgradeFirmware(SANE_Handle handle, const std::string &upgradePath, QWidget *parent = nullptr); ~Dialog_upgradeFirmware(); private: static void HGAPI ThreadFunc(HGThread thread, HGPointer param); public: SANE_Status getUpgradeStatus(); signals: void finish(); private slots: void on_finish(); private: SANE_Handle m_handle; std::string m_upgradePath; SANE_Status m_status; HGThread m_thread; private: Ui::Dialog_upgradeFirmware *ui; }; #endif // DIALOG_UPGRADEFIRMWARE_H