Messagelib

messageviewercheckbeforedeletinginterface.cpp
1/*
2 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "messageviewercheckbeforedeletinginterface.h"
8#include "messageviewercheckbeforedeletingparameters.h"
9
10#include <QAction>
11
12using namespace MessageViewer;
13
14class MessageViewer::MessageViewerCheckBeforeDeletingInterfacePrivate
15{
16public:
17 MessageViewerCheckBeforeDeletingInterfacePrivate() = default;
18
20 QWidget *mParentWidget = nullptr;
21};
22
23MessageViewerCheckBeforeDeletingInterface::MessageViewerCheckBeforeDeletingInterface(QObject *parent)
24 : QObject(parent)
25 , d(new MessageViewer::MessageViewerCheckBeforeDeletingInterfacePrivate)
26{
27}
28
29MessageViewerCheckBeforeDeletingInterface::~MessageViewerCheckBeforeDeletingInterface() = default;
30
31void MessageViewerCheckBeforeDeletingInterface::setParentWidget(QWidget *parent)
32{
33 d->mParentWidget = parent;
34}
35
36QWidget *MessageViewerCheckBeforeDeletingInterface::parentWidget() const
37{
38 return d->mParentWidget;
39}
40
41void MessageViewerCheckBeforeDeletingInterface::reloadConfig()
42{
43 // Reimplement it
44}
45
46void MessageViewerCheckBeforeDeletingInterface::setParameters(const MessageViewer::MessageViewerCheckBeforeDeletingParameters &params)
47{
48 d->parameters = params;
49}
50
51MessageViewer::MessageViewerCheckBeforeDeletingParameters MessageViewerCheckBeforeDeletingInterface::parameters() const
52{
53 return d->parameters;
54}
55
56QList<QAction *> MessageViewerCheckBeforeDeletingInterface::actions() const
57{
58 // Reimplement in subclass
59 return {};
60}
61
62void MessageViewerCheckBeforeDeletingInterface::createActions(KActionCollection *ac)
63{
64 Q_UNUSED(ac);
65}
66
67#include "moc_messageviewercheckbeforedeletinginterface.cpp"
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.