blob: 9f0fc4d01020b64d0be061dfc47c15a412b48440 (
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
|
/* ============================================================
* The rekonq project
* ============================================================
* SPDX-License-Identifier: GPL-3.0-only
* Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net>
* ============================================================
* Description: rekonq settings interface
* ============================================================ */
#pragma once
#include <QObject>
#include <QVariant>
class RekonqSettings : public QObject {
Q_OBJECT
public:
explicit RekonqSettings(QObject *parent = nullptr) : QObject(parent) {}
~RekonqSettings() override = default;
virtual void beginGroup(const QString &prefix) = 0;
virtual void endGroup() = 0;
virtual void setValue(const QString &key, const QVariant &value) = 0;
[[nodiscard]] virtual QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const = 0;
[[nodiscard]] virtual QString filePath() const = 0;
signals:
void changed(QString, QVariant);
};
|