MailTransport

transportpluginmanager.h
1/*
2 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "kmailtransport_private_export.h"
10#include <QObject>
11
12#include <memory>
13
14namespace MailTransport
15{
16class TransportAbstractPlugin;
17class TransportPluginManagerPrivate;
18class KMAILTRANSPORT_TESTS_EXPORT TransportPluginManager : public QObject
19{
20 Q_OBJECT
21public:
22 explicit TransportPluginManager(QObject *parent = nullptr);
23 ~TransportPluginManager() override;
24
25 static TransportPluginManager *self();
26
27 [[nodiscard]] MailTransport::TransportAbstractPlugin *plugin(const QString &identifier);
28 [[nodiscard]] QList<MailTransport::TransportAbstractPlugin *> pluginsList() const;
29
30Q_SIGNALS:
31 void updatePluginList();
32
33private:
34 std::unique_ptr<TransportPluginManagerPrivate> const d;
35};
36}
The TransportAbstractPlugin class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.