1 /*
2    SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
3 
4    SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "messageviewercheckbeforedeletingplugin.h"
8 
9 using namespace MessageViewer;
10 class MessageViewer::MessageViewerCheckBeforeDeletingPluginPrivate
11 {
12 public:
MessageViewerCheckBeforeDeletingPluginPrivate()13     MessageViewerCheckBeforeDeletingPluginPrivate()
14     {
15     }
16     bool mIsEnabled = true;
17 };
18 
MessageViewerCheckBeforeDeletingPlugin(QObject * parent)19 MessageViewerCheckBeforeDeletingPlugin::MessageViewerCheckBeforeDeletingPlugin(QObject *parent)
20     : QObject(parent)
21     , d(new MessageViewer::MessageViewerCheckBeforeDeletingPluginPrivate)
22 {
23 }
24 
25 MessageViewerCheckBeforeDeletingPlugin::~MessageViewerCheckBeforeDeletingPlugin() = default;
26 
showConfigureDialog(QWidget * parent)27 void MessageViewerCheckBeforeDeletingPlugin::showConfigureDialog(QWidget *parent)
28 {
29     Q_UNUSED(parent)
30     // Reimplement
31 }
32 
setIsEnabled(bool enabled)33 void MessageViewerCheckBeforeDeletingPlugin::setIsEnabled(bool enabled)
34 {
35     d->mIsEnabled = enabled;
36 }
37 
isEnabled() const38 bool MessageViewerCheckBeforeDeletingPlugin::isEnabled() const
39 {
40     return d->mIsEnabled;
41 }
42