1// Copyright (C) 2018 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <QtWaylandClient/private/qwaylandshellintegrationplugin_p.h>
5
6#include "qwaylandfullscreenshellv1integration.h"
7
8QT_BEGIN_NAMESPACE
9
10namespace QtWaylandClient {
11
12class QWaylandFullScreenShellV1IntegrationPlugin : public QWaylandShellIntegrationPlugin
13{
14 Q_OBJECT
15 Q_PLUGIN_METADATA(IID QWaylandShellIntegrationFactoryInterface_iid FILE "fullscreen-shell-v1.json")
16public:
17 QWaylandShellIntegration *create(const QString &key, const QStringList &paramList) override;
18};
19
20QWaylandShellIntegration *QWaylandFullScreenShellV1IntegrationPlugin::create(const QString &key, const QStringList &paramList)
21{
22 Q_UNUSED(paramList);
23
24 if (key == QLatin1String("fullscreen-shell-v1"))
25 return new QWaylandFullScreenShellV1Integration();
26 return nullptr;
27}
28
29} // namespace QtWaylandClient
30
31QT_END_NAMESPACE
32
33#include "main.moc"
34

source code of qtwayland/src/plugins/shellintegration/fullscreen-shell-v1/main.cpp