MailImporter

filterimporterbase.h
1/*
2 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "mailimporter_export.h"
10#include <KArchive>
11#include <MailImporter/MessageStatus>
12#include <QString>
13
14namespace MailImporter
15{
16class FilterInfo;
17/**
18 * @brief The FilterImporterBase class
19 * @author Laurent Montel <montel@kde.org>
20 */
21class MAILIMPORTER_EXPORT FilterImporterBase
22{
23public:
25 virtual ~FilterImporterBase();
26 [[nodiscard]] virtual bool importMessage(const QString &folderName, const QString &msgPath, bool duplicateCheck, const MailImporter::MessageStatus &status);
27 [[nodiscard]] virtual bool importMessage(const KArchiveFile *file, const QString &folderPath, int &nbTotal, int &fileDone);
28 virtual void clear();
29 virtual void clearCountDuplicate();
30 [[nodiscard]] virtual int countDuplicates() const;
31 [[nodiscard]] virtual QString topLevelFolder() const;
32
33protected:
34 MailImporter::FilterInfo *const mInfo;
35};
36}
The FilterImporterBase class.
The FilterInfo class.
Definition filterinfo.h:21
The MessageStatus class.
Q_SCRIPTABLE CaptureState status()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.