File indexing completed on 2025-01-05 04:49:42
0001 /* 0002 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "scamconfiguresettings_private_export.h" 0010 #include <QWidget> 0011 class ScamConfigureSettingsTreeWidget; 0012 namespace MessageViewer 0013 { 0014 class ScamDetectionInfo; 0015 } 0016 class LIBSCAMCONFIGURESETTINGS_TESTS_EXPORT ScamConfigureSettingsWidget : public QWidget 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit ScamConfigureSettingsWidget(QWidget *parent = nullptr); 0021 ~ScamConfigureSettingsWidget() override; 0022 0023 void loadSettings(); 0024 void saveSettings(); 0025 0026 private: 0027 void fillList(const QList<MessageViewer::ScamDetectionInfo> &scanInfo); 0028 ScamConfigureSettingsTreeWidget *const mTreeWidget; 0029 };