Messagelib

messageviewercheckbeforedeletingplugin.h
1 /*
2  SPDX-FileCopyrightText: 2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messageviewer_export.h"
10 #include <QObject>
11 #include <memory>
12 namespace MessageViewer
13 {
14 class MessageViewerCheckBeforeDeletingInterface;
15 class MessageViewerCheckBeforeDeletingPluginPrivate;
16 /**
17  * @brief The MessageViewerCheckBeforeDeletingPlugin class
18  * @author Laurent Montel <[email protected]>
19  */
20 class MESSAGEVIEWER_EXPORT MessageViewerCheckBeforeDeletingPlugin : public QObject
21 {
22  Q_OBJECT
23 public:
24  explicit MessageViewerCheckBeforeDeletingPlugin(QObject *parent = nullptr);
26 
27  virtual MessageViewerCheckBeforeDeletingInterface *createInterface(QObject *parent) = 0;
28  virtual void showConfigureDialog(QWidget *parent);
29 
30  void setIsEnabled(bool enabled);
31  Q_REQUIRED_RESULT bool isEnabled() const;
32 Q_SIGNALS:
33  void configChanged();
34 
35 private:
36  std::unique_ptr<MessageViewerCheckBeforeDeletingPluginPrivate> const d;
37 };
38 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:54 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.