Pimcommon

abstractgenericplugin.h
1 /*
2  SPDX-FileCopyrightText: 2016-2020 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #ifndef AbstractGENERICPLUGIN_H
8 #define AbstractGENERICPLUGIN_H
9 
10 #include <QObject>
11 #include "pimcommon_export.h"
12 namespace PimCommon {
13 class AbstractGenericPluginInterface;
18 class PIMCOMMON_EXPORT AbstractGenericPlugin : public QObject
19 {
20  Q_OBJECT
21 public:
22  explicit AbstractGenericPlugin(QObject *parent = nullptr);
24 
25  virtual PimCommon::AbstractGenericPluginInterface *createInterface(QObject *parent = nullptr) = 0;
26  Q_REQUIRED_RESULT virtual bool hasPopupMenuSupport() const;
27  Q_REQUIRED_RESULT virtual bool hasToolBarSupport() const;
28  Q_REQUIRED_RESULT virtual bool hasConfigureDialog() const;
29  Q_REQUIRED_RESULT virtual bool hasStatusBarSupport() const;
30 
31  virtual void showConfigureDialog(QWidget *parent = nullptr);
32 
33  void setIsEnabled(bool enabled);
34  Q_REQUIRED_RESULT bool isEnabled() const;
35 
36 Q_SIGNALS:
37  void configChanged();
38 
39 private:
40  bool mIsEnabled = true;
41 };
42 }
43 #endif // AbstractGENERICPLUGIN_H
The AbstractGenericPlugin class.
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 23:17:08 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.