File indexing completed on 2024-10-27 04:50:59
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 0006 */ 0007 0008 #pragma once 0009 0010 #include "kmail_private_export.h" 0011 #include <QObject> 0012 #include <QStringList> 0013 0014 class KMAILTESTS_TESTS_EXPORT PotentialPhishingEmailJob : public QObject 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit PotentialPhishingEmailJob(QObject *parent = nullptr); 0019 ~PotentialPhishingEmailJob() override; 0020 0021 void setEmailWhiteList(const QStringList &emails); 0022 void setPotentialPhishingEmails(const QStringList &emails); 0023 0024 [[nodiscard]] QStringList potentialPhisingEmails() const; 0025 [[nodiscard]] bool start(); 0026 0027 [[nodiscard]] QStringList checkEmails() const; 0028 0029 Q_SIGNALS: 0030 void potentialPhishingEmailsFound(const QStringList &emails); 0031 0032 private: 0033 QStringList mEmails; 0034 QStringList mPotentialPhisingEmails; 0035 QStringList mEmailWhiteList; 0036 };