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 "../checkphishingurljob.h" 0010 #include <QWidget> 0011 class QLineEdit; 0012 class QPlainTextEdit; 0013 class CheckPhishingUrlGui : public QWidget 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit CheckPhishingUrlGui(QWidget *parent = nullptr); 0018 ~CheckPhishingUrlGui() override; 0019 private Q_SLOTS: 0020 void slotCheckUrl(); 0021 void slotGetResult(WebEngineViewer::CheckPhishingUrlUtil::UrlStatus result, const QUrl &url, uint verifyCacheAfterThisTime); 0022 void slotJSonDebug(const QByteArray &debug); 0023 0024 private: 0025 QLineEdit *mCheckUrlLineEdit; 0026 QPlainTextEdit *mJson; 0027 QPlainTextEdit *mResult; 0028 };