summaryrefslogtreecommitdiff
path: root/wizard/installation.h
blob: c783b90c8af633e888d0c5fe3b4f974fb1eca8be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef installation_H
#define installation_H

#include <QTime>
#include "ui_installation.h"
#include "../backend.h"

class wpInstallation : public QWizardPage, Ui::wpInstallation
{
  Q_OBJECT

  public:
    wpInstallation(QWidget *parent = 0);
    void initializePage();
    void cleanupPage();
    bool isComplete() const;
    bool validatePage();
    
  private:
    Backend* backend;
    bool complete;
    void setComplete(bool c);
    QTime timer;
    
  private slots:
    void setProgress(int percent);
    void receivedCommand(QString command, QString args);
    void finishedCommand(QString command);
};

#endif // installation_H