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

0001 /*
0002    SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include "pimcommonakonadi_private_export.h"
0009 #include <QStringList>
0010 
0011 namespace PimCommon
0012 {
0013 class BalooCompletionEmail;
0014 class PIMCOMMONAKONADI_TESTS_EXPORT AddresseeLineEditBaloo
0015 {
0016 public:
0017     AddresseeLineEditBaloo();
0018     ~AddresseeLineEditBaloo();
0019 
0020     [[nodiscard]] int balooCompletionSource() const;
0021     void setBalooCompletionSource(int value);
0022     void loadBalooBlackList();
0023     [[nodiscard]] QStringList cleanupEmailList(const QStringList &inputList);
0024 
0025     [[nodiscard]] QStringList balooBlackList() const;
0026     [[nodiscard]] QStringList domainExcludeList() const;
0027 
0028 private:
0029     PimCommon::BalooCompletionEmail *const mBalooCompletionEmail;
0030     int mBalooCompletionSource = 0;
0031 };
0032 }