File indexing completed on 2024-04-21 05:25:18
0001 /* 0002 * SPDX-FileCopyrightText: 2019-2020 Aditya Mehra <aix.m@outlook.com> 0003 * 0004 * SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #ifndef GLOBALCONFIGURATION_H 0008 #define GLOBALCONFIGURATION_H 0009 0010 #include <QObject> 0011 #include <QProcessEnvironment> 0012 0013 class GlobalConfiguration : public QObject 0014 { 0015 Q_OBJECT 0016 Q_PROPERTY(QString backendConfig READ backendConfig WRITE setBackendConfig NOTIFY backendConfigChanged) 0017 Q_PROPERTY(bool backendConfigXDGSupported READ backendConfigXDGSupported WRITE setBackendConfigXDGSupported NOTIFY backendConfigXDGSupportedChanged) 0018 0019 public: 0020 explicit GlobalConfiguration(QObject *parent = nullptr); 0021 0022 QString backendConfig(); 0023 bool backendConfigXDGSupported(); 0024 0025 public Q_SLOTS: 0026 void setBackendConfig(const QString &backendConfig); 0027 void setBackendConfigXDGSupported(bool backendConfigXDGSupported); 0028 QString getSystemUser(); 0029 0030 Q_SIGNALS: 0031 void backendConfigChanged(); 0032 void backendConfigXDGSupportedChanged(); 0033 }; 0034 0035 #endif // GLOBALCONFIGURATION_H