File indexing completed on 2025-03-09 04:54:44

0001 /*
0002    SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "viewerplugin.h"
0008 
0009 using namespace MessageViewer;
0010 
0011 class MessageViewer::ViewerPluginPrivate
0012 {
0013 public:
0014     ViewerPluginPrivate() = default;
0015 
0016     bool mEnabled = false;
0017 };
0018 
0019 ViewerPlugin::ViewerPlugin(QObject *parent)
0020     : QObject(parent)
0021     , d(new MessageViewer::ViewerPluginPrivate)
0022 {
0023 }
0024 
0025 ViewerPlugin::~ViewerPlugin() = default;
0026 
0027 void ViewerPlugin::showConfigureDialog(QWidget *parent)
0028 {
0029     Q_UNUSED(parent)
0030 }
0031 
0032 bool ViewerPlugin::hasConfigureDialog() const
0033 {
0034     return false;
0035 }
0036 
0037 void ViewerPlugin::setIsEnabled(bool enabled)
0038 {
0039     d->mEnabled = enabled;
0040 }
0041 
0042 bool ViewerPlugin::isEnabled() const
0043 {
0044     return d->mEnabled;
0045 }
0046 
0047 #include "moc_viewerplugin.cpp"