/*
|
|
SPDX-FileCopyrightText: 2015-2020 Laurent Montel <montel@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "viewerpluginpep.h"
|
|
#include "viewerpluginpepinterface.h"
|
|
#include <KActionCollection>
|
|
#include <KPluginFactory>
|
|
|
|
using namespace MessageViewer;
|
|
K_PLUGIN_CLASS_WITH_JSON(ViewerPluginpEp, "messageviewer_pepplugin.json")
|
|
|
|
ViewerPluginpEp::ViewerPluginpEp(QObject *parent, const QList<QVariant> &)
|
|
: MessageViewer::ViewerPlugin(parent)
|
|
{
|
|
}
|
|
|
|
ViewerPluginInterface *ViewerPluginpEp::createView(QWidget *parent, KActionCollection *ac)
|
|
{
|
|
MessageViewer::ViewerPluginInterface *view = new MessageViewer::pEpViewerInterface(ac, parent);
|
|
return view;
|
|
}
|
|
|
|
QString ViewerPluginpEp::viewerPluginName() const
|
|
{
|
|
return QStringLiteral("foo/bar");
|
|
}
|
|
|
|
#include "viewerpluginpep.moc"
|