Messagelib

messageviewercheckbeforedeletingplugin.cpp
1 /*
2  SPDX-FileCopyrightText: 2021-2023 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 }
40 
41 #include "moc_messageviewercheckbeforedeletingplugin.cpp"
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 03:57:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.