MailImporter

importmailswidget.h
1/*
2 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6#pragma once
7
8#include "mailimporter_export.h"
9#include <QWidget>
10class QListWidgetItem;
11namespace MailImporter
12{
13class ImportMailsWidgetPrivate;
14/**
15 * @brief The ImportMailsWidget class
16 * @author Laurent Montel <montel@kde.org>
17 */
18class MAILIMPORTER_EXPORT ImportMailsWidget : public QWidget
19{
20 Q_OBJECT
21
22public:
23 explicit ImportMailsWidget(QWidget *parent = nullptr);
25
26 void setStatusMessage(const QString &status);
27 void setFrom(const QString &from);
28 void setTo(const QString &to);
29 void setCurrent(const QString &current);
30 void setCurrent(int percent);
31 void setOverall(int percent);
32 void addItem(QListWidgetItem *item);
33 void setLastCurrentItem();
34 void clear();
35 void addInfoLogEntry(const QString &log);
36 void addErrorLogEntry(const QString &log);
37
38private:
39 std::unique_ptr<ImportMailsWidgetPrivate> const d;
40};
41}
The ImportMailsWidget class.
Q_SCRIPTABLE CaptureState status()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:54:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.