Pimcommon

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

KDE's Doxygen guidelines are available online.