#ifndef GLOBALSETTINGSPRIVATE_H #define GLOBALSETTINGSPRIVATE_H #include "global-settings.h" #include #include #include namespace UkuiSearch { class GlobalSettingsPrivate : public QObject { Q_OBJECT public: explicit GlobalSettingsPrivate(QObject *parent = nullptr); const QVariant getValue(const QString&); Q_SIGNALS: void valueChanged(const QString& key, QVariant value); private: void setValue(const QString& key, const QVariant& value); QMutex m_mutex; QGSettings *m_transGsettings = nullptr; QGSettings *m_themeGsettings = nullptr; QMap m_cache; }; } #endif // GLOBALSETTINGSPRIVATE_H