blob: 8d4139856ba4318858ef393504478c6e9d49cc2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* ============================================================
* The rekonq project
* ============================================================
* SPDX-License-Identifier: GPL-3.0-only
* Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net>
* ============================================================
* Description: Application Settings
* ============================================================ */
#pragma once
#include <rsettings.hpp>
class QSettings;
class Settings : public RekonqSettings {
Q_OBJECT
public:
[[nodiscard]] static QString path();
explicit Settings(const QString &settingsPath, QObject *parent = nullptr);
~Settings() override;
void beginGroup(const QString &prefix) override;
void endGroup() override;
void setValue(const QString &key, const QVariant &value) override;
void resetValue(const QString &key) override;
[[nodiscard]] QVariant value(const QString &key) const override;
[[nodiscard]] QString filePath() const override;
protected:
QSettings *d;
QSettings *b;
private:
Q_DISABLE_COPY_MOVE(Settings)
};
|