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)
32 Q_PROPERTY(QString distroName READ distroName CONSTANT)
41 bool wizardEnabled()
const;
43 QString version()
const;
44 bool isUpdate()
const;
45 QString distroName()
const;
47 void setWizardEnabled(
bool enabled);
50 void updateSessionLocale(
const QString &locale);
54 void skipUntilFinishedPage();
57 void wizardEnabledChanged();
58 void versionChanged();
59 void isUpdateChanged();
62 void watcherFileChanged();
65 Q_DISABLE_COPY(System)
67 static QString wizardEnabledPath();
68 static QString currentFrameworkPath();
69 static void setSessionVariable(
const QString &variable,
const QString &value);
70 static void restartUnit(
const QString &variable);
71 static QString readCurrentFramework();
72 static QString readWizardEnabled();
73 static bool wizardPathExists();
75 QFileSystemWatcher m_fsWatcher;