File indexing completed on 2025-03-09 04:54:36
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 "messageviewercheckbeforedeletingplugin.h" 0008 0009 using namespace MessageViewer; 0010 class MessageViewer::MessageViewerCheckBeforeDeletingPluginPrivate 0011 { 0012 public: 0013 MessageViewerCheckBeforeDeletingPluginPrivate() = default; 0014 bool mIsEnabled = true; 0015 }; 0016 0017 MessageViewerCheckBeforeDeletingPlugin::MessageViewerCheckBeforeDeletingPlugin(QObject *parent) 0018 : QObject(parent) 0019 , d(new MessageViewer::MessageViewerCheckBeforeDeletingPluginPrivate) 0020 { 0021 } 0022 0023 MessageViewerCheckBeforeDeletingPlugin::~MessageViewerCheckBeforeDeletingPlugin() = default; 0024 0025 void MessageViewerCheckBeforeDeletingPlugin::showConfigureDialog(QWidget *parent) 0026 { 0027 Q_UNUSED(parent) 0028 // Reimplement 0029 } 0030 0031 void MessageViewerCheckBeforeDeletingPlugin::setIsEnabled(bool enabled) 0032 { 0033 d->mIsEnabled = enabled; 0034 } 0035 0036 bool MessageViewerCheckBeforeDeletingPlugin::isEnabled() const 0037 { 0038 return d->mIsEnabled; 0039 } 0040 0041 #include "moc_messageviewercheckbeforedeletingplugin.cpp"