Pimcommon

blacklistbalooemailcompletionwidget.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 <QWidget>
12class QPushButton;
13class QLineEdit;
14class QLabel;
16namespace PimCommon
17{
18class BlackListBalooEmailList;
19class BlackListBalooEmailWarning;
20class PIMCOMMONAKONADI_TESTS_EXPORT BlackListBalooEmailCompletionWidget : public QWidget
21{
22 Q_OBJECT
23public:
24 explicit BlackListBalooEmailCompletionWidget(QWidget *parent = nullptr);
25 ~BlackListBalooEmailCompletionWidget() override;
26
27 void save();
28 void load();
29 void setEmailBlackList(const QStringList &list);
30
31private:
32 PIMCOMMONAKONADI_NO_EXPORT void slotSelectionChanged();
33 PIMCOMMONAKONADI_NO_EXPORT void slotUnselectEmails();
34 PIMCOMMONAKONADI_NO_EXPORT void slotSelectEmails();
35 PIMCOMMONAKONADI_NO_EXPORT void slotSearchLineEditChanged(const QString &text);
36 PIMCOMMONAKONADI_NO_EXPORT void slotSearch();
37 PIMCOMMONAKONADI_NO_EXPORT void slotLinkClicked(const QString &link);
38 PIMCOMMONAKONADI_NO_EXPORT void slotEmailFound(const QStringList &list);
39 PIMCOMMONAKONADI_NO_EXPORT void slotCheckIfUpdateBlackListIsNeeded();
40 PIMCOMMONAKONADI_NO_EXPORT void slotSaveChanges();
41 PIMCOMMONAKONADI_NO_EXPORT void slotShowAllBlacklistedEmail();
42 PIMCOMMONAKONADI_NO_EXPORT void hideMoreResultAndChangeLimit();
43 PIMCOMMONAKONADI_NO_EXPORT void slotCustomContextMenuRequested(const QPoint &pos);
44 QStringList mOriginalExcludeDomain;
45 QStringList mOriginalExcludeEmailRegexp;
46 QLabel *const mNumberOfEmailsFound;
47 QLineEdit *const mSearchLineEdit;
48 QLineEdit *const mExcludeDomainLineEdit;
49 BlackListBalooEmailList *const mEmailList;
50 QPushButton *const mSearchButton;
51 QPushButton *const mSelectButton;
52 QPushButton *const mUnselectButton;
53 QPushButton *const mShowAllBlackListedEmails;
54 QLabel *const mMoreResult;
55 KListWidgetSearchLine *mSearchInResultLineEdit = nullptr;
56 BlackListBalooEmailWarning *const mBlackListWarning;
57 QLineEdit *const mExcludeEmailFromRegularExpressionLineEdit;
58 int mLimit = 500;
59};
60}
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
KGuiItem save()
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:39:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.