2013-12-08 20:35:57 +00:00
|
|
|
#ifndef INSTALLATIONPAGE_HPP
|
|
|
|
#define INSTALLATIONPAGE_HPP
|
|
|
|
|
|
|
|
#include <QWizardPage>
|
|
|
|
|
2014-01-27 21:54:14 +00:00
|
|
|
#include "unshield/unshieldworker.hpp"
|
2013-12-08 20:35:57 +00:00
|
|
|
#include "ui_installationpage.h"
|
2013-12-26 17:02:34 +00:00
|
|
|
#include "inisettings.hpp"
|
2013-12-08 20:35:57 +00:00
|
|
|
|
2014-01-24 21:25:22 +00:00
|
|
|
class QThread;
|
|
|
|
|
2013-12-08 20:35:57 +00:00
|
|
|
namespace Wizard
|
|
|
|
{
|
2013-12-13 12:38:49 +00:00
|
|
|
class MainWizard;
|
2013-12-26 17:02:34 +00:00
|
|
|
class IniSettings;
|
2014-01-24 21:25:22 +00:00
|
|
|
class UnshieldWorker;
|
2013-12-08 20:35:57 +00:00
|
|
|
|
|
|
|
class InstallationPage : public QWizardPage, private Ui::InstallationPage
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2013-12-13 12:38:49 +00:00
|
|
|
InstallationPage(MainWizard *wizard);
|
2013-12-08 20:35:57 +00:00
|
|
|
|
2013-12-08 21:58:29 +00:00
|
|
|
int nextId() const;
|
2013-12-25 17:52:34 +00:00
|
|
|
virtual bool isComplete() const;
|
2013-12-08 21:58:29 +00:00
|
|
|
|
2013-12-13 12:38:49 +00:00
|
|
|
private:
|
|
|
|
MainWizard *mWizard;
|
2013-12-25 17:52:34 +00:00
|
|
|
bool mFinished;
|
2013-12-13 12:38:49 +00:00
|
|
|
|
2014-01-24 21:25:22 +00:00
|
|
|
QThread* mThread;
|
|
|
|
UnshieldWorker *mUnshield;
|
|
|
|
|
2013-12-25 17:52:34 +00:00
|
|
|
void startInstallation();
|
|
|
|
|
|
|
|
private slots:
|
2014-01-27 21:54:14 +00:00
|
|
|
void showFileDialog(Wizard::Component component);
|
2014-01-24 21:25:22 +00:00
|
|
|
|
2013-12-25 17:52:34 +00:00
|
|
|
void installationFinished();
|
2014-01-17 12:21:44 +00:00
|
|
|
void installationError(const QString &text);
|
2013-12-24 22:09:31 +00:00
|
|
|
|
2013-12-13 12:38:49 +00:00
|
|
|
protected:
|
|
|
|
void initializePage();
|
|
|
|
|
2013-12-24 22:09:31 +00:00
|
|
|
|
2013-12-08 20:35:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // INSTALLATIONPAGE_HPP
|