7#include "importmailswidget.h"
8#include "ui_importmailswidget.h"
10#include <QAbstractTextDocumentLayout>
12using namespace MailImporter;
14class MailImporter::ImportMailsWidgetPrivate
17 ImportMailsWidgetPrivate()
22 ~ImportMailsWidgetPrivate()
27 Ui::ImportMailsWidget *
const ui;
30ImportMailsWidget::ImportMailsWidget(
QWidget *parent)
32 , d(new MailImporter::ImportMailsWidgetPrivate)
37ImportMailsWidget::~ImportMailsWidget() =
default;
39void ImportMailsWidget::setStatusMessage(
const QString &
status)
41 d->ui->textStatus->setText(
status);
44void ImportMailsWidget::setFrom(
const QString &from)
46 d->ui->from->setText(from);
49void ImportMailsWidget::setTo(
const QString &to)
51 d->ui->to->setText(to);
54void ImportMailsWidget::setCurrent(
const QString ¤t)
56 d->ui->current->setText(current);
59void ImportMailsWidget::setCurrent(
int percent)
61 d->ui->done_current->setValue(percent);
64void ImportMailsWidget::setOverall(
int percent)
66 d->ui->done_overall->setValue(percent);
71 d->ui->log->addItem(item);
74void ImportMailsWidget::setLastCurrentItem()
76 d->ui->log->setCurrentItem(d->ui->log->item(d->ui->log->count() - 1));
79void ImportMailsWidget::addInfoLogEntry(
const QString &log)
81 d->ui->log->addInfoLogEntry(log);
84void ImportMailsWidget::addErrorLogEntry(
const QString &log)
86 d->ui->log->addErrorLogEntry(log);
89void ImportMailsWidget::clear()
99#include "moc_importmailswidget.cpp"
Q_SCRIPTABLE CaptureState status()