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

0001 /*
0002    SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "plugineditorbase.h"
0008 
0009 using namespace MessageComposer;
0010 
0011 class MessageComposer::PluginEditorBasePrivate
0012 {
0013 public:
0014     PluginEditorBasePrivate() = default;
0015 
0016     bool mIsEnabled = false;
0017 };
0018 
0019 PluginEditorBase::PluginEditorBase(QObject *parent)
0020     : QObject(parent)
0021     , d(new MessageComposer::PluginEditorBasePrivate)
0022 {
0023 }
0024 
0025 PluginEditorBase::~PluginEditorBase() = default;
0026 
0027 bool PluginEditorBase::hasConfigureDialog() const
0028 {
0029     return false;
0030 }
0031 
0032 void PluginEditorBase::showConfigureDialog(QWidget *parent)
0033 {
0034     Q_UNUSED(parent)
0035 }
0036 
0037 void PluginEditorBase::emitConfigChanged()
0038 {
0039     Q_EMIT configChanged();
0040 }
0041 
0042 QString PluginEditorBase::description() const
0043 {
0044     return {};
0045 }
0046 
0047 void PluginEditorBase::setIsEnabled(bool enabled)
0048 {
0049     d->mIsEnabled = enabled;
0050 }
0051 
0052 bool PluginEditorBase::isEnabled() const
0053 {
0054     return d->mIsEnabled;
0055 }
0056 
0057 #include "moc_plugineditorbase.cpp"