Pimcommon

configureplugindialog.h
1/*
2 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "pimcommon_export.h"
10#include <QDialog>
12namespace PimCommon
13{
14/**
15 * @brief The ConfigurePluginDialog class
16 * @author Laurent Montel <montel@kde.org>
17 */
18class PIMCOMMON_EXPORT ConfigurePluginDialog : public QDialog
19{
20 Q_OBJECT
21public:
22 explicit ConfigurePluginDialog(QWidget *parent = nullptr);
23 ~ConfigurePluginDialog() override;
24
25 void initLayout(bool addSpacer = false);
26
27protected:
28 void showHelp(const QString &name, const QString &anchor);
29 virtual QWidget *createLayout() = 0;
30 virtual void save() = 0;
31 virtual void load() = 0;
32 virtual void reset();
33
34 virtual void help();
35
36 [[nodiscard]] QDialogButtonBox *buttonBox() const;
37
38private:
39 PIMCOMMON_NO_EXPORT void slotHelpClicked();
40 PIMCOMMON_NO_EXPORT void slotAccepted();
41 PIMCOMMON_NO_EXPORT void slotRestoreDefaultClicked();
42 PIMCOMMON_NO_EXPORT void saveConfig();
43 PIMCOMMON_NO_EXPORT void readConfig();
44 QDialogButtonBox *mButtonBox = nullptr;
45};
46}
The ConfigurePluginDialog class.
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.