16
14
* with this program. If not, see <http://www.gnu.org/licenses/>.
17
#ifndef WIZARD_SYSTEM_H
18
#define WIZARD_SYSTEM_H
20
#include <QFileSystemWatcher>
23
class QDBusPendingCallWatcher;
25
24
class System : public QObject
28
Q_PROPERTY(bool hereEnabled READ hereEnabled WRITE setHereEnabled NOTIFY hereEnabledChanged)
29
Q_PROPERTY(QString hereLicensePath READ hereLicensePath NOTIFY hereLicensePathChanged)
27
Q_PROPERTY(bool wizardEnabled READ wizardEnabled WRITE setWizardEnabled NOTIFY wizardEnabledChanged)
34
bool hereEnabled() const;
35
void setHereEnabled(bool enabled);
37
QString hereLicensePath() const;
32
bool wizardEnabled() const;
33
void setWizardEnabled(bool enabled);
40
void updateSessionLanguage();
36
void updateSessionLanguage(const QString &locale);
43
void hereEnabledChanged();
44
void hereLicensePathChanged();
47
void propertiesChanged(const QString &interface, const QVariantMap &changed, const QStringList &invalid);
48
void getHereEnabledFinished(QDBusPendingCallWatcher *watcher);
49
void getHereLicensePathFinished(QDBusPendingCallWatcher *watcher);
39
void wizardEnabledChanged();
52
42
Q_DISABLE_COPY(System)
54
QDBusInterface *m_accounts;
56
QString m_hereLicensePath;
44
static QString wizardEnabledPath();
45
static void setSessionVariable(const QString &variable, const QString &value);
47
QFileSystemWatcher m_fsWatcher;