Messagelib

viewerplugin.cpp
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "viewerplugin.h"
8
9using namespace MessageViewer;
10
11class MessageViewer::ViewerPluginPrivate
12{
13public:
14 ViewerPluginPrivate() = default;
15
16 bool mEnabled = false;
17};
18
19ViewerPlugin::ViewerPlugin(QObject *parent)
20 : QObject(parent)
21 , d(new MessageViewer::ViewerPluginPrivate)
22{
23}
24
25ViewerPlugin::~ViewerPlugin() = default;
26
27void ViewerPlugin::showConfigureDialog(QWidget *parent)
28{
29 Q_UNUSED(parent)
30}
31
32bool ViewerPlugin::hasConfigureDialog() const
33{
34 return false;
35}
36
37void ViewerPlugin::setIsEnabled(bool enabled)
38{
39 d->mEnabled = enabled;
40}
41
42bool ViewerPlugin::isEnabled() const
43{
44 return d->mEnabled;
45}
46
47#include "moc_viewerplugin.cpp"
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.