5 /***************************************************************************
6 filters.h - description
8 begin : Fri Jun 30 2000
9 copyright : (C) 2000 by Hans Dijkema
10 email : kmailcvt@hum.org
11 ***************************************************************************/
13 /***************************************************************************
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. *
20 ***************************************************************************/
21 /* Copyright (c) 2012 Montel Laurent <montel@kde.org> */
23 #include <Akonadi/Collection>
25 #include "mailimporter_export.h"
26 namespace MailImporter
{
30 class MAILIMPORTER_EXPORT FilterInfo
33 explicit 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
);
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
);
55 void setRemoveDupMessage( bool removeDupMessage
);
56 bool removeDupMessage() const;
64 #endif /* FILTERINFO_H */