messageviewercheckbeforedeletingplugin.h 1002 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
   SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>

   SPDX-License-Identifier: LGPL-2.0-or-later
*/

#pragma once

#include <QObject>

#include "messageviewer_export.h"
namespace MessageViewer
{
Laurent Montel's avatar
Laurent Montel committed
14
class MessageViewerCheckBeforeDeletingInterface;
15
16
17
18
19
20
21
22
23
24
25
26
class MessageViewerCheckBeforeDeletingPluginPrivate;
/**
 * @brief The MessageViewerCheckBeforeDeletingPlugin class
 * @author Laurent Montel <montel@kde.org>
 */
class MESSAGEVIEWER_EXPORT MessageViewerCheckBeforeDeletingPlugin : public QObject
{
    Q_OBJECT
public:
    explicit MessageViewerCheckBeforeDeletingPlugin(QObject *parent = nullptr);
    ~MessageViewerCheckBeforeDeletingPlugin();

Laurent Montel's avatar
Laurent Montel committed
27
    virtual MessageViewerCheckBeforeDeletingInterface *createInterface(QObject *parent) = 0;
28
29
    virtual void showConfigureDialog(QWidget *parent);

30
31
    void setIsEnabled(bool enabled);
    Q_REQUIRED_RESULT bool isEnabled() const;
32
33
34
35
36
37
38
Q_SIGNALS:
    void configChanged();

private:
    MessageViewerCheckBeforeDeletingPluginPrivate *const d;
};
}