From f7ccea7bca79f1dc21e497872a419446f20d211e Mon Sep 17 00:00:00 2001 From: aqua Date: Sat, 20 Aug 2022 16:37:42 +0300 Subject: Add Setting and MockSettings - rename Settings to RekonqSettings --- src/settings/settings.hpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/settings/settings.hpp (limited to 'src/settings/settings.hpp') diff --git a/src/settings/settings.hpp b/src/settings/settings.hpp new file mode 100644 index 00000000..c595e981 --- /dev/null +++ b/src/settings/settings.hpp @@ -0,0 +1,30 @@ +/* ============================================================ + * The rekonq project + * ============================================================ + * SPDX-License-Identifier: GPL-3.0-only + * Copyright (C) 2022 aqua + * ============================================================ + * Description: Application Settings + * ============================================================ */ + +#pragma once + +#include + +class QSettings; +class Settings final : public RekonqSettings { + Q_OBJECT + +public: + explicit Settings(const QString &path, QObject *parent = nullptr); + ~Settings() = default; + + void beginGroup(const QString &prefix) override; + void endGroup() override; + + void setValue(const QString &key, const QVariant &value) override; + QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const override; + +private: + QSettings *d; +}; -- cgit v1.2.1