Commit bc2d2d3f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add interface files

parent b21f0646
Pipeline #67447 passed with stage
in 41 minutes and 10 seconds
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "messageviewercheckbeforedeletinginterface.h"
using namespace MessageViewer;
class MessageViewer::MessageViewerCheckBeforeDeletingInterfacePrivate
{
public:
MessageViewerCheckBeforeDeletingInterfacePrivate()
{
}
QWidget *mParentWidget = nullptr;
};
MessageViewerCheckBeforeDeletingInterface::MessageViewerCheckBeforeDeletingInterface(QObject *parent)
: QObject(parent)
, d(new MessageViewer::MessageViewerCheckBeforeDeletingInterfacePrivate)
{
}
MessageViewerCheckBeforeDeletingInterface::~MessageViewerCheckBeforeDeletingInterface()
{
delete d;
}
void MessageViewerCheckBeforeDeletingInterface::setParentWidget(QWidget *parent)
{
d->mParentWidget = parent;
}
QWidget *MessageViewerCheckBeforeDeletingInterface::parentWidget() const
{
return d->mParentWidget;
}
void MessageViewerCheckBeforeDeletingInterface::reloadConfig()
{
// Reimplement it
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include "messagecomposer_export.h"
#include "plugineditorcheckbeforesendparams.h"
#include <QObject>
namespace MessageViewer
{
class MessageViewerCheckBeforeDeletingInterfacePrivate;
/**
* @brief The MessageViewerCheckBeforeDeletingInterface class
* @author Laurent Montel <montel@kde.org>
*/
class MESSAGECOMPOSER_EXPORT MessageViewerCheckBeforeDeletingInterface : public QObject
{
Q_OBJECT
public:
explicit MessageViewerCheckBeforeDeletingInterface(QObject *parent = nullptr);
~MessageViewerCheckBeforeDeletingInterface() override;
void setParentWidget(QWidget *parent);
Q_REQUIRED_RESULT QWidget *parentWidget() const;
// TODO add virtual method
public Q_SLOTS:
virtual void reloadConfig();
private:
MessageViewerCheckBeforeDeletingInterfacePrivate *const d;
};
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment