dolphin/src/settings/settingspagebase.h

41 lines
828 B
C
Raw Normal View History

/*
* SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef SETTINGSPAGEBASE_H
#define SETTINGSPAGEBASE_H
2011-02-04 14:43:21 +00:00
#include <QWidget>
/**
* @brief Base class for the settings pages of the Dolphin settings dialog.
*/
class SettingsPageBase : public QWidget
{
Q_OBJECT
public:
2017-11-21 09:52:14 +00:00
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;
2021-02-08 22:09:59 +00:00
Q_SIGNALS:
/** Is emitted if a setting has been changed. */
void changed();
};
#endif