Newer
Older
#pragma once
#include <QObject>
class SystemHandler : public QObject
{
Q_OBJECT
public:
bool isUnix() const;
bool isMobileDevice() const;
bool openUrl(const QString &url) const;
QString desktopEnvironment() const;
bool isApplicableType(const QString &installType) const;
bool applyFile(const QString &path, const QString &installType) const;
bool setConfigWithPlasmaShell(const QString &script) const;
bool applyKdeIcon(const QString &themeName) const;
bool applyKdeCursor(const QString &themeName) const;
bool applyKdePlasmaDesktoptheme(const QString &themeName) const;
bool applyKdeAuroraeTheme(const QString &themeName) const;
bool setConfigWithGsettings(const QString &schema, const QString &key, const QString &value) const;
bool applyGnomeIcon(const QString &themeName) const;
bool applyGnomeCursor(const QString &themeName) const;
bool applyGnomeGtk3Theme(const QString &themeName) const;
bool applyGnomeGnomeShellTheme(const QString &themeName) const;
bool setConfigWithXfconf(const QString &channel, const QString &property, const QString &value) const;
bool applyXfceCursor(const QString &themeName) const;
bool applyXfceGtk3Theme(const QString &themeName) const;
bool applyXfceXfwm4Theme(const QString &themeName) const;