Messagelib

messageviewercheckbeforedeletinginterface.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 <Akonadi/Item>
11#include <QList>
12#include <QObject>
13class QAction;
15namespace MessageViewer
16{
17class MessageViewerCheckBeforeDeletingParameters;
18class MessageViewerCheckBeforeDeletingInterfacePrivate;
19/**
20 * @brief The MessageViewerCheckBeforeDeletingInterface class
21 * @author Laurent Montel <montel@kde.org>
22 */
23class MESSAGEVIEWER_EXPORT MessageViewerCheckBeforeDeletingInterface : public QObject
24{
25 Q_OBJECT
26public:
27 explicit MessageViewerCheckBeforeDeletingInterface(QObject *parent = nullptr);
29
30 void setParentWidget(QWidget *parent);
31 [[nodiscard]] QWidget *parentWidget() const;
32
33 [[nodiscard]] virtual Akonadi::Item::List exec(const Akonadi::Item::List &list) = 0;
34
35 void setParameters(const MessageViewer::MessageViewerCheckBeforeDeletingParameters &params);
36 [[nodiscard]] MessageViewer::MessageViewerCheckBeforeDeletingParameters parameters() const;
37
38 [[nodiscard]] virtual QList<QAction *> actions() const;
39
40 virtual void createActions(KActionCollection *ac);
41
42Q_SIGNALS:
43 void configure(QWidget *parent);
44
45public Q_SLOTS:
46 virtual void reloadConfig();
47
48private:
49 std::unique_ptr<MessageViewerCheckBeforeDeletingInterfacePrivate> const d;
50};
51}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.