Messagelib

messageviewercheckbeforedeletingplugin.cpp
1/*
2 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "messageviewercheckbeforedeletingplugin.h"
8
9using namespace MessageViewer;
10class MessageViewer::MessageViewerCheckBeforeDeletingPluginPrivate
11{
12public:
13 MessageViewerCheckBeforeDeletingPluginPrivate() = default;
14 bool mIsEnabled = true;
15};
16
17MessageViewerCheckBeforeDeletingPlugin::MessageViewerCheckBeforeDeletingPlugin(QObject *parent)
18 : QObject(parent)
19 , d(new MessageViewer::MessageViewerCheckBeforeDeletingPluginPrivate)
20{
21}
22
23MessageViewerCheckBeforeDeletingPlugin::~MessageViewerCheckBeforeDeletingPlugin() = default;
24
25void MessageViewerCheckBeforeDeletingPlugin::showConfigureDialog(QWidget *parent)
26{
28 // Reimplement
29}
30
31void MessageViewerCheckBeforeDeletingPlugin::setIsEnabled(bool enabled)
32{
33 d->mIsEnabled = enabled;
34}
35
36bool MessageViewerCheckBeforeDeletingPlugin::isEnabled() const
37{
38 return d->mIsEnabled;
39}
40
41#include "moc_messageviewercheckbeforedeletingplugin.cpp"
QObject * parent() const const
T qobject_cast(QObject *object)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:53:08 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.