blob: 8b230a9c76ba2493dfae1dce85ed47c26be3ba23 (
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
33
34
35
36
37
38
39
40
|
/*
* SPDX-FileCopyrightText: 2006 Peter Penz <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef SETTINGSPAGEBASE_H
#define SETTINGSPAGEBASE_H
#include <QWidget>
/**
* @brief Base class for the settings pages of the Dolphin settings dialog.
*/
class SettingsPageBase : public QWidget
{
Q_OBJECT
public:
explicit SettingsPageBase(QWidget* parent = nullptr);
~SettingsPageBase() override;
/**
* Must be implemented by a derived class to
* persistently store the settings.
*/
virtual void applySettings() = 0;
/**
* Must be implemented by a derived class to
* restored the settings to default values.
*/
virtual void restoreDefaults() = 0;
signals:
/** Is emitted if a setting has been changed. */
void changed();
};
#endif
|