Messagelib

plugineditorcheckbeforesendinterface.h
1/*
2 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "messagecomposer_export.h"
10#include "plugineditorcheckbeforesendparams.h"
11#include <QObject>
12#include <memory>
13namespace MessageComposer
14{
15class PluginEditorCheckBeforeSendInterfacePrivate;
16class PluginEditorCheckBeforeSendParams;
17/**
18 * @brief The PluginEditorCheckBeforeSendInterface class
19 * @author Laurent Montel <montel@kde.org>
20 */
21class MESSAGECOMPOSER_EXPORT PluginEditorCheckBeforeSendInterface : public QObject
22{
23 Q_OBJECT
24public:
25 explicit PluginEditorCheckBeforeSendInterface(QObject *parent = nullptr);
27
28 [[nodiscard]] virtual bool exec(const MessageComposer::PluginEditorCheckBeforeSendParams &params) = 0;
29
30 void setParentWidget(QWidget *parent);
31 [[nodiscard]] QWidget *parentWidget() const;
32
33 void setParameters(const MessageComposer::PluginEditorCheckBeforeSendParams &params);
34 [[nodiscard]] MessageComposer::PluginEditorCheckBeforeSendParams parameters() const;
35
36public Q_SLOTS:
37 virtual void reloadConfig();
38
39private:
40 std::unique_ptr<PluginEditorCheckBeforeSendInterfacePrivate> const d;
41};
42}
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.