Pimcommon

baloocompletionemail.h
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5
6*/
7
8#pragma once
9#include "pimcommonakonadi_private_export.h"
10#include <QRegularExpression>
11#include <QStringList>
12namespace PimCommon
13{
14class PIMCOMMONAKONADI_TESTS_EXPORT BalooCompletionEmail
15{
16public:
17 BalooCompletionEmail();
18 struct BalooCompletionEmailInfo {
19 QStringList mListEmail;
20 QStringList mExcludeDomains;
21 QStringList mBlackList;
22 QStringList mExcludeEmailsRegularExpressions;
23 };
24
25 [[nodiscard]] QStringList cleanupEmailList();
26
27 [[nodiscard]] BalooCompletionEmailInfo balooCompletionEmailInfo() const;
28 void setBalooCompletionEmailInfo(const BalooCompletionEmailInfo &newBalooCompletionEmailInfo);
29
30private:
31 [[nodiscard]] QString stripEmail(const QString &email, QString &address);
32 BalooCompletionEmailInfo mBalooCompletionEmailInfo;
33 static QList<QRegularExpression> mExcludeEmailsRegularExpressions;
34};
35}
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:12:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.