┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/settingspagebase.h
blob: d331b7d358dd7b6dde3cdf8ae12ba2b848fe9312 (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;

Q_SIGNALS:
    /** Is emitted if a setting has been changed. */
    void changed();
};

#endif