File indexing completed on 2025-01-19 04:46:43
0001 /* 0002 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QWidget> 0010 class ConfirmAddressSimpleStringListEditor; 0011 class KConfigGroup; 0012 class QRadioButton; 0013 class ConfirmAddressConfigureTabWidget : public QWidget 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit ConfirmAddressConfigureTabWidget(QWidget *parent = nullptr); 0018 ~ConfirmAddressConfigureTabWidget() override; 0019 0020 void resetSettings(); 0021 void loadSettings(const KConfigGroup &grp); 0022 void saveSettings(KConfigGroup &grp); 0023 0024 void setIdentity(uint identity); 0025 0026 Q_SIGNALS: 0027 void configureChanged(); 0028 0029 private: 0030 uint mIdentity = 0; 0031 ConfirmAddressSimpleStringListEditor *mDomainNameListEditor = nullptr; 0032 ConfirmAddressSimpleStringListEditor *mWhiteListEditor = nullptr; 0033 QRadioButton *mAcceptedDomain = nullptr; 0034 QRadioButton *mRejectedDomain = nullptr; 0035 };