Messagelib

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

KDE's Doxygen guidelines are available online.