18 #ifndef WIZARD_SYSTEM_H
19 #define WIZARD_SYSTEM_H
21 #include <QFileSystemWatcher>
22 #include <QVersionNumber>
26 class 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 QString readCurrentFramework();
69 static QString readWizardEnabled();
70 static bool wizardPathExists();
72 QFileSystemWatcher m_fsWatcher;