File indexing completed on 2025-01-05 04:58:20

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 <QObject>
0011 
0012 #include "pimcommonakonadi_private_export.h"
0013 namespace PimCommon
0014 {
0015 class PIMCOMMONAKONADI_TESTS_EXPORT BlackListBalooEmailSearchJob : public QObject
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit BlackListBalooEmailSearchJob(QObject *parent = nullptr);
0020     ~BlackListBalooEmailSearchJob() override;
0021 
0022     [[nodiscard]] bool start();
0023 
0024     void setSearchEmail(const QString &searchEmail);
0025 
0026     void setLimit(int limit);
0027 
0028 Q_SIGNALS:
0029     void emailsFound(const QStringList &list);
0030 
0031 private:
0032     QString mSearchEmail;
0033     int mLimit = 500;
0034 };
0035 }