Pimcommon

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

KDE's Doxygen guidelines are available online.