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