MailTransport

akonadimailtransportplugin.h
1 /*
2  SPDX-FileCopyrightText: 2017-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <MailTransport/TransportAbstractPlugin>
10 #include <QVariant>
11 namespace Akonadi
12 {
13 class AgentType;
14 }
15 
16 class AkonadiMailTransportPlugin : public MailTransport::TransportAbstractPlugin
17 {
18  Q_OBJECT
19 public:
20  explicit AkonadiMailTransportPlugin(QObject *parent = nullptr, const QList<QVariant> & = {});
21  ~AkonadiMailTransportPlugin() override;
22 
23  Q_REQUIRED_RESULT QVector<MailTransport::TransportAbstractPluginInfo> names() const override;
24  Q_REQUIRED_RESULT bool configureTransport(const QString &identifier, MailTransport::Transport *transport, QWidget *parent) override;
25 
26  void cleanUp(MailTransport::Transport *t) override;
27  MailTransport::TransportJob *createTransportJob(MailTransport::Transport *t, const QString &identifier) override;
28  void initializeTransport(MailTransport::Transport *t, const QString &identifier) override;
29 
30 private:
31  void slotUpdatePluginList(const Akonadi::AgentType &type);
32 };
Q_OBJECTQ_OBJECT
Abstract base class for all mail transport jobs.
Definition: transportjob.h:30
The TransportAbstractPlugin class.
Represents the settings of a specific mail transport.
Definition: transport.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:19:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.