From a7465aa35b4efd3bfc4bbd9be4d1572d25a05bb2 Mon Sep 17 00:00:00 2001 From: aqua Date: Sat, 27 Aug 2022 15:27:37 +0300 Subject: Rename rView to RekonqView - move rview.hpp to include/ - move src/mainwindow/* to src/ --- include/rsettings.hpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/rsettings.hpp (limited to 'include/rsettings.hpp') diff --git a/include/rsettings.hpp b/include/rsettings.hpp new file mode 100644 index 00000000..2d90fe3b --- /dev/null +++ b/include/rsettings.hpp @@ -0,0 +1,32 @@ +/* ============================================================ + * The rekonq project + * ============================================================ + * SPDX-License-Identifier: GPL-3.0-only + * Copyright (C) 2022 aqua + * ============================================================ + * Description: rekonq settings interface + * ============================================================ */ + +#pragma once + +#include +#include + +class RekonqSettings : public QObject { + Q_OBJECT + +public: + explicit RekonqSettings(QObject *parent = nullptr) : QObject(parent) {} + virtual ~RekonqSettings() = 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); +}; -- cgit v1.2.1