File indexing completed on 2025-05-04 04:59:33

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "../createphishingurldatabasejob.h"
0010 #include <QWidget>
0011 class QPlainTextEdit;
0012 class QComboBox;
0013 class CreatePhisingUrlDataBaseGui : public QWidget
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit CreatePhisingUrlDataBaseGui(QWidget *parent = nullptr);
0018     ~CreatePhisingUrlDataBaseGui() override;
0019 private Q_SLOTS:
0020     void slotResult(const QByteArray &data);
0021     void slotDownloadFullDatabase();
0022     void slotDebugJSon(const QByteArray &data);
0023     void slotDownloadPartialDatabase();
0024     void slotSaveResultToDisk();
0025 
0026 private:
0027     WebEngineViewer::CreatePhishingUrlDataBaseJob::ContraintsCompressionType compressionType();
0028     void clear();
0029     QPlainTextEdit *mResult;
0030     QPlainTextEdit *mJson;
0031     QComboBox *mCompressionType;
0032 };