MailImporter

importmailswidget.h
1 /*
2  Copyright (c) 2012-2020 Laurent Montel <[email protected]>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful, but
10  WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 #ifndef IMPORTMAILSWIDGET_H
19 #define IMPORTMAILSWIDGET_H
20 
21 #include <QWidget>
22 #include "mailimporter_export.h"
23 class QListWidgetItem;
24 namespace MailImporter {
25 class ImportMailsWidgetPrivate;
30 class MAILIMPORTER_EXPORT ImportMailsWidget : public QWidget
31 {
32  Q_OBJECT
33 
34 public:
35  explicit ImportMailsWidget(QWidget *parent = nullptr);
37 
38  void setStatusMessage(const QString &status);
39  void setFrom(const QString &from);
40  void setTo(const QString &to);
41  void setCurrent(const QString &current);
42  void setCurrent(int percent);
43  void setOverall(int percent);
44  void addItem(QListWidgetItem *item);
45  void setLastCurrentItem();
46  void clear();
47  void addInfoLogEntry(const QString &log);
48  void addErrorLogEntry(const QString &log);
49 
50 private:
51  ImportMailsWidgetPrivate *const d;
52 };
53 }
54 
55 #endif // IMPORTMAILSWIDGET_H
QString from() const
QString to() const
The ImportMailsWidget class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 1 2020 23:02:54 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.