split message into several paras and fix file extension markup
[kdepim.git] / mailimporter / filterinfo.h
blob34b13c3d18620993a2bcb7c0b2266f698287bac2
1 #ifndef FILTERINFO_H
2 #define FILTERINFO_H
5 /***************************************************************************
6 filters.h - description
7 -------------------
8 begin : Fri Jun 30 2000
9 copyright : (C) 2000 by Hans Dijkema
10 email : kmailcvt@hum.org
11 ***************************************************************************/
13 /***************************************************************************
14 * *
15 * This program is free software; you can redistribute it and/or modify *
16 * it under the terms of the GNU General Public License as published by *
17 * the Free Software Foundation; either version 2 of the License, or *
18 * (at your option) any later version. *
19 * *
20 ***************************************************************************/
21 /* Copyright (c) 2012 Montel Laurent <montel@kde.org> */
23 #include <Akonadi/Collection>
25 #include "mailimporter_export.h"
26 namespace MailImporter {
28 class FilterInfoGui;
30 class MAILIMPORTER_EXPORT FilterInfo
32 public:
33 explicit FilterInfo();
34 ~FilterInfo();
36 void setFilterInfoGui( FilterInfoGui *filterinfogui );
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 = 0 );
43 void setOverall( int percent = 0 );
44 void addInfoLogEntry( const QString& log );
45 void addErrorLogEntry( const QString& log );
46 void clear();
47 void alert( const QString& message );
49 static void terminateASAP();
50 bool shouldTerminate() const;
51 Akonadi::Collection rootCollection() const;
52 void setRootCollection( const Akonadi::Collection &collection );
54 QWidget *parent();
55 void setRemoveDupMessage( bool removeDupMessage );
56 bool removeDupMessage() const;
58 private:
59 class Private;
60 Private *const d;
64 #endif /* FILTERINFO_H */