Messagelib

plugineditorcheckbeforesendinterface.h
1 /*
2  SPDX-FileCopyrightText: 2016-2023 Laurent Montel <[email protected]>
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>
13 namespace MessageComposer
14 {
15 class PluginEditorCheckBeforeSendInterfacePrivate;
16 class PluginEditorCheckBeforeSendParams;
17 /**
18  * @brief The PluginEditorCheckBeforeSendInterface class
19  * @author Laurent Montel <[email protected]>
20  */
21 class MESSAGECOMPOSER_EXPORT PluginEditorCheckBeforeSendInterface : public QObject
22 {
23  Q_OBJECT
24 public:
25  explicit PluginEditorCheckBeforeSendInterface(QObject *parent = nullptr);
27 
28  virtual bool exec(const MessageComposer::PluginEditorCheckBeforeSendParams &params) = 0;
29 
30  void setParentWidget(QWidget *parent);
31  Q_REQUIRED_RESULT QWidget *parentWidget() const;
32 
33  void setParameters(const MessageComposer::PluginEditorCheckBeforeSendParams &params);
34  Q_REQUIRED_RESULT MessageComposer::PluginEditorCheckBeforeSendParams parameters() const;
35 
36 public Q_SLOTS:
37  virtual void reloadConfig();
38 
39 private:
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-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:08:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.