Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
bc2d2d3f
Commit
bc2d2d3f
authored
Jun 25, 2021
by
Laurent Montel
😁
Browse files
Add interface files
parent
b21f0646
Pipeline
#67447
passed with stage
in 41 minutes and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messageviewer/src/messageviewercheckbeforedeletingplugins/messageviewercheckbeforedeletinginterface.cpp
0 → 100644
View file @
bc2d2d3f
/*
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
}
messageviewer/src/messageviewercheckbeforedeletingplugins/messageviewercheckbeforedeletinginterface.h
0 → 100644
View file @
bc2d2d3f
/*
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
;
};
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment