Pimcommon

abstractgenericplugin.cpp
1 /*
2  Copyright (c) 2016-2020 Laurent Montel <[email protected]>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful, but
10  WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #include "abstractgenericplugin.h"
20 
21 using namespace PimCommon;
22 
23 AbstractGenericPlugin::AbstractGenericPlugin(QObject *parent)
24  : QObject(parent)
25  , mIsEnabled(true)
26 {
27 }
28 
29 AbstractGenericPlugin::~AbstractGenericPlugin()
30 {
31 }
32 
33 bool AbstractGenericPlugin::hasPopupMenuSupport() const
34 {
35  return false;
36 }
37 
38 bool AbstractGenericPlugin::hasToolBarSupport() const
39 {
40  return false;
41 }
42 
43 bool AbstractGenericPlugin::hasConfigureDialog() const
44 {
45  return false;
46 }
47 
48 bool AbstractGenericPlugin::hasStatusBarSupport() const
49 {
50  return false;
51 }
52 
53 void AbstractGenericPlugin::showConfigureDialog(QWidget *parent)
54 {
55  Q_UNUSED(parent);
56  //Reimplement it.
57 }
58 
59 void AbstractGenericPlugin::setIsEnabled(bool enabled)
60 {
61  mIsEnabled = enabled;
62 }
63 
64 bool AbstractGenericPlugin::isEnabled() const
65 {
66  return mIsEnabled;
67 }
folderdialogacltab.h
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 4 2020 23:16:29 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.