mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:37:36 +00:00
Ladybird: Add Settings class
This commit is contained in:
parent
1b682e4b2c
commit
a838004725
5 changed files with 61 additions and 1 deletions
27
Ladybird/Settings.h
Normal file
27
Ladybird/Settings.h
Normal file
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue