Messagelib

plugineditorcheckbeforesendinterface.cpp
1 /*
2  SPDX-FileCopyrightText: 2016-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "plugineditorcheckbeforesendinterface.h"
8 
9 using namespace MessageComposer;
10 
11 class MessageComposer::PluginEditorCheckBeforeSendInterfacePrivate
12 {
13 public:
14  PluginEditorCheckBeforeSendInterfacePrivate() = default;
15 
17  QWidget *mParentWidget = nullptr;
18 };
19 
20 PluginEditorCheckBeforeSendInterface::PluginEditorCheckBeforeSendInterface(QObject *parent)
21  : QObject(parent)
22  , d(new MessageComposer::PluginEditorCheckBeforeSendInterfacePrivate)
23 {
24 }
25 
26 PluginEditorCheckBeforeSendInterface::~PluginEditorCheckBeforeSendInterface() = default;
27 
28 void PluginEditorCheckBeforeSendInterface::setParentWidget(QWidget *parent)
29 {
30  d->mParentWidget = parent;
31 }
32 
33 QWidget *PluginEditorCheckBeforeSendInterface::parentWidget() const
34 {
35  return d->mParentWidget;
36 }
37 
38 void PluginEditorCheckBeforeSendInterface::setParameters(const MessageComposer::PluginEditorCheckBeforeSendParams &params)
39 {
40  d->parameters = params;
41 }
42 
43 MessageComposer::PluginEditorCheckBeforeSendParams PluginEditorCheckBeforeSendInterface::parameters() const
44 {
45  return d->parameters;
46 }
47 
48 void PluginEditorCheckBeforeSendInterface::reloadConfig()
49 {
50  // Reimplement it
51 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.