File indexing completed on 2024-06-23 05:18:35

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "plugineditorcheckbeforesendinterface.h"
0008 
0009 using namespace MessageComposer;
0010 
0011 class MessageComposer::PluginEditorCheckBeforeSendInterfacePrivate
0012 {
0013 public:
0014     PluginEditorCheckBeforeSendInterfacePrivate() = default;
0015 
0016     MessageComposer::PluginEditorCheckBeforeSendParams parameters;
0017     QWidget *mParentWidget = nullptr;
0018 };
0019 
0020 PluginEditorCheckBeforeSendInterface::PluginEditorCheckBeforeSendInterface(QObject *parent)
0021     : QObject(parent)
0022     , d(new MessageComposer::PluginEditorCheckBeforeSendInterfacePrivate)
0023 {
0024 }
0025 
0026 PluginEditorCheckBeforeSendInterface::~PluginEditorCheckBeforeSendInterface() = default;
0027 
0028 void PluginEditorCheckBeforeSendInterface::setParentWidget(QWidget *parent)
0029 {
0030     d->mParentWidget = parent;
0031 }
0032 
0033 QWidget *PluginEditorCheckBeforeSendInterface::parentWidget() const
0034 {
0035     return d->mParentWidget;
0036 }
0037 
0038 void PluginEditorCheckBeforeSendInterface::setParameters(const MessageComposer::PluginEditorCheckBeforeSendParams &params)
0039 {
0040     d->parameters = params;
0041 }
0042 
0043 MessageComposer::PluginEditorCheckBeforeSendParams PluginEditorCheckBeforeSendInterface::parameters() const
0044 {
0045     return d->parameters;
0046 }
0047 
0048 void PluginEditorCheckBeforeSendInterface::reloadConfig()
0049 {
0050     // Reimplement it
0051 }
0052 
0053 #include "moc_plugineditorcheckbeforesendinterface.cpp"