Messagelib

messageviewercheckbeforedeletingplugin.cpp
1 /*
2  SPDX-FileCopyrightText: 2021 Laurent Montel <[email protected]>
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:
13  MessageViewerCheckBeforeDeletingPluginPrivate() = default;
14  bool mIsEnabled = true;
15 };
16 
17 MessageViewerCheckBeforeDeletingPlugin::MessageViewerCheckBeforeDeletingPlugin(QObject *parent)
18  : QObject(parent)
19  , d(new MessageViewer::MessageViewerCheckBeforeDeletingPluginPrivate)
20 {
21 }
22 
23 MessageViewerCheckBeforeDeletingPlugin::~MessageViewerCheckBeforeDeletingPlugin() = default;
24 
25 void MessageViewerCheckBeforeDeletingPlugin::showConfigureDialog(QWidget *parent)
26 {
27  Q_UNUSED(parent)
28  // Reimplement
29 }
30 
31 void MessageViewerCheckBeforeDeletingPlugin::setIsEnabled(bool enabled)
32 {
33  d->mIsEnabled = enabled;
34 }
35 
36 bool MessageViewerCheckBeforeDeletingPlugin::isEnabled() const
37 {
38  return d->mIsEnabled;
39 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.