summaryrefslogtreecommitdiff
path: root/Ladybird/Settings.h
diff options
context:
space:
mode:
authorFiliph Sandström <filiph.sandstrom@filfatstudios.com>2022-07-14 05:41:13 +0200
committerAndrew Kaster <andrewdkaster@gmail.com>2022-12-25 07:58:58 -0700
commita8380047257cb19885bf23ead9a0a92075d4cbce (patch)
tree1e995f0fd0df873d5ddcca9a530e19eed14519f0 /Ladybird/Settings.h
parent1b682e4b2c6737d114ae2115db58df75994ddd42 (diff)
downloadserenity-a8380047257cb19885bf23ead9a0a92075d4cbce.zip
Ladybird: Add Settings class
Diffstat (limited to 'Ladybird/Settings.h')
-rw-r--r--Ladybird/Settings.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/Ladybird/Settings.h b/Ladybird/Settings.h
new file mode 100644
index 0000000000..925c71ca80
--- /dev/null
+++ b/Ladybird/Settings.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#define AK_DONT_REPLACE_STD
+
+#include <AK/String.h>
+#include <QSettings>
+
+namespace Browser {
+
+class Settings {
+public:
+ Settings();
+
+ QString homepage();
+ void set_homepage(QString const& homepage);
+
+private:
+ QSettings* m_qsettings;
+};
+
+}