Messagelib

messageviewercheckbeforedeletingplugin.h
1/*
2 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
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>
12namespace MessageViewer
13{
14class MessageViewerCheckBeforeDeletingInterface;
15class MessageViewerCheckBeforeDeletingPluginPrivate;
16/**
17 * @brief The MessageViewerCheckBeforeDeletingPlugin class
18 * @author Laurent Montel <montel@kde.org>
19 */
20class MESSAGEVIEWER_EXPORT MessageViewerCheckBeforeDeletingPlugin : public QObject
21{
22 Q_OBJECT
23public:
24 explicit MessageViewerCheckBeforeDeletingPlugin(QObject *parent = nullptr);
26
27 [[nodiscard]] virtual MessageViewerCheckBeforeDeletingInterface *createInterface(QObject *parent) = 0;
28 virtual void showConfigureDialog(QWidget *parent);
29
30 void setIsEnabled(bool enabled);
31 [[nodiscard]] bool isEnabled() const;
32Q_SIGNALS:
33 void configChanged();
34
35private:
36 std::unique_ptr<MessageViewerCheckBeforeDeletingPluginPrivate> const d;
37};
38}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.