1 #ifndef INSTALLATIONPAGE_HPP
2 #define INSTALLATIONPAGE_HPP
3 
4 #include <QWizardPage>
5 
6 #include "unshield/unshieldworker.hpp"
7 #include "ui_installationpage.h"
8 #include "inisettings.hpp"
9 
10 class QThread;
11 
12 namespace Wizard
13 {
14     class MainWizard;
15     class IniSettings;
16     class UnshieldWorker;
17 
18     class InstallationPage : public QWizardPage, private Ui::InstallationPage
19     {
20         Q_OBJECT
21     public:
22         InstallationPage(QWidget *parent);
23         ~InstallationPage();
24 
25         int nextId() const override;
26          bool isComplete() const override;
27 
28     private:
29         MainWizard *mWizard;
30         bool mFinished;
31 
32         QThread* mThread;
33         UnshieldWorker *mUnshield;
34 
35         void startInstallation();
36 
37     private slots:
38         void showFileDialog(Wizard::Component component);
39 
40         void installationFinished();
41         void installationError(const QString &text, const QString &details);
42 
43     protected:
44         void initializePage() override;
45 
46     };
47 
48 }
49 
50 #endif // INSTALLATIONPAGE_HPP
51