Pimcommon

blacklistbalooemaillist.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
10#include "pimcommonakonadi_private_export.h"
11#include <QHash>
12#include <QListWidget>
13#include <QListWidgetItem>
14
15namespace PimCommon
16{
17class PIMCOMMONAKONADI_TESTS_EXPORT BlackListBalooEmailListItem : public QListWidgetItem
18{
19public:
20 explicit BlackListBalooEmailListItem(QListWidget *parent = nullptr);
21 ~BlackListBalooEmailListItem() override;
22
23 [[nodiscard]] bool initializeStatus() const;
24 void setInitializeStatus(bool initializeStatus);
25
26private:
27 bool mInitializeStatus;
28};
29
30class PIMCOMMONAKONADI_TESTS_EXPORT BlackListBalooEmailList : public QListWidget
31{
32 Q_OBJECT
33public:
34 explicit BlackListBalooEmailList(QWidget *parent = nullptr);
35 ~BlackListBalooEmailList() override;
36
37 void setEmailBlackList(const QStringList &list);
38
39 [[nodiscard]] QHash<QString, bool> blackListItemChanged() const;
40
41 void setExcludeDomains(const QStringList &domain);
42 [[nodiscard]] int setEmailFound(const QStringList &);
43
44 void setExcludeEmailsRegularExpressions(const QStringList &newExcludeEmailsRegularExpressions);
45
46protected:
47 void paintEvent(QPaintEvent *event) override;
48
49 void changeEvent(QEvent *event) override;
50
51private:
52 PIMCOMMONAKONADI_NO_EXPORT void generalPaletteChanged();
53 QStringList mExcludeEmailsRegularExpressions;
54 QStringList mEmailBlackList;
55 QStringList mExcludeDomains;
56 QColor mTextColor;
57 bool mFirstResult = false;
58};
59}
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.