#ifndef SELFCHECKPAGE_H #define SELFCHECKPAGE_H #include "base.h" #include class TitleBar; class QLabel; class QProgressBar; class QPushButton; class LedIndicator; // ===================== ④ 自检界面(系统启动及自检) ===================== class SelfCheckPage : public BasePage { Q_OBJECT public: explicit SelfCheckPage(AppContext* ctx, QWidget* parent = nullptr); void startSelfCheck(); void resetAll(); protected: void showEvent(QShowEvent* ev) override; private slots: void onSelfCheckItem(int index, bool ok); void onSelfCheckDone(bool allOk); void onIgnoreFault(); void onJobSelect(); void onHelp(); private: TitleBar* m_titleBar = nullptr; QLabel* m_status = nullptr; QVector m_leds; QVector m_results; QProgressBar* m_progress = nullptr; QPushButton* m_ignore = nullptr; QPushButton* m_job = nullptr; bool m_autoStarted = false; bool m_done = false; }; #endif // SELFCHECKPAGE_H