Messagelib

messageviewercheckbeforedeletinginterface.cpp
1 /*
2  SPDX-FileCopyrightText: 2021-2023 Laurent Montel <[email protected]>
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 
12 using namespace MessageViewer;
13 
14 class MessageViewer::MessageViewerCheckBeforeDeletingInterfacePrivate
15 {
16 public:
17  MessageViewerCheckBeforeDeletingInterfacePrivate() = default;
18 
20  QWidget *mParentWidget = nullptr;
21 };
22 
23 MessageViewerCheckBeforeDeletingInterface::MessageViewerCheckBeforeDeletingInterface(QObject *parent)
24  : QObject(parent)
25  , d(new MessageViewer::MessageViewerCheckBeforeDeletingInterfacePrivate)
26 {
27 }
28 
29 MessageViewerCheckBeforeDeletingInterface::~MessageViewerCheckBeforeDeletingInterface() = default;
30 
31 void MessageViewerCheckBeforeDeletingInterface::setParentWidget(QWidget *parent)
32 {
33  d->mParentWidget = parent;
34 }
35 
36 QWidget *MessageViewerCheckBeforeDeletingInterface::parentWidget() const
37 {
38  return d->mParentWidget;
39 }
40 
41 void MessageViewerCheckBeforeDeletingInterface::reloadConfig()
42 {
43  // Reimplement it
44 }
45 
46 void MessageViewerCheckBeforeDeletingInterface::setParameters(const MessageViewer::MessageViewerCheckBeforeDeletingParameters &params)
47 {
48  d->parameters = params;
49 }
50 
51 MessageViewer::MessageViewerCheckBeforeDeletingParameters MessageViewerCheckBeforeDeletingInterface::parameters() const
52 {
53  return d->parameters;
54 }
55 
56 QList<QAction *> MessageViewerCheckBeforeDeletingInterface::actions() const
57 {
58  // Reimplement in subclass
59  return {};
60 }
61 
62 void MessageViewerCheckBeforeDeletingInterface::createActions(KActionCollection *ac)
63 {
64  Q_UNUSED(ac);
65 }
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Mar 24 2023 04:08:31 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.