MailImporter

filterinfo.h
1/*
2 SPDX-FileCopyrightText: 2000 Hans Dijkema <kmailcvt@hum.org>
3 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7
8#pragma once
9
10#include "mailimporter_export.h"
11#include <QString>
12#include <memory>
13class QWidget;
14namespace MailImporter
15{
16class FilterInfoGui;
17/**
18 * @brief The FilterInfo class
19 */
20class MAILIMPORTER_EXPORT FilterInfo
21{
22public:
23 FilterInfo();
25
26 void setFilterInfoGui(FilterInfoGui *filterinfogui);
27
28 void setStatusMessage(const QString &status);
29 void setFrom(const QString &from);
30 void setTo(const QString &to);
31 void setCurrent(const QString &current);
32 void setCurrent(int percent = 0);
33 void setOverall(int percent = 0);
34 void addInfoLogEntry(const QString &log);
35 void addErrorLogEntry(const QString &log);
36 void clear();
37 void alert(const QString &message);
38
39 static void terminateASAP();
40 [[nodiscard]] bool shouldTerminate() const;
41
42 QWidget *parentWidget() const;
43 void setRemoveDupMessage(bool removeDupMessage);
44 [[nodiscard]] bool removeDupMessage() const;
45
46private:
47 class FilterInfoPrivate;
48 std::unique_ptr<FilterInfoPrivate> const d;
49};
50}
The FilterInfoGui class.
The FilterInfo class.
Definition filterinfo.h:21
Q_SCRIPTABLE CaptureState status()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.