MailImporter::ImportMailsWidget Class
class MailImporter::ImportMailsWidgetThe ImportMailsWidget class. Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <MailImporter/ImportMailsWidget> |
| CMake: | find_package(KPim6MailImporter REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::MailImporter) |
Public Functions
| ImportMailsWidget(QWidget *parent = nullptr) | |
| virtual | ~ImportMailsWidget() override |
| void | addErrorLogEntry(const QString &log) |
| void | addInfoLogEntry(const QString &log) |
| void | addItem(QListWidgetItem *item) |
| void | clear() |
| void | setCurrent(const QString ¤t) |
| void | setCurrent(int percent) |
| void | setFrom(const QString &from) |
| void | setLastCurrentItem() |
| void | setOverall(int percent) |
| void | setStatusMessage(const QString &status) |
| void | setTo(const QString &to) |
Detailed Description
Member Function Documentation
[explicit] ImportMailsWidget::ImportMailsWidget(QWidget *parent = nullptr)
Constructor for ImportMailsWidget. parent The parent widget
[override virtual noexcept] ImportMailsWidget::~ImportMailsWidget()
Destructor for ImportMailsWidget.
void ImportMailsWidget::addErrorLogEntry(const QString &log)
Adds an error log entry. log The error message to add
void ImportMailsWidget::addInfoLogEntry(const QString &log)
Adds an informational log entry. log The log message to add
void ImportMailsWidget::addItem(QListWidgetItem *item)
Adds an item to the import list widget. item The list widget item to add
void ImportMailsWidget::clear()
Clears all items from the widget.
void ImportMailsWidget::setCurrent(const QString ¤t)
Sets the current item description. current The current item description
void ImportMailsWidget::setCurrent(int percent)
Sets the current progress as a percentage. percent The progress percentage (0-100)
void ImportMailsWidget::setFrom(const QString &from)
Sets the "from" source location. from The source location
void ImportMailsWidget::setLastCurrentItem()
Sets the last item as the current item in the list.
void ImportMailsWidget::setOverall(int percent)
Sets the overall progress as a percentage. percent The overall progress percentage (0-100)
void ImportMailsWidget::setStatusMessage(const QString &status)
Sets the status message displayed in the widget. status The status message
void ImportMailsWidget::setTo(const QString &to)
Sets the "to" destination location. to The destination location