Commit 2618c413 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Prepare plugins

parent a0db9a30
Pipeline #91881 canceled with stage
# SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
# SPDX-License-Identifier: BSD-3-Clause
kcoreaddons_add_plugin(messageviewer_scamconfiguresettingsplugin INSTALL_NAMESPACE messageviewer/configuresettings)
target_sources(messageviewer_scamconfiguresettingsplugin PRIVATE
scamconfiguresettingsplugin.cpp
)
target_link_libraries(messageviewer_scamconfiguresettingsplugin
KF5::MessageViewer
)
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "scamconfiguresettingsplugin.h"
#include <KPluginFactory>
K_PLUGIN_CLASS_WITH_JSON(ScamConfigureSettingsPlugin, "messageviewer_scamconfiguresettingsplugin.json")
ScamConfigureSettingsPlugin::ScamConfigureSettingsPlugin(QObject *parent, const QList<QVariant> &)
: MessageViewer::MessageViewerConfigureSettingsPlugin(parent)
{
}
ScamConfigureSettingsPlugin::~ScamConfigureSettingsPlugin()
{
}
void ScamConfigureSettingsPlugin::showConfigureDialog(QWidget *parent)
{
// FolderConfigureSettingsDialog dlg(parent);
// dlg.exec();
}
#include "scamconfiguresettingsplugin.moc"
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include <MessageViewer/MessageViewerConfigureSettingsPlugin>
#include <QVariant>
class ScamConfigureSettingsPlugin : public MessageViewer::MessageViewerConfigureSettingsPlugin
{
Q_OBJECT
public:
explicit ScamConfigureSettingsPlugin(QObject *parent = nullptr, const QList<QVariant> & = QList<QVariant>());
~ScamConfigureSettingsPlugin() override;
void showConfigureDialog(QWidget *parent) override;
};
Supports Markdown
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