MailImporter

filterimporterbase.h
1 /*
2  Copyright (C) 2017-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 
19 #ifndef FILTERIMPORTERBASE_H
20 #define FILTERIMPORTERBASE_H
21 
22 #include "mailimporter_export.h"
23 #include <MailImporter/MessageStatus>
24 #include <QString>
25 #include <KArchive>
26 
27 namespace MailImporter {
28 class FilterInfo;
33 class MAILIMPORTER_EXPORT FilterImporterBase
34 {
35 public:
37  virtual ~FilterImporterBase();
38  Q_REQUIRED_RESULT virtual bool importMessage(const QString &folderName, const QString &msgPath, bool duplicateCheck, const MailImporter::MessageStatus &status);
39  Q_REQUIRED_RESULT virtual bool importMessage(const KArchiveFile *file, const QString &folderPath, int &nbTotal, int &fileDone);
40  virtual void clear();
41  virtual void clearCountDuplicate();
42  Q_REQUIRED_RESULT virtual int countDuplicates() const;
43  Q_REQUIRED_RESULT virtual QString topLevelFolder() const;
44 protected:
45  MailImporter::FilterInfo *mInfo = nullptr;
46 };
47 }
48 #endif // FILTERIMPORTERBASE_H
The FilterImporterBase class.
The MessageStatus class.
Definition: messagestatus.h:30
The FilterInfo class.
Definition: filterinfo.h:30
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 4 2020 23:15:58 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.