layer-shell-qt-nokde/src/qwaylandlayershellintegrationplugin.cpp

34 lines
966 B
C++
Raw Normal View History

2021-04-01 00:28:01 +00:00
/*
* SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
* SPDX-FileCopyrightText: 2018 Drew DeVault <sir@cmpwn.com>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
#include "qwaylandlayershellintegration_p.h"
2021-04-06 11:39:27 +00:00
#include <QtWaylandClient/private/qwaylandshellintegrationplugin_p.h>
2021-04-01 00:28:01 +00:00
using namespace LayerShellQt;
2021-04-06 11:39:27 +00:00
class QWaylandLayerShellIntegrationPlugin : public QtWaylandClient::QWaylandShellIntegrationPlugin
2021-04-01 00:28:01 +00:00
{
2021-04-06 11:39:27 +00:00
Q_OBJECT
Q_PLUGIN_METADATA(IID QWaylandShellIntegrationFactoryInterface_iid FILE "layer-shell.json")
2021-04-01 00:28:01 +00:00
public:
2021-04-06 11:39:27 +00:00
QWaylandLayerShellIntegrationPlugin()
{
}
2021-04-01 00:28:01 +00:00
2021-04-06 11:39:27 +00:00
QtWaylandClient::QWaylandShellIntegration *create(const QString &key, const QStringList &paramList) override
{
Q_UNUSED(key);
Q_UNUSED(paramList);
return new QWaylandLayerShellIntegration();
2021-04-01 00:28:01 +00:00
}
};
// Q_IMPORT_PLUGIN(QWaylandLayerShellIntegrationPlugin);
#include "qwaylandlayershellintegrationplugin.moc"