summaryrefslogtreecommitdiff
path: root/wizard/welcome.cpp
blob: 7cbb0d0d3fd969192cc5099430818e338acf6e32 (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
32
33
34
35
36
37
#include <QtGui>
#include "welcome.h"
#include "config.h"
#include "../listdelegate.h"
#include "../listitem.h"

wpWelcome::wpWelcome(QWidget *parent) : QWizardPage(parent)
{
  setupUi(this);
  backend = Backend::instance();
  connect(backend, SIGNAL(finishedCommand(QString)), this, SLOT(backendFinishedCommand(QString)));
  setComplete(false);
  textBrowser->setSource(QString("%1/html/%2.html").arg(BACKEND_DIR).arg(tr("welcome")));
  backend->exec("init_installer");
}

void wpWelcome::backendFinishedCommand(QString command)
{
  if(command == "init_installer") setComplete(true);
}

void wpWelcome::setComplete(bool c)
{
  complete = c;
  emit completeChanged();
}

bool wpWelcome::isComplete() const
{
  return complete;
}

bool wpWelcome::validatePage()
{
  return complete;
}