french -> French
[kdepim.git] / mailimporter / importmailswidget.h
blobd9a1e80a9dc6abcecdc30785bc9ba1b8bcdea8de
1 /*
2 Copyright (c) 2012 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License, version 2, as
6 published by the Free Software Foundation.
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 #ifndef IMPORTMAILSWIDGET_H
18 #define IMPORTMAILSWIDGET_H
20 #include <QWidget>
21 #include "mailimporter_export.h"
22 class QListWidgetItem;
23 namespace Ui {
24 class ImportMailsWidget;
26 namespace MailImporter {
28 class MAILIMPORTER_EXPORT ImportMailsWidget : public QWidget
30 Q_OBJECT
32 public:
33 explicit ImportMailsWidget(QWidget *parent = 0);
34 ~ImportMailsWidget();
36 void setStatusMessage( const QString& status );
37 void setFrom( const QString& from );
38 void setTo( const QString& to );
39 void setCurrent( const QString& current );
40 void setCurrent( int percent );
41 void setOverall( int percent );
42 void addItem( QListWidgetItem* item );
43 void setLastCurrentItem();
44 void clear();
45 void addInfoLogEntry( const QString& log );
46 void addErrorLogEntry( const QString& log );
48 private:
49 Ui::ImportMailsWidget *ui;
53 #endif // IMPORTMAILSWIDGET_H