18#ifndef WIZARD_SYSTEM_H
19#define WIZARD_SYSTEM_H
21#include <QFileSystemWatcher>
22#include <QVersionNumber>
26class System :
public QObject
29 Q_PROPERTY(
bool wizardEnabled READ wizardEnabled WRITE setWizardEnabled NOTIFY wizardEnabledChanged)
30 Q_PROPERTY(QString version READ version NOTIFY versionChanged)
31 Q_PROPERTY(
bool isUpdate READ isUpdate NOTIFY isUpdateChanged)
40 bool wizardEnabled()
const;
42 QString version()
const;
43 bool isUpdate()
const;
45 void setWizardEnabled(
bool enabled);
48 void updateSessionLocale(
const QString &locale);
52 void skipUntilFinishedPage();
55 void wizardEnabledChanged();
56 void versionChanged();
57 void isUpdateChanged();
60 void watcherFileChanged();
63 Q_DISABLE_COPY(System)
65 static QString wizardEnabledPath();
66 static QString currentFrameworkPath();
67 static void setSessionVariable(
const QString &variable,
const QString &value);
68 static void restartUnit(
const QString &variable);
69 static QString readCurrentFramework();
70 static QString readWizardEnabled();
71 static bool wizardPathExists();
73 QFileSystemWatcher m_fsWatcher;