#pragma once #include "installerpage.h" #include "tools.h" #include class QTextEdit; class QProgressBar; class QLabel; class PageInstall : public InstallerPage { Q_OBJECT public: explicit PageInstall(InstallerSettings* settings); bool validate(); void retranslateUi(); protected: void setupUi(); public slots: void show(); private slots: void onError(QProcess::ProcessError error); void showStdOut(); void showStdErr(); void onFinish(int exitCode, QProcess::ExitStatus exitStatus = QProcess::NormalExit); private: QTextEdit* m_Output; QLabel* m_LabelEta; QProgressBar* m_Progress; InstallerSettings* m_Settings; QProcess* m_clProc; };