MailImporter

filterbalsa.h
1/*
2 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "filters.h"
10#include <memory>
11namespace MailImporter
12{
13class FilterBalsaPrivate;
14/**
15 * @brief The FilterBalsa class
16 * @author Laurent Montel <montel@kde.org>
17 */
18class MAILIMPORTER_EXPORT FilterBalsa : public Filter
19{
20public:
22 ~FilterBalsa() override;
23
24 void import() override;
25 void importMails(const QString &maildir);
26 [[nodiscard]] static QString defaultSettingsPath();
27 [[nodiscard]] static QString isMailerFound();
28 QString localMailDirPath();
29
30private:
31 void importDirContents(const QString &);
32 void importFiles(const QString &);
33 void processDirectory(const QString &path);
34
35 MailImporter::MessageStatus statusFromFile(const QString &filename);
36 std::unique_ptr<FilterBalsaPrivate> const d;
37};
38}
The FilterBalsa class.
Definition filterbalsa.h:19
~FilterBalsa() override
Destructor.
The Filter class.
Definition filters.h:29
The MessageStatus class.
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.