MailTransport

transportactivitiesabstractplugin.h
1/*
2 SPDX-FileCopyrightText: 2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8#include "mailtransport_export.h"
9#include <QWidget>
10namespace MailTransport
11{
12class MAILTRANSPORT_EXPORT TransportActivitiesAbstractPlugin : public QWidget
13{
14 Q_OBJECT
15public:
16 struct ActivitySettings {
17 QStringList activities;
18 bool enabled = false;
19 };
20
21 explicit TransportActivitiesAbstractPlugin(QWidget *parent = nullptr);
22 ~TransportActivitiesAbstractPlugin() override;
23
24 [[nodiscard]] virtual TransportActivitiesAbstractPlugin::ActivitySettings activitiesSettings() const = 0;
25 virtual void setActivitiesSettings(const TransportActivitiesAbstractPlugin::ActivitySettings &activitySettings) = 0;
26};
27}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.