MailImporter

filterkmailarchive.h
1/*
2 SPDX-FileCopyrightText: 2009, 2010 Klarälvdalens Datakonsult AB
3
4 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
5*/
6
7#pragma once
8
9#include "filters.h"
10
11class KArchiveFile;
13
14namespace MailImporter
15{
16class FilterKMailArchivePrivate;
17/**
18 * @brief The FilterKMailArchive class
19 */
20class MAILIMPORTER_EXPORT FilterKMailArchive : public Filter
21{
22public:
24 ~FilterKMailArchive() override;
25
26 void import() override;
27 void importMails(const QString &archiveFile);
28
29private:
30 [[nodiscard]] MAILIMPORTER_NO_EXPORT bool importDirectory(const KArchiveDirectory *directory, const QString &folderPath);
31 [[nodiscard]] MAILIMPORTER_NO_EXPORT bool importFolder(const KArchiveDirectory *folder, const QString &folderPath);
32 [[nodiscard]] MAILIMPORTER_NO_EXPORT bool importMessage(const KArchiveFile *file, const QString &folderPath);
33
34 [[nodiscard]] MAILIMPORTER_NO_EXPORT int countFiles(const KArchiveDirectory *directory) const;
35 std::unique_ptr<FilterKMailArchivePrivate> const d;
36};
37}
The FilterKMailArchive class.
The Filter class.
Definition filters.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.